org.apache.jetspeed.om.portlet
Interface PortletApplication

All Superinterfaces:
org.apache.pluto.container.om.portlet.PortletApplicationDefinition, java.io.Serializable

public interface PortletApplication
extends org.apache.pluto.container.om.portlet.PortletApplicationDefinition, java.io.Serializable

PortletApplication Extends the org.apache.pluto.container.om.portlet.PortletApplicationDefinition interface adding methods for those attributes that do not have them so as to make manipulating the portlet OM easier.

Version:
$Id: PortletApplication.java 1074422 2011-02-25 07:45:03Z taylor $
Author:
David Sean Taylor

Field Summary
static int LOCAL
          Marks this application as a LOCAL portlet application, stored in Jetspeed managed portlet application space.
static int WEBAPP
          Marks this application as a standard web application, stored in the web application server's web application space.
 
Fields inherited from interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition
JSR_168_VERSION, JSR_286_VERSION
 
Method Summary
 PortletDefinition addClone(java.lang.String name)
           
 ContainerRuntimeOption addContainerRuntimeOption(java.lang.String name)
           
 CustomPortletMode addCustomPortletMode(java.lang.String name)
           
 CustomWindowState addCustomWindowState(java.lang.String name)
           
 Description addDescription(java.lang.String lang)
           
 DisplayName addDisplayName(java.lang.String lang)
           
 EventDefinition addEventDefinition(javax.xml.namespace.QName qname)
           
 EventDefinition addEventDefinition(java.lang.String name)
           
 Filter addFilter(java.lang.String filterName)
           
 FilterMapping addFilterMapping(java.lang.String filterName)
           
 void addJetspeedServiceReference(java.lang.String name)
           
 Listener addListener(java.lang.String listenerClass)
           
 PortletDefinition addPortlet(java.lang.String name)
           
 PublicRenderParameter addPublicRenderParameter(javax.xml.namespace.QName qname, java.lang.String identifier)
           
 PublicRenderParameter addPublicRenderParameter(java.lang.String name, java.lang.String identifier)
           
 SecurityConstraint addSecurityConstraint(java.lang.String transportGuarantee)
           
 SecurityRole addSecurityRole(java.lang.String name)
           
 UserAttribute addUserAttribute(java.lang.String name)
           
 UserAttributeRef addUserAttributeRef(java.lang.String name)
           
 int getApplicationType()
          Gets the Portlet Application type.
 long getChecksum()
          The checksum on the portlet XML from the last deployment
 PortletDefinition getClone(java.lang.String name)
           
 java.util.List<PortletDefinition> getClones()
           
 ContainerRuntimeOption getContainerRuntimeOption(java.lang.String name)
           
 java.util.List<ContainerRuntimeOption> getContainerRuntimeOptions()
           
 javax.portlet.PortletMode getCustomPortletMode(javax.portlet.PortletMode mode)
           
 CustomPortletMode getCustomPortletMode(java.lang.String name)
           
 java.util.List<CustomPortletMode> getCustomPortletModes()
           
 CustomWindowState getCustomWindowState(java.lang.String name)
           
 javax.portlet.WindowState getCustomWindowState(javax.portlet.WindowState state)
           
 java.util.List<CustomWindowState> getCustomWindowStates()
           
 Description getDescription(java.util.Locale locale)
           
 java.util.List<Description> getDescriptions()
           
 DisplayName getDisplayName(java.util.Locale locale)
           
 java.util.List<DisplayName> getDisplayNames()
           
 java.util.List<EventDefinition> getEventDefinitions()
           
 Filter getFilter(java.lang.String filterName)
           
 FilterMapping getFilterMapping(java.lang.String filterName)
           
 java.util.List<FilterMapping> getFilterMappings()
           
 java.util.List<Filter> getFilters()
           
 java.lang.String getJetspeedSecurityConstraint()
           Get the Jetspeed Security Constraint reference for this portlet application.
 java.util.List<JetspeedServiceReference> getJetspeedServices()
           
 java.util.List<Listener> getListeners()
           
 java.lang.String getLocalContextPath()
          Returns the context path of local portlet application.
 javax.portlet.PortletMode getMappedPortletMode(javax.portlet.PortletMode mode)
           
 javax.portlet.WindowState getMappedWindowState(javax.portlet.WindowState state)
           
 GenericMetadata getMetadata()
          Returns the metadata from the extended jetspeed-portlet.xml The return value cannot be NULL
 PortletDefinition getPortlet(java.lang.String name)
           
 java.util.List<PortletDefinition> getPortlets()
           
 PublicRenderParameter getPublicRenderParameter(java.lang.String identifier)
           
 java.util.List<PublicRenderParameter> getPublicRenderParameters()
           
 long getRevision()
           
 java.util.List<SecurityConstraint> getSecurityConstraints()
           
 java.util.List<SecurityRole> getSecurityRoles()
           
 java.util.List<javax.portlet.PortletMode> getSupportedPortletModes()
           
 java.util.List<javax.portlet.WindowState> getSupportedWindowStates()
           
 UserAttribute getUserAttribute(java.lang.String name)
           
 UserAttributeRef getUserAttributeRef(java.lang.String name)
           
 java.util.List<UserAttributeRef> getUserAttributeRefs()
           
 java.util.List<UserAttribute> getUserAttributes()
           
 boolean isLayoutApplication()
          Returns true if the portlet application is a layout application Layouts are not "general" portlets, but instead used to group together other layouts and portlet fragments
 void setApplicationType(int type)
           
 void setChecksum(long checksum)
          The checksum on the portlet XML from the last deployment
 void setJetspeedSecurityConstraint(java.lang.String constraint)
           Set the Jetspeed Security Constraint reference for this portlet application.
 void setLocalContextPath(java.lang.String localContextPath)
          Sets the context path of local portlet application.
 void setRevision(long revision)
           
 
