|
ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PortletDescriptor
This deployment descriptor provides the functionalities as described in the specification
Example:
PortletDescriptor descriptor = Descriptors.create(PortletDescriptor.class);
Method Summary | |
---|---|
ContainerRuntimeOptionType<PortletDescriptor> |
createContainerRuntimeOption()
Creates a new container-runtime-option element |
CustomPortletModeType<PortletDescriptor> |
createCustomPortletMode()
Creates a new custom-portlet-mode element |
CustomWindowStateType<PortletDescriptor> |
createCustomWindowState()
Creates a new custom-window-state element |
EventDefinitionType<PortletDescriptor> |
createEventDefinition()
Creates a new event-definition element |
FilterType<PortletDescriptor> |
createFilter()
Creates a new filter element |
FilterMappingType<PortletDescriptor> |
createFilterMapping()
Creates a new filter-mapping element |
ListenerType<PortletDescriptor> |
createListener()
Creates a new listener element |
PortletType<PortletDescriptor> |
createPortlet()
Creates a new portlet element |
PublicRenderParameterType<PortletDescriptor> |
createPublicRenderParameter()
Creates a new public-render-parameter element |
SecurityConstraintType<PortletDescriptor> |
createSecurityConstraint()
Creates a new security-constraint element |
UserAttributeType<PortletDescriptor> |
createUserAttribute()
Creates a new user-attribute element |
PortletDescriptor |
defaultNamespace(String defaultNamespace)
Sets the default-namespace element |
List<ContainerRuntimeOptionType<PortletDescriptor>> |
getAllContainerRuntimeOption()
Returns all container-runtime-option elements |
List<CustomPortletModeType<PortletDescriptor>> |
getAllCustomPortletMode()
Returns all custom-portlet-mode elements |
List<CustomWindowStateType<PortletDescriptor>> |
getAllCustomWindowState()
Returns all custom-window-state elements |
List<EventDefinitionType<PortletDescriptor>> |
getAllEventDefinition()
Returns all event-definition elements |
List<FilterType<PortletDescriptor>> |
getAllFilter()
Returns all filter elements |
List<FilterMappingType<PortletDescriptor>> |
getAllFilterMapping()
Returns all filter-mapping elements |
List<ListenerType<PortletDescriptor>> |
getAllListener()
Returns all listener elements |
List<PortletType<PortletDescriptor>> |
getAllPortlet()
Returns all portlet elements |
List<PublicRenderParameterType<PortletDescriptor>> |
getAllPublicRenderParameter()
Returns all public-render-parameter elements |
List<SecurityConstraintType<PortletDescriptor>> |
getAllSecurityConstraint()
Returns all security-constraint elements |
List<UserAttributeType<PortletDescriptor>> |
getAllUserAttribute()
Returns all user-attribute elements |
String |
getDefaultNamespace()
Returns the default-namespace element |
String |
getId()
Returns the id attribute |
ContainerRuntimeOptionType<PortletDescriptor> |
getOrCreateContainerRuntimeOption()
If not already created, a new container-runtime-option element will be created and returned. |
CustomPortletModeType<PortletDescriptor> |
getOrCreateCustomPortletMode()
If not already created, a new custom-portlet-mode element will be created and returned. |
CustomWindowStateType<PortletDescriptor> |
getOrCreateCustomWindowState()
If not already created, a new custom-window-state element will be created and returned. |
EventDefinitionType<PortletDescriptor> |
getOrCreateEventDefinition()
If not already created, a new event-definition element will be created and returned. |
FilterType<PortletDescriptor> |
getOrCreateFilter()
If not already created, a new filter element will be created and returned. |
FilterMappingType<PortletDescriptor> |
getOrCreateFilterMapping()
If not already created, a new filter-mapping element will be created and returned. |
ListenerType<PortletDescriptor> |
getOrCreateListener()
If not already created, a new listener element will be created and returned. |
PortletType<PortletDescriptor> |
getOrCreatePortlet()
If not already created, a new portlet element will be created and returned. |
PublicRenderParameterType<PortletDescriptor> |
getOrCreatePublicRenderParameter()
If not already created, a new public-render-parameter element will be created and returned. |
SecurityConstraintType<PortletDescriptor> |
getOrCreateSecurityConstraint()
If not already created, a new security-constraint element will be created and returned. |
UserAttributeType<PortletDescriptor> |
getOrCreateUserAttribute()
If not already created, a new user-attribute element will be created and returned. |
String |
getResourceBundle()
Returns the resource-bundle element |
String |
getVersion()
Returns the version attribute |
PortletDescriptor |
id(String id)
Sets the id attribute |
PortletDescriptor |
removeAllContainerRuntimeOption()
Removes all container-runtime-option elements |
PortletDescriptor |
removeAllCustomPortletMode()
Removes all custom-portlet-mode elements |
PortletDescriptor |
removeAllCustomWindowState()
Removes all custom-window-state elements |
PortletDescriptor |
removeAllEventDefinition()
Removes all event-definition elements |
PortletDescriptor |
removeAllFilter()
Removes all filter elements |
PortletDescriptor |
removeAllFilterMapping()
Removes all filter-mapping elements |
PortletDescriptor |
removeAllListener()
Removes all listener elements |
PortletDescriptor |
removeAllPortlet()
Removes all portlet elements |
PortletDescriptor |
removeAllPublicRenderParameter()
Removes all public-render-parameter elements |
PortletDescriptor |
removeAllSecurityConstraint()
Removes all security-constraint elements |
PortletDescriptor |
removeAllUserAttribute()
Removes all user-attribute elements |
PortletDescriptor |
removeDefaultNamespace()
Removes the default-namespace element |
PortletDescriptor |
removeId()
Removes the id attribute |
PortletDescriptor |
removeResourceBundle()
Removes the resource-bundle element |
PortletDescriptor |
removeVersion()
Removes the version attribute |
PortletDescriptor |
resourceBundle(String resourceBundle)
Sets the resource-bundle element |
PortletDescriptor |
version(String version)
Sets the version attribute |
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Descriptor |
---|
exportAsString, exportTo, getDescriptorName |
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace |
---|
addDefaultNamespaces, addNamespace, getNamespaces, removeAllNamespaces |
Method Detail |
---|
PortletType<PortletDescriptor> getOrCreatePortlet()
portlet
element will be created and returned.
Otherwise, the first existing portlet
element will be returned.
portlet
PortletType<PortletDescriptor> createPortlet()
portlet
element
PortletType
List<PortletType<PortletDescriptor>> getAllPortlet()
portlet
elements
portlet
PortletDescriptor removeAllPortlet()
portlet
elements
PortletType
CustomPortletModeType<PortletDescriptor> getOrCreateCustomPortletMode()
custom-portlet-mode
element will be created and returned.
Otherwise, the first existing custom-portlet-mode
element will be returned.
custom-portlet-mode
CustomPortletModeType<PortletDescriptor> createCustomPortletMode()
custom-portlet-mode
element
CustomPortletModeType
List<CustomPortletModeType<PortletDescriptor>> getAllCustomPortletMode()
custom-portlet-mode
elements
custom-portlet-mode
PortletDescriptor removeAllCustomPortletMode()
custom-portlet-mode
elements
CustomPortletModeType
CustomWindowStateType<PortletDescriptor> getOrCreateCustomWindowState()
custom-window-state
element will be created and returned.
Otherwise, the first existing custom-window-state
element will be returned.
custom-window-state
CustomWindowStateType<PortletDescriptor> createCustomWindowState()
custom-window-state
element
CustomWindowStateType
List<CustomWindowStateType<PortletDescriptor>> getAllCustomWindowState()
custom-window-state
elements
custom-window-state
PortletDescriptor removeAllCustomWindowState()
custom-window-state
elements
CustomWindowStateType
UserAttributeType<PortletDescriptor> getOrCreateUserAttribute()
user-attribute
element will be created and returned.
Otherwise, the first existing user-attribute
element will be returned.
user-attribute
UserAttributeType<PortletDescriptor> createUserAttribute()
user-attribute
element
UserAttributeType
List<UserAttributeType<PortletDescriptor>> getAllUserAttribute()
user-attribute
elements
user-attribute
PortletDescriptor removeAllUserAttribute()
user-attribute
elements
UserAttributeType
SecurityConstraintType<PortletDescriptor> getOrCreateSecurityConstraint()
security-constraint
element will be created and returned.
Otherwise, the first existing security-constraint
element will be returned.
security-constraint
SecurityConstraintType<PortletDescriptor> createSecurityConstraint()
security-constraint
element
SecurityConstraintType
List<SecurityConstraintType<PortletDescriptor>> getAllSecurityConstraint()
security-constraint
elements
security-constraint
PortletDescriptor removeAllSecurityConstraint()
security-constraint
elements
SecurityConstraintType
PortletDescriptor resourceBundle(String resourceBundle)
resource-bundle
element
resourceBundle
- the value for the element resource-bundle
PortletDescriptor
String getResourceBundle()
resource-bundle
element
resource-bundle
PortletDescriptor removeResourceBundle()
resource-bundle
element
PortletDescriptor
FilterType<PortletDescriptor> getOrCreateFilter()
filter
element will be created and returned.
Otherwise, the first existing filter
element will be returned.
filter
FilterType<PortletDescriptor> createFilter()
filter
element
FilterType
List<FilterType<PortletDescriptor>> getAllFilter()
filter
elements
filter
PortletDescriptor removeAllFilter()
filter
elements
FilterType
FilterMappingType<PortletDescriptor> getOrCreateFilterMapping()
filter-mapping
element will be created and returned.
Otherwise, the first existing filter-mapping
element will be returned.
filter-mapping
FilterMappingType<PortletDescriptor> createFilterMapping()
filter-mapping
element
FilterMappingType
List<FilterMappingType<PortletDescriptor>> getAllFilterMapping()
filter-mapping
elements
filter-mapping
PortletDescriptor removeAllFilterMapping()
filter-mapping
elements
FilterMappingType
PortletDescriptor defaultNamespace(String defaultNamespace)
default-namespace
element
defaultNamespace
- the value for the element default-namespace
PortletDescriptor
String getDefaultNamespace()
default-namespace
element
default-namespace
PortletDescriptor removeDefaultNamespace()
default-namespace
element
PortletDescriptor
EventDefinitionType<PortletDescriptor> getOrCreateEventDefinition()
event-definition
element will be created and returned.
Otherwise, the first existing event-definition
element will be returned.
event-definition
EventDefinitionType<PortletDescriptor> createEventDefinition()
event-definition
element
EventDefinitionType
List<EventDefinitionType<PortletDescriptor>> getAllEventDefinition()
event-definition
elements
event-definition
PortletDescriptor removeAllEventDefinition()
event-definition
elements
EventDefinitionType
PublicRenderParameterType<PortletDescriptor> getOrCreatePublicRenderParameter()
public-render-parameter
element will be created and returned.
Otherwise, the first existing public-render-parameter
element will be returned.
public-render-parameter
PublicRenderParameterType<PortletDescriptor> createPublicRenderParameter()
public-render-parameter
element
PublicRenderParameterType
List<PublicRenderParameterType<PortletDescriptor>> getAllPublicRenderParameter()
public-render-parameter
elements
public-render-parameter
PortletDescriptor removeAllPublicRenderParameter()
public-render-parameter
elements
PublicRenderParameterType
ListenerType<PortletDescriptor> getOrCreateListener()
listener
element will be created and returned.
Otherwise, the first existing listener
element will be returned.
listener
ListenerType<PortletDescriptor> createListener()
listener
element
ListenerType
List<ListenerType<PortletDescriptor>> getAllListener()
listener
elements
listener
PortletDescriptor removeAllListener()
listener
elements
ListenerType
ContainerRuntimeOptionType<PortletDescriptor> getOrCreateContainerRuntimeOption()
container-runtime-option
element will be created and returned.
Otherwise, the first existing container-runtime-option
element will be returned.
container-runtime-option
ContainerRuntimeOptionType<PortletDescriptor> createContainerRuntimeOption()
container-runtime-option
element
ContainerRuntimeOptionType
List<ContainerRuntimeOptionType<PortletDescriptor>> getAllContainerRuntimeOption()
container-runtime-option
elements
container-runtime-option
PortletDescriptor removeAllContainerRuntimeOption()
container-runtime-option
elements
ContainerRuntimeOptionType
PortletDescriptor version(String version)
version
attribute
version
- the value for the attribute version
PortletDescriptor
String getVersion()
version
attribute
version
PortletDescriptor removeVersion()
version
attribute
PortletDescriptor
PortletDescriptor id(String id)
id
attribute
id
- the value for the attribute id
PortletDescriptor
String getId()
id
attribute
id
PortletDescriptor removeId()
id
attribute
PortletDescriptor
|
ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |