@Retention(value=RUNTIME) @Target(value=TYPE) public @interface PortletConfiguration
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.
Modifier and Type | Required Element and Description |
---|---|
String |
portletName
The portlet name for the annotated type.
|
Modifier and Type | Optional Element and Description |
---|---|
boolean |
asyncSupported
Declares whether the portlet supports asynchronous operation mode.
|
int |
cacheExpirationTime
Expiration-time defines the time in seconds after which the portlet output expires.
|
boolean |
cacheScopePublic
The cache scope, which defines whether generated portlet content is private
for the user or can be shared across different users.
|
Dependency[] |
dependencies
The dependencies the portlet may have on external resources.
|
LocaleString[] |
description
The portlet description.
|
LocaleString[] |
displayName
The display-name type contains a locale-specific short name that is intended to be displayed by tools.
|
InitParameter[] |
initParams
The portlet initialization parameters.
|
LocaleString[] |
keywords
Locale specific keywords associated with this portlet.
|
Multipart |
multipart
Provides multipart configuration data for the portlet.
|
Preference[] |
prefs
The portlet preferences.
|
String[] |
publicParams
The public render parameter identifiers used by the portlet.
|
String |
resourceBundle
The resource bundle name for this portlet.
|
SecurityRoleRef[] |
roleRefs
The security role references.
|
RuntimeOption[] |
runtimeOptions
The portlet container runtime options.
|
LocaleString[] |
shortTitle
Locale specific short version of the static title.
|
String[] |
supportedLocales
The locales supported by the portlet.
|
Supports[] |
supports
The supported portlet modes and window states for a given
MIME type. |
LocaleString[] |
title
Locale specific static title for this portlet.
|
public abstract String portletName
public abstract InitParameter[] initParams
public abstract RuntimeOption[] runtimeOptions
public abstract String[] supportedLocales
The locale is specified as a language tag as defined in IETF BCP 47, "Tags for Identifying Languages".
Locale
,
forLanguageTag
,
IETF BCP 47public abstract LocaleString[] title
public abstract LocaleString[] shortTitle
public abstract LocaleString[] displayName
public abstract LocaleString[] description
public abstract LocaleString[] keywords
LocaleString
array element.
public abstract Preference[] prefs
public abstract String[] publicParams
public abstract String resourceBundle
the file name is specified without the language specific part (e.g. _en) or the file extension.
public abstract Supports[] supports
MIME
type.
public abstract boolean cacheScopePublic
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.
public abstract int cacheExpirationTime
This value is set before the annotated method is called.
public abstract Dependency[] dependencies
public abstract SecurityRoleRef[] roleRefs
public abstract boolean asyncSupported
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.
true
if the method supports asynchronous mode.public abstract Multipart multipart
The @Multipart
annotation supported
element must be set to true
to activate multipart form support.
Java Portlet 3.0 API Specification. See the Copyright and License provided with this distribution. Use is subject to license terms.