Methods inherited from interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition
addLocaleEncodingMapping, getContextPath, getDefaultNamespace, getLocaleEncodingMappings, getName, getResourceBundle, getVersion, setContextPath, setDefaultNamespace, setName, setResourceBundle, setVersion
 

Field Detail

WEBAPP

static final int WEBAPP
Marks this application as a standard web application, stored in the web application server's web application space.

See Also:
Constant Field Values

LOCAL

static final int LOCAL
Marks this application as a LOCAL portlet application, stored in Jetspeed managed portlet application space.

See Also:
Constant Field Values
Method Detail

getApplicationType

int getApplicationType()
Gets the Portlet Application type. Valid values are:

WEBAPP - A standard web application, stored in the web application server's web application space.

LOCAL - A local portlet application stored within Jetspeed's web application.

Returns:
The type of portlet application.

setApplicationType

void setApplicationType(int type)

setChecksum

void setChecksum(long checksum)
The checksum on the portlet XML from the last deployment

Parameters:
checksum -

getChecksum

long getChecksum()
The checksum on the portlet XML from the last deployment

Returns:

getRevision

long getRevision()

setRevision

void setRevision(long revision)

getJetspeedSecurityConstraint

java.lang.String getJetspeedSecurityConstraint()

Get the Jetspeed Security Constraint reference for this portlet application. This security constraint name references a Jetspeed-specific Security Constraint. Security Constraints are not Java Security Permissions, but a Jetspeed specific way of securing portlets, also known as PSML constraints. See the page.security file for examples of defining security constraint definitions. If a Jetspeed Security Constraint is not defined for a portlet, the constraint applied will then fallback to the constraint defined for the portlet application. If the portlet application does not define a constraint, then no security constraints will be applied to this portlet. Security constraints for a portlet are normally checking during the render process of a portlet.

Returns:
The name of the Security Definition applied to this portlet, defined in the Jetspeed Security Constraints

setJetspeedSecurityConstraint

void setJetspeedSecurityConstraint(java.lang.String constraint)

Set the Jetspeed Security Constraint reference for this portlet application. This security constraint name references a Jetspeed-specific Security Constraint. Security Constraints are not Java Security Permissions, but a Jetspeed specific way of securing portlets, also known as PSML constraints. See the page.security file for examples of defining security constraint definitions. If the portlet application does not define a constraint, then no security constraints will be applied to this portlet. Security constraints for a portlet are normally checking during the render process of a portlet.

Parameters:
constraint - The name of the Security Definition defined in the Jetspeed Security Constraints

getDescription

Description getDescription(java.util.Locale locale)

getDescriptions

java.util.List<Description> getDescriptions()

addDescription

Description addDescription(java.lang.String lang)

getDisplayName

DisplayName getDisplayName(java.util.Locale locale)

getDisplayNames

java.util.List<DisplayName> getDisplayNames()

addDisplayName

DisplayName addDisplayName(java.lang.String lang)

getSecurityRoles

java.util.List<SecurityRole> getSecurityRoles()

addSecurityRole

SecurityRole addSecurityRole(java.lang.String name)

getMetadata

GenericMetadata getMetadata()
Returns the metadata from the extended jetspeed-portlet.xml The return value cannot be NULL

Returns:
Jetspeed specific metadata

getPortlet

PortletDefinition getPortlet(java.lang.String name)
Specified by:
getPortlet in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

getClone

PortletDefinition getClone(java.lang.String name)

getPortlets

java.util.List<PortletDefinition> getPortlets()
Specified by:
getPortlets in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

getClones

java.util.List<PortletDefinition> getClones()

addPortlet

PortletDefinition addPortlet(java.lang.String name)
Specified by:
addPortlet in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

addClone

PortletDefinition addClone(java.lang.String name)

getEventDefinitions

java.util.List<EventDefinition> getEventDefinitions()
Specified by:
getEventDefinitions in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

addEventDefinition

EventDefinition addEventDefinition(java.lang.String name)
Specified by:
addEventDefinition in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

addEventDefinition

EventDefinition addEventDefinition(javax.xml.namespace.QName qname)
Specified by:
addEventDefinition in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

getPublicRenderParameter

PublicRenderParameter getPublicRenderParameter(java.lang.String identifier)
Specified by:
getPublicRenderParameter in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

