|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jetspeed.om.portlet.impl.PortletDefinitionImpl
PortletDefinitionImpl
| Field Summary | |
private org.apache.jetspeed.om.common.portlet.MutablePortletApplication |
app
PortletApplicationDefinition this PortletDefinition belongs to |
protected long |
appId
|
private String |
className
|
private Collection |
contentTypes
|
private ContentTypeSetImpl |
ctListWrapper
|
private DescriptionSetImpl |
descListWrapper
|
private Collection |
descriptions
|
private Collection |
displayNames
|
private DisplayNameSetImpl |
DNListWrapper
|
private String |
expirationCache
|
private long |
id
|
private LanguageSetImpl |
langListWrapper
|
private Collection |
languageSet
|
private static org.apache.commons.logging.Log |
log
|
private Collection |
metadataFields
Metadata property |
private String |
name
|
private Collection |
parameterSet
|
private ParameterSetImpl |
paramListWrapper
|
protected List |
portletEntities
|
protected static org.apache.jetspeed.factory.PortletFactory |
portletFactory
|
private String |
portletIdentifier
|
private PrefsPreferenceSetImpl |
preferenceSet
|
private String |
preferenceValidatorClassname
User attribute ref set. |
protected static org.apache.jetspeed.components.portletregistry.PortletRegistry |
registry
This is a static instance of the PortletREgistry that can be used by all instances of the PortletDefinitionImpl to support the PortletDefintionCtrl.store() method. |
private String |
resourceBundle
|
private SecurityRoleRefSetImpl |
secListWrapper
|
private Collection |
securityRoleRefSet
|
private ArrayList |
supportedLocales
|
| Fields inherited from interface org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite |
PORTLETS_PREFS_ROOT |
| Constructor Summary | |
PortletDefinitionImpl()
|
|
| Method Summary | |
void |
addContentType(org.apache.pluto.om.portlet.ContentType cType)
|
void |
addContentType(String contentType,
Collection modes)
|
void |
addDescription(org.apache.pluto.om.common.Description description)
|
void |
addDescription(Locale locale,
String description)
|
void |
addDisplayName(org.apache.pluto.om.common.DisplayName displayName)
|
void |
addDisplayName(Locale locale,
String displayName)
|
void |
addInitParameter(org.apache.pluto.om.common.Parameter parameter)
|
org.apache.jetspeed.om.common.ParameterComposite |
addInitParameter(String name,
String value)
|
org.apache.jetspeed.om.common.ParameterComposite |
addInitParameter(String name,
String value,
org.apache.pluto.om.common.DescriptionSet description)
|
org.apache.jetspeed.om.common.ParameterComposite |
addInitParameter(String name,
String value,
String description,
Locale locale)
|
void |
addLanguage(org.apache.pluto.om.common.Language lang)
|
void |
addLanguage(String title,
String shortTitle,
String keywords,
Locale locale)
|
void |
addPreference(org.apache.pluto.om.common.Preference preference)
|
org.apache.jetspeed.om.common.preference.PreferenceComposite |
addPreference(String name,
String[] values)
|
void |
addSecurityRoleRef(org.apache.pluto.om.common.SecurityRoleRef securityRef)
|
org.apache.pluto.om.common.SecurityRoleRef |
addSecurityRoleRef(String roleName,
String roleLink)
|
void |
addSupportedLocale(String locale)
|
boolean |
equals(Object obj)
|
String |
getClassName()
|
org.apache.pluto.om.portlet.ContentTypeSet |
getContentTypeSet()
|
org.apache.pluto.om.common.Description |
getDescription(Locale arg0)
|
org.apache.pluto.om.common.DescriptionSet |
getDescriptionSet()
|
String |
getDescriptionText(Locale locale)
Returns localized text of this PortletDefinitions description. |
org.apache.pluto.om.common.DisplayName |
getDisplayName(Locale arg0)
|
org.apache.pluto.om.common.DisplayNameSet |
getDisplayNameSet()
|
String |
getDisplayNameText(Locale locale)
Returns localized text of this PortletDefinitions display name. |
String |
getExpirationCache()
|
org.apache.pluto.om.common.ObjectID |
getId()
|
org.apache.pluto.om.common.ParameterSet |
getInitParameterSet()
|
org.apache.pluto.om.common.SecurityRoleRefSet |
getInitSecurityRoleRefSet()
|
org.apache.pluto.om.common.LanguageSet |
getLanguageSet()
|
org.apache.jetspeed.om.common.GenericMetadata |
getMetadata()
|
protected Collection |
getMetadataFields()
|
String |
getName()
|
long |
getOID()
|
org.apache.pluto.om.portlet.PortletApplicationDefinition |
getPortletApplicationDefinition()
|
ClassLoader |
getPortletClassLoader()
|
String |
getPortletIdentifier()
|
org.apache.pluto.om.common.PreferenceSet |
getPreferenceSet()
|
String |
getPreferenceValidatorClassname()
getPreferenceValidatorClassname |
String |
getResourceBundle()
|
org.apache.pluto.om.servlet.ServletDefinition |
getServletDefinition()
|
Collection |
getSupportedLocales()
|
String |
getUniqueName()
|
int |
hashCode()
|
void |
postLoad(Object parameter)
|
void |
setClassName(String className)
|
void |
setContentTypeSet(org.apache.pluto.om.portlet.ContentTypeSet contentTypes)
|
void |
setDescriptions(org.apache.pluto.om.common.DescriptionSet arg0)
|
void |
setDisplayNames(org.apache.pluto.om.common.DisplayNameSet arg0)
|
void |
setExpirationCache(String cache)
|
void |
setId(String oid)
|
void |
setInitParameterSet(org.apache.pluto.om.common.ParameterSet parameters)
|
void |
setInitSecurityRoleRefSet(org.apache.pluto.om.common.SecurityRoleRefSet securityRefs)
|
void |
setLanguageSet(org.apache.pluto.om.common.LanguageSet languages)
|
void |
setMetadata(org.apache.jetspeed.om.common.GenericMetadata metadata)
|
protected void |
setMetadataFields(Collection metadataFields)
|
void |
setName(String name)
|
void |
setPortletApplicationDefinition(org.apache.pluto.om.portlet.PortletApplicationDefinition pad)
|
void |
setPortletClassLoader(ClassLoader loader)
|
static void |
setPortletFactory(org.apache.jetspeed.factory.PortletFactory portletFactory)
|
void |
setPortletIdentifier(String portletIdentifier)
|
static void |
setPortletRegistry(org.apache.jetspeed.components.portletregistry.PortletRegistry registry)
|
void |
setPreferenceSet(org.apache.pluto.om.common.PreferenceSet preferences)
|
void |
setPreferenceValidatorClassname(String string)
setPreferenceValidatorClassname |
void |
setResourceBundle(String string)
|
void |
store()
store will attempt to perform an atomic persistence call against this portletDefinition. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final org.apache.commons.logging.Log log
protected static org.apache.jetspeed.components.portletregistry.PortletRegistry registry
protected static org.apache.jetspeed.factory.PortletFactory portletFactory
private long id
private String className
private String name
private String portletIdentifier
private Collection languageSet
private LanguageSetImpl langListWrapper
private Collection parameterSet
private ParameterSetImpl paramListWrapper
private Collection securityRoleRefSet
private SecurityRoleRefSetImpl secListWrapper
private String preferenceValidatorClassname
private Collection displayNames
private DisplayNameSetImpl DNListWrapper
private Collection descriptions
private DescriptionSetImpl descListWrapper
private String resourceBundle
private ArrayList supportedLocales
private Collection contentTypes
private ContentTypeSetImpl ctListWrapper
protected List portletEntities
private org.apache.jetspeed.om.common.portlet.MutablePortletApplication app
protected long appId
private String expirationCache
private Collection metadataFields
private PrefsPreferenceSetImpl preferenceSet
| Constructor Detail |
public PortletDefinitionImpl()
| Method Detail |
public org.apache.pluto.om.common.ObjectID getId()
getId in interface org.apache.pluto.om.portlet.PortletDefinitionPortletDefinition.getId()public long getOID()
public String getClassName()
getClassName in interface org.apache.pluto.om.portlet.PortletDefinitionPortletDefinition.getClassName()public String getName()
getName in interface org.apache.pluto.om.portlet.PortletDefinitionPortletDefinition.getName()public org.apache.pluto.om.common.LanguageSet getLanguageSet()
getLanguageSet in interface org.apache.pluto.om.portlet.PortletDefinitionPortletDefinition.getLanguageSet()public org.apache.pluto.om.common.ParameterSet getInitParameterSet()
getInitParameterSet in interface org.apache.pluto.om.portlet.PortletDefinitionPortletDefinition.getInitParameterSet()public org.apache.pluto.om.common.SecurityRoleRefSet getInitSecurityRoleRefSet()
getInitSecurityRoleRefSet in interface org.apache.pluto.om.portlet.PortletDefinitionPortletDefinition.getInitSecurityRoleRefSet()public org.apache.pluto.om.common.PreferenceSet getPreferenceSet()
getPreferenceSet in interface org.apache.pluto.om.portlet.PortletDefinitionPortletDefinition.getPreferenceSet()public void setPreferenceSet(org.apache.pluto.om.common.PreferenceSet preferences)
setPreferenceSet in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositePortletDefinitionComposite.setPreferenceSet(org.apache.pluto.om.common.PreferenceSet)public org.apache.pluto.om.portlet.ContentTypeSet getContentTypeSet()
getContentTypeSet in interface org.apache.pluto.om.portlet.PortletDefinitionPortletDefinition.getContentTypeSet()public org.apache.pluto.om.portlet.PortletApplicationDefinition getPortletApplicationDefinition()
getPortletApplicationDefinition in interface org.apache.pluto.om.portlet.PortletDefinitionPortletDefinition.getPortletApplicationDefinition()public org.apache.pluto.om.servlet.ServletDefinition getServletDefinition()
getServletDefinition in interface org.apache.pluto.om.portlet.PortletDefinitionPortletDefinition.getServletDefinition()public String getExpirationCache()
getExpirationCache in interface org.apache.pluto.om.portlet.PortletDefinitionPortletDefinition.getExpirationCache()public ClassLoader getPortletClassLoader()
getPortletClassLoader in interface org.apache.pluto.om.portlet.PortletDefinitionPortletDefinition.getPortletClassLoader()public void setId(String oid)
setId in interface org.apache.pluto.om.portlet.PortletDefinitionCtrlPortletDefinitionCtrl.setId(java.lang.String)public void setClassName(String className)
setClassName in interface org.apache.pluto.om.portlet.PortletDefinitionCtrlPortletDefinitionCtrl.setClassName(java.lang.String)public void setName(String name)
setName in interface org.apache.pluto.om.portlet.PortletDefinitionCtrlPortletDefinitionCtrl.setName(java.lang.String)public void setPortletClassLoader(ClassLoader loader)
setPortletClassLoader in interface org.apache.pluto.om.portlet.PortletDefinitionCtrlPortletDefinitionCtrl.setPortletClassLoader(java.lang.ClassLoader)public void addLanguage(org.apache.pluto.om.common.Language lang)
addLanguage in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositePortletDefinitionComposite.addLanguage(org.apache.pluto.om.common.Language)
public void addLanguage(String title,
String shortTitle,
String keywords,
Locale locale)
addLanguage in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositePortletDefinitionComposite.addLanguage(java.lang.String, java.lang.String, java.lang.String, java.util.Locale)public void setContentTypeSet(org.apache.pluto.om.portlet.ContentTypeSet contentTypes)
setContentTypeSet in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositePortletDefinitionComposite.setContentTypeSet(org.apache.pluto.om.portlet.ContentTypeSet)public void setInitParameterSet(org.apache.pluto.om.common.ParameterSet parameters)
setInitParameterSet in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositePortletDefinitionComposite.setInitParameterSet(org.apache.pluto.om.common.ParameterSet)public void setInitSecurityRoleRefSet(org.apache.pluto.om.common.SecurityRoleRefSet securityRefs)
setInitSecurityRoleRefSet in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositePortletDefinitionComposite.setInitSecurityRoleRefSet(org.apache.pluto.om.common.SecurityRoleRefSet)public void setLanguageSet(org.apache.pluto.om.common.LanguageSet languages)
setLanguageSet in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositePortletDefinitionComposite.setLanguageSet(org.apache.pluto.om.common.LanguageSet)
public org.apache.jetspeed.om.common.ParameterComposite addInitParameter(String name,
String value,
org.apache.pluto.om.common.DescriptionSet description)
addInitParameter in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositeorg.apache.jetspeed.om.common.portlet.PortletDefinitionComposite#setInitParameter(java.lang.String,
java.lang.String, java.lang.String)
public org.apache.jetspeed.om.common.ParameterComposite addInitParameter(String name,
String value,
String description,
Locale locale)
addInitParameter in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositePortletDefinitionComposite.addInitParameter(java.lang.String,
java.lang.String, java.lang.String, java.util.Locale)public void addInitParameter(org.apache.pluto.om.common.Parameter parameter)
public org.apache.jetspeed.om.common.ParameterComposite addInitParameter(String name,
String value)
addInitParameter in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositeorg.apache.jetspeed.om.common.portlet.PortletDefinitionComposite#setInitParameter(java.lang.String,
java.lang.String)public void setExpirationCache(String cache)
setExpirationCache in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositePortletDefinitionComposite.setExpirationCache(java.lang.String)public void addContentType(org.apache.pluto.om.portlet.ContentType cType)
addContentType in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositePortletDefinitionComposite.addContentType(org.apache.pluto.om.portlet.ContentType)
public void addContentType(String contentType,
Collection modes)
addContentType in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositeorg.apache.jetspeed.om.common.portlet.PortletDefinitionComposite#addContentType(java.lang.String, java.lang.String[])
public org.apache.jetspeed.om.common.preference.PreferenceComposite addPreference(String name,
String[] values)
addPreference in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositeorg.apache.jetspeed.om.common.portlet.PortletDefinitionComposite#addPreference(java.lang.String,
java.util.Collection)public void setPortletIdentifier(String portletIdentifier)
setPortletIdentifier in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositepublic String getPortletIdentifier()
getPortletIdentifier in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositepublic void setPortletApplicationDefinition(org.apache.pluto.om.portlet.PortletApplicationDefinition pad)
setPortletApplicationDefinition in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositePortletDefinitionComposite.setPortletApplicationDefinition(org.apache.pluto.om.portlet.PortletApplicationDefinition)public boolean equals(Object obj)
Object.equals(java.lang.Object)public int hashCode()
Object.hashCode()public String getUniqueName()
getUniqueName in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositePortletDefinitionComposite.getUniqueName()public org.apache.pluto.om.common.Description getDescription(Locale arg0)
getDescription in interface org.apache.pluto.om.portlet.PortletDefinitionPortletDefinition.getDescription(java.util.Locale)public org.apache.pluto.om.common.DisplayName getDisplayName(Locale arg0)
getDisplayName in interface org.apache.pluto.om.portlet.PortletDefinitionPortletDefinition.getDisplayName(java.util.Locale)public void setDescriptions(org.apache.pluto.om.common.DescriptionSet arg0)
setDescriptions in interface org.apache.pluto.om.portlet.PortletDefinitionCtrlPortletDefinitionCtrl.setDescriptions(org.apache.pluto.om.common.DescriptionSet)public void setDisplayNames(org.apache.pluto.om.common.DisplayNameSet arg0)
setDisplayNames in interface org.apache.pluto.om.portlet.PortletDefinitionCtrlPortletDefinitionCtrl.setDisplayNames(org.apache.pluto.om.common.DisplayNameSet)public String getDisplayNameText(Locale locale)
getDisplayNameText in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositelocale - Locale to get the display name for
null
if no DisplayName exists for this localepublic String getDescriptionText(Locale locale)
getDescriptionText in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositelocale - Locale to get the description for
null
if no Description exists for this localepublic org.apache.pluto.om.common.DescriptionSet getDescriptionSet()
getDescriptionSet in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite
public void addDescription(Locale locale,
String description)
addDescription in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositePortletDefinitionComposite.addDescription(java.util.Locale,
java.lang.String)public void addDescription(org.apache.pluto.om.common.Description description)
public void addDisplayName(Locale locale,
String displayName)
addDisplayName in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositePortletDefinitionComposite.addDisplayName(java.util.Locale,
java.lang.String)public void addDisplayName(org.apache.pluto.om.common.DisplayName displayName)
addDisplayName in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositepublic org.apache.pluto.om.common.DisplayNameSet getDisplayNameSet()
getDisplayNameSet in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite
public void store()
throws IOException
store will attempt to perform an atomic persistence call against this portletDefinition.
store in interface org.apache.pluto.om.portlet.PortletDefinitionCtrlIOExceptionPortletDefinitionCtrl.store()public String getPreferenceValidatorClassname()
getPreferenceValidatorClassname
getPreferenceValidatorClassname in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositepublic void setPreferenceValidatorClassname(String string)
setPreferenceValidatorClassname
setPreferenceValidatorClassname in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositestring - public void addPreference(org.apache.pluto.om.common.Preference preference)
addPreference in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositepreference - PortletDefinitionComposite.addPreference(org.apache.pluto.om.common.Preference)public void addSecurityRoleRef(org.apache.pluto.om.common.SecurityRoleRef securityRef)
addSecurityRoleRef in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositePortletDefinitionComposite.addSecurityRoleRef(org.apache.pluto.om.common.SecurityRoleRef)
public org.apache.pluto.om.common.SecurityRoleRef addSecurityRoleRef(String roleName,
String roleLink)
addSecurityRoleRef in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositePortletDefinitionComposite.addSecurityRoleRef(java.lang.String, java.lang.String)public org.apache.jetspeed.om.common.GenericMetadata getMetadata()
getMetadata in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositePortletApplication.getMetadata()public void setMetadata(org.apache.jetspeed.om.common.GenericMetadata metadata)
setMetadata in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositeMutablePortletApplication.setMetadata(org.apache.jetspeed.om.common.GenericMetadata)protected Collection getMetadataFields()
protected void setMetadataFields(Collection metadataFields)
public String getResourceBundle()
getResourceBundle in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositepublic void setResourceBundle(String string)
string - public Collection getSupportedLocales()
getSupportedLocales in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionCompositepublic void addSupportedLocale(String locale)
public void postLoad(Object parameter)
throws Exception
postLoad in interface org.apache.jetspeed.om.common.SupportExceptionpublic static void setPortletRegistry(org.apache.jetspeed.components.portletregistry.PortletRegistry registry)
public static void setPortletFactory(org.apache.jetspeed.factory.PortletFactory portletFactory)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||