Annotation Type PortletConfiguration
-
@Retention(RUNTIME) @Target(TYPE) public @interface PortletConfiguration
Annotation for the portlet configuration. Many of these configuration parameters also appear in the portlet deployment descriptor.The portlet deployment descriptor can continue to be used. Values of configuration parameters appearing in the deployment descriptor have precedence over the corresponding values defined in the annotation.
- Since:
- 3.0
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description StringportletNameThe portlet name for the annotated type.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanasyncSupportedDeclares whether the portlet supports asynchronous operation mode.intcacheExpirationTimeExpiration-time defines the time in seconds after which the portlet output expires.booleancacheScopePublicThe cache scope, which defines whether generated portlet content is private for the user or can be shared across different users.Dependency[]dependenciesThe dependencies the portlet may have on external resources.LocaleString[]descriptionThe portlet description.LocaleString[]displayNameThe display-name type contains a locale-specific short name that is intended to be displayed by tools.InitParameter[]initParamsThe portlet initialization parameters.LocaleString[]keywordsLocale specific keywords associated with this portlet.MultipartmultipartProvides multipart configuration data for the portlet.Preference[]prefsThe portlet preferences.String[]publicParamsThe public render parameter identifiers used by the portlet.StringresourceBundleThe resource bundle name for this portlet.SecurityRoleRef[]roleRefsThe security role references.RuntimeOption[]runtimeOptionsThe portlet container runtime options.LocaleString[]shortTitleLocale specific short version of the static title.String[]supportedLocalesThe locales supported by the portlet.Supports[]supportsThe supported portlet modes and window states for a givenMIMEtype.LocaleString[]titleLocale specific static title for this portlet.
-
-
-
Element Detail
-
portletName
String portletName
The portlet name for the annotated type.- Returns:
- The portlet name
-
-
-
initParams
InitParameter[] initParams
The portlet initialization parameters.- Returns:
- An array of initialization parameters
- Default:
- {}
-
-
-
runtimeOptions
RuntimeOption[] runtimeOptions
The portlet container runtime options.- Returns:
- An array of portlet runtime options
- Default:
- {}
-
-
-
supportedLocales
String[] supportedLocales
The locales supported by the portlet. An array of String values, each of which represents a single locale.The locale is specified as a language tag as defined in IETF BCP 47, "Tags for Identifying Languages".
- Returns:
- An array of language tag strings
- See Also:
Locale,forLanguageTag, IETF BCP 47
- Default:
- {"en"}
-
-
-
title
LocaleString[] title
Locale specific static title for this portlet.- Returns:
- The portlet title
- Default:
- {}
-
-
-
shortTitle
LocaleString[] shortTitle
Locale specific short version of the static title.- Returns:
- The short title
- Default:
- {}
-
-
-
displayName
LocaleString[] displayName
The display-name type contains a locale-specific short name that is intended to be displayed by tools. It is used by display-name elements. The display name need not be unique.- Returns:
- The display name
- Default:
- {}
-
-
-
description
LocaleString[] description
The portlet description. It provides locale-specific text describing the portlet for use by the portal application or by tools.- Returns:
- The portlet description
- Default:
- {}
-
-
-
keywords
LocaleString[] keywords
Locale specific keywords associated with this portlet. The keywords are separated by commas within the value of theLocaleStringarray element.- Returns:
- The keywords
- Default:
- {}
-
-
-
prefs
Preference[] prefs
The portlet preferences.- Returns:
- The portlet preferences
- Default:
- {}
-
-
-
publicParams
String[] publicParams
The public render parameter identifiers used by the portlet.- Returns:
- The array of public render parameters.
- Default:
- {}
-
-
-
resourceBundle
String resourceBundle
The resource bundle name for this portlet. Name of the resource bundle containing the language specific portlet information in different languages.the file name is specified without the language specific part (e.g. _en) or the file extension.
- Returns:
- The resource bundle name
- Default:
- ""
-
-
-
supports
Supports[] supports
The supported portlet modes and window states for a givenMIMEtype.- Returns:
- The supported portlet modes and window states
- Default:
- {@jakarta.portlet.annotations.Supports(mimeType="text/html")}
-
-
-
cacheScopePublic
boolean cacheScopePublic
The cache scope, which defines whether generated portlet content is private for the user or can be shared across different users.If this field is set to
TRUE, cached information can be shared between users. Otherwise cached information will be considered private to the user.This value is set before the annotated method is called.
- Returns:
- The cache scope
- Default:
- false
-
-
-
dependencies
Dependency[] dependencies
The dependencies the portlet may have on external resources. The resources can represent client-side prerequisites such as JavaScript libraries or stylesheet resources that are shared among portlets.- Returns:
- The dependencies
- Default:
- {}
-
-
-
roleRefs
SecurityRoleRef[] roleRefs
The security role references.- Returns:
- The security role references
- Default:
- {}
-
-
-
asyncSupported
boolean asyncSupported
Declares whether the portlet supports asynchronous operation mode.If this flag is set, any resource method used by this portlet will be marked as supporting asynchronous operation. Asynchronous support applies to resource methods only.
- Returns:
trueif the method supports asynchronous mode.
- Default:
- false
-
-
-
multipart
Multipart multipart
Provides multipart configuration data for the portlet.The
@Multipartannotationsupportedelement must be set totrueto activate multipart form support.- Returns:
- The multipart configuration data.
- Default:
- @jakarta.portlet.annotations.Multipart(supported=false)
-
-