getPublicRenderParameters

java.util.List<PublicRenderParameter> getPublicRenderParameters()
Specified by:
getPublicRenderParameters in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

addPublicRenderParameter

PublicRenderParameter addPublicRenderParameter(java.lang.String name,
                                               java.lang.String identifier)
Specified by:
addPublicRenderParameter in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

addPublicRenderParameter

PublicRenderParameter addPublicRenderParameter(javax.xml.namespace.QName qname,
                                               java.lang.String identifier)
Specified by:
addPublicRenderParameter in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

getCustomPortletMode

CustomPortletMode getCustomPortletMode(java.lang.String name)
Specified by:
getCustomPortletMode in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

getCustomPortletMode

javax.portlet.PortletMode getCustomPortletMode(javax.portlet.PortletMode mode)

getCustomPortletModes

java.util.List<CustomPortletMode> getCustomPortletModes()
Specified by:
getCustomPortletModes in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

addCustomPortletMode

CustomPortletMode addCustomPortletMode(java.lang.String name)
Specified by:
addCustomPortletMode in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

getCustomWindowState

CustomWindowState getCustomWindowState(java.lang.String name)
Specified by:
getCustomWindowState in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

getCustomWindowState

javax.portlet.WindowState getCustomWindowState(javax.portlet.WindowState state)

getCustomWindowStates

java.util.List<CustomWindowState> getCustomWindowStates()
Specified by:
getCustomWindowStates in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

addCustomWindowState

CustomWindowState addCustomWindowState(java.lang.String name)
Specified by:
addCustomWindowState in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

getSupportedPortletModes

java.util.List<javax.portlet.PortletMode> getSupportedPortletModes()

getSupportedWindowStates

java.util.List<javax.portlet.WindowState> getSupportedWindowStates()

getMappedPortletMode

javax.portlet.PortletMode getMappedPortletMode(javax.portlet.PortletMode mode)

getMappedWindowState

javax.portlet.WindowState getMappedWindowState(javax.portlet.WindowState state)

getUserAttribute

UserAttribute getUserAttribute(java.lang.String name)
Specified by:
getUserAttribute in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

getUserAttributes

java.util.List<UserAttribute> getUserAttributes()
Specified by:
getUserAttributes in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

addUserAttribute

UserAttribute addUserAttribute(java.lang.String name)
Specified by:
addUserAttribute in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

getUserAttributeRef

UserAttributeRef getUserAttributeRef(java.lang.String name)

getUserAttributeRefs

java.util.List<UserAttributeRef> getUserAttributeRefs()

addUserAttributeRef

UserAttributeRef addUserAttributeRef(java.lang.String name)

getSecurityConstraints

java.util.List<SecurityConstraint> getSecurityConstraints()
Specified by:
getSecurityConstraints in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

addSecurityConstraint

SecurityConstraint addSecurityConstraint(java.lang.String transportGuarantee)
Specified by:
addSecurityConstraint in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

getFilter

Filter getFilter(java.lang.String filterName)
Specified by:
getFilter in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

getFilters

java.util.List<Filter> getFilters()
Specified by:
getFilters in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

addFilter

Filter addFilter(java.lang.String filterName)
Specified by:
addFilter in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

getFilterMapping

FilterMapping getFilterMapping(java.lang.String filterName)
Specified by:
getFilterMapping in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

getFilterMappings

java.util.List<FilterMapping> getFilterMappings()
Specified by:
getFilterMappings in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

addFilterMapping

FilterMapping addFilterMapping(java.lang.String filterName)
Specified by:
addFilterMapping in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

getListeners

java.util.List<Listener> getListeners()
Specified by:
getListeners in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

addListener

Listener addListener(java.lang.String listenerClass)
Specified by:
addListener in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

getContainerRuntimeOption

ContainerRuntimeOption getContainerRuntimeOption(java.lang.String name)
Specified by:
getContainerRuntimeOption in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

getContainerRuntimeOptions

java.util.List<ContainerRuntimeOption> getContainerRuntimeOptions()
Specified by:
getContainerRuntimeOptions in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

addContainerRuntimeOption

ContainerRuntimeOption addContainerRuntimeOption(java.lang.String name)
Specified by:
addContainerRuntimeOption in interface org.apache.pluto.container.om.portlet.PortletApplicationDefinition

getJetspeedServices

java.util.List<JetspeedServiceReference> getJetspeedServices()

addJetspeedServiceReference

void addJetspeedServiceReference(java.lang.String name)

isLayoutApplication

boolean isLayoutApplication()
Returns true if the portlet application is a layout application Layouts are not "general" portlets, but instead used to group together other layouts and portlet fragments

Returns:
true when this app is a Jetspeed layout application

getLocalContextPath

java.lang.String getLocalContextPath()
Returns the context path of local portlet application. If the application is not local, then returns null.

Returns:

setLocalContextPath

void setLocalContextPath(java.lang.String localContextPath)
Sets the context path of local portlet application.

Parameters:
localContextPath -


Copyright © 1999-2011 The Apache Software Foundation. All Rights Reserved.