|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PortletDefinition
PortletDefinitionComposite
Field Summary | |
---|---|
static java.lang.String |
CLONE_PARENT_INIT_PARAM
|
Method Summary | |
---|---|
ContainerRuntimeOption |
addContainerRuntimeOption(java.lang.String name)
|
Description |
addDescription(java.lang.String lang)
|
Preference |
addDescriptorPreference(java.lang.String name)
|
DisplayName |
addDisplayName(java.lang.String lang)
|
InitParam |
addInitParam(java.lang.String paramName)
|
Language |
addLanguage(java.util.Locale locale)
|
SecurityRoleRef |
addSecurityRoleRef(java.lang.String roleName)
|
EventDefinitionReference |
addSupportedProcessingEvent(javax.xml.namespace.QName qname)
|
EventDefinitionReference |
addSupportedProcessingEvent(java.lang.String name)
|
EventDefinitionReference |
addSupportedPublishingEvent(javax.xml.namespace.QName qname)
|
EventDefinitionReference |
addSupportedPublishingEvent(java.lang.String name)
|
Supports |
addSupports(java.lang.String mimeType)
|
PortletApplication |
getApplication()
|
java.lang.String |
getCloneParent()
returns the parent portlet definition name from which this portlet clone was cloned from. |
ContainerRuntimeOption |
getContainerRuntimeOption(java.lang.String name)
|
java.util.List<ContainerRuntimeOption> |
getContainerRuntimeOptions()
|
Description |
getDescription(java.util.Locale locale)
|
java.util.List<Description> |
getDescriptions()
|
java.lang.String |
getDescriptionText(java.util.Locale locale)
Returns localized text of this PortletDefinitions description. |
Preferences |
getDescriptorPreferences()
|
DisplayName |
getDisplayName(java.util.Locale locale)
|
java.util.List<DisplayName> |
getDisplayNames()
|
java.lang.String |
getDisplayNameText(java.util.Locale locale)
Returns localized text of this PortletDefinitions display name. |
InitParam |
getInitParam(java.lang.String paramName)
|
java.util.List<InitParam> |
getInitParams()
|
java.lang.String |
getJetspeedSecurityConstraint()
Get the Jetspeed Security Constraint reference for this portlet. |
Language |
getLanguage(java.util.Locale locale)
|
java.util.List<Language> |
getLanguages()
|
GenericMetadata |
getMetadata()
|
PortletInfo |
getPortletInfo()
|
Preferences |
getPortletPreferences()
|
java.lang.String |
getPreferenceValidatorClassname()
|
SecurityRoleRef |
getSecurityRoleRef(java.lang.String roleName)
|
java.util.List<SecurityRoleRef> |
getSecurityRoleRefs()
|
java.util.List<EventDefinitionReference> |
getSupportedProcessingEvents()
|
java.util.List<EventDefinitionReference> |
getSupportedPublishingEvents()
|
java.util.List<Supports> |
getSupports()
|
Supports |
getSupports(java.lang.String mimeType)
|
java.lang.String |
getUniqueName()
A portlet's unique name is a string formed by the combination of a portlet's unique within it's parent application plus the parent application's unique name within the portlet container using ":" as a delimiter. |
boolean |
isClone()
Determine if this portlet defintion is a clon |
boolean |
isSameIdentity(PortletDefinition other)
Check if this instance its persistent identity has changed |
void |
setJetspeedSecurityConstraint(java.lang.String constraint)
Set the Jetspeed Security Constraint reference for this portlet. |
void |
setPreferenceValidatorClassname(java.lang.String classname)
|
void |
storeChildren()
Persistence callback to allow a PortletDefinition instance to persist children objects (like portlet preferences) within the same transaction. |
Methods inherited from interface org.apache.pluto.container.om.portlet.PortletDefinition |
---|
addSupportedLocale, addSupportedPublicRenderParameter, getCacheScope, getExpirationCache, getPortletClass, getPortletName, getResourceBundle, getSupportedLocales, getSupportedPublicRenderParameters, setCacheScope, setExpirationCache, setPortletClass, setResourceBundle |
Field Detail |
---|
static final java.lang.String CLONE_PARENT_INIT_PARAM
Method Detail |
---|
PortletApplication getApplication()
getApplication
in interface org.apache.pluto.container.om.portlet.PortletDefinition
InitParam getInitParam(java.lang.String paramName)
getInitParam
in interface org.apache.pluto.container.om.portlet.PortletDefinition
java.util.List<InitParam> getInitParams()
getInitParams
in interface org.apache.pluto.container.om.portlet.PortletDefinition
InitParam addInitParam(java.lang.String paramName)
addInitParam
in interface org.apache.pluto.container.om.portlet.PortletDefinition
PortletInfo getPortletInfo()
getPortletInfo
in interface org.apache.pluto.container.om.portlet.PortletDefinition
Preferences getPortletPreferences()
getPortletPreferences
in interface org.apache.pluto.container.om.portlet.PortletDefinition
Preferences getDescriptorPreferences()
Preference addDescriptorPreference(java.lang.String name)
java.util.List<EventDefinitionReference> getSupportedProcessingEvents()
getSupportedProcessingEvents
in interface org.apache.pluto.container.om.portlet.PortletDefinition
EventDefinitionReference addSupportedProcessingEvent(javax.xml.namespace.QName qname)
addSupportedProcessingEvent
in interface org.apache.pluto.container.om.portlet.PortletDefinition
EventDefinitionReference addSupportedProcessingEvent(java.lang.String name)
addSupportedProcessingEvent
in interface org.apache.pluto.container.om.portlet.PortletDefinition
java.util.List<EventDefinitionReference> getSupportedPublishingEvents()
getSupportedPublishingEvents
in interface org.apache.pluto.container.om.portlet.PortletDefinition
EventDefinitionReference addSupportedPublishingEvent(javax.xml.namespace.QName qname)
addSupportedPublishingEvent
in interface org.apache.pluto.container.om.portlet.PortletDefinition
EventDefinitionReference addSupportedPublishingEvent(java.lang.String name)
addSupportedPublishingEvent
in interface org.apache.pluto.container.om.portlet.PortletDefinition
SecurityRoleRef getSecurityRoleRef(java.lang.String roleName)
getSecurityRoleRef
in interface org.apache.pluto.container.om.portlet.PortletDefinition
java.util.List<SecurityRoleRef> getSecurityRoleRefs()
getSecurityRoleRefs
in interface org.apache.pluto.container.om.portlet.PortletDefinition
SecurityRoleRef addSecurityRoleRef(java.lang.String roleName)
addSecurityRoleRef
in interface org.apache.pluto.container.om.portlet.PortletDefinition
Supports getSupports(java.lang.String mimeType)
getSupports
in interface org.apache.pluto.container.om.portlet.PortletDefinition
java.util.List<Supports> getSupports()
getSupports
in interface org.apache.pluto.container.om.portlet.PortletDefinition
Supports addSupports(java.lang.String mimeType)
addSupports
in interface org.apache.pluto.container.om.portlet.PortletDefinition
Description getDescription(java.util.Locale locale)
getDescription
in interface org.apache.pluto.container.om.portlet.PortletDefinition
java.util.List<Description> getDescriptions()
getDescriptions
in interface org.apache.pluto.container.om.portlet.PortletDefinition
Description addDescription(java.lang.String lang)
addDescription
in interface org.apache.pluto.container.om.portlet.PortletDefinition
DisplayName getDisplayName(java.util.Locale locale)
getDisplayName
in interface org.apache.pluto.container.om.portlet.PortletDefinition
java.util.List<DisplayName> getDisplayNames()
getDisplayNames
in interface org.apache.pluto.container.om.portlet.PortletDefinition
DisplayName addDisplayName(java.lang.String lang)
addDisplayName
in interface org.apache.pluto.container.om.portlet.PortletDefinition
GenericMetadata getMetadata()
ContainerRuntimeOption getContainerRuntimeOption(java.lang.String name)
getContainerRuntimeOption
in interface org.apache.pluto.container.om.portlet.PortletDefinition
java.util.List<ContainerRuntimeOption> getContainerRuntimeOptions()
getContainerRuntimeOptions
in interface org.apache.pluto.container.om.portlet.PortletDefinition
ContainerRuntimeOption addContainerRuntimeOption(java.lang.String name)
addContainerRuntimeOption
in interface org.apache.pluto.container.om.portlet.PortletDefinition
Language getLanguage(java.util.Locale locale)
java.util.List<Language> getLanguages()
Language addLanguage(java.util.Locale locale)
java.lang.String getUniqueName()
null
or this portlet has not
yet been assigned to an portlet application, null
is returned.java.lang.String getDisplayNameText(java.util.Locale locale)
locale
- Locale to get the display name for
null
if no DisplayName exists for this localejava.lang.String getDescriptionText(java.util.Locale locale)
locale
- Locale to get the description for
null
if no Description exists for this localejava.lang.String getPreferenceValidatorClassname()
void setPreferenceValidatorClassname(java.lang.String classname)
java.lang.String getJetspeedSecurityConstraint()
Get the Jetspeed Security Constraint reference for this portlet. 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.
void setJetspeedSecurityConstraint(java.lang.String constraint)
Set the Jetspeed Security Constraint reference for this portlet. 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.
constraint
- The name of the Security Definition defined in
the Jetspeed Security Constraintsvoid storeChildren()
Persistence callback to allow a PortletDefinition instance to persist children objects (like portlet preferences) within the same transaction.
This method must be called always from the #store() method. Using a callback from the persistence manager might not be reliable when the PortletDefinition itself isn't changed but children might.
Notably condition when this might happen is the Pluto 1.0.1 preferences handling calling the portletDefinition store() method
boolean isSameIdentity(PortletDefinition other)
other
-
boolean isClone()
java.lang.String getCloneParent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |