|
||||||||||
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
public class 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 String |
jetspeedSecurityConstraint
|
private LanguageSetImpl |
langListWrapper
|
private Collection |
languageSet
|
private Collection |
metadataFields
Metadata property |
private String |
name
|
private org.apache.jetspeed.util.JetspeedLongObjectID |
oid
|
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()
|
String |
getJetspeedSecurityConstraint()
|
org.apache.pluto.om.common.LanguageSet |
getLanguageSet()
|
org.apache.jetspeed.om.common.GenericMetadata |
getMetadata()
|
protected Collection |
getMetadataFields()
|
String |
getName()
|
org.apache.pluto.om.portlet.PortletApplicationDefinition |
getPortletApplicationDefinition()
|
ClassLoader |
getPortletClassLoader()
|
String |
getPortletIdentifier()
|
org.apache.pluto.om.common.PreferenceSet |
getPreferenceSet()
|
javax.portlet.PreferencesValidator |
getPreferencesValidator()
|
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 |
setJetspeedSecurityConstraint(String constraint)
|
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 |
---|
protected static org.apache.jetspeed.components.portletregistry.PortletRegistry registry
protected static org.apache.jetspeed.factory.PortletFactory portletFactory
private Long id
private org.apache.jetspeed.util.JetspeedLongObjectID oid
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
private String jetspeedSecurityConstraint
Constructor Detail |
---|
public PortletDefinitionImpl()
Method Detail |
---|
public org.apache.pluto.om.common.ObjectID getId()
getId
in interface org.apache.pluto.om.portlet.PortletDefinition
PortletDefinition.getId()
public String getClassName()
getClassName
in interface org.apache.pluto.om.portlet.PortletDefinition
PortletDefinition.getClassName()
public String getName()
getName
in interface org.apache.pluto.om.portlet.PortletDefinition
PortletDefinition.getName()
public org.apache.pluto.om.common.LanguageSet getLanguageSet()
getLanguageSet
in interface org.apache.pluto.om.portlet.PortletDefinition
PortletDefinition.getLanguageSet()
public org.apache.pluto.om.common.ParameterSet getInitParameterSet()
getInitParameterSet
in interface org.apache.pluto.om.portlet.PortletDefinition
PortletDefinition.getInitParameterSet()
public org.apache.pluto.om.common.SecurityRoleRefSet getInitSecurityRoleRefSet()
getInitSecurityRoleRefSet
in interface org.apache.pluto.om.portlet.PortletDefinition
PortletDefinition.getInitSecurityRoleRefSet()
public org.apache.pluto.om.common.PreferenceSet getPreferenceSet()
getPreferenceSet
in interface org.apache.pluto.om.portlet.PortletDefinition
PortletDefinition.getPreferenceSet()
public void setPreferenceSet(org.apache.pluto.om.common.PreferenceSet preferences)
setPreferenceSet
in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite
PortletDefinitionComposite.setPreferenceSet(org.apache.pluto.om.common.PreferenceSet)
public org.apache.pluto.om.portlet.ContentTypeSet getContentTypeSet()
getContentTypeSet
in interface org.apache.pluto.om.portlet.PortletDefinition
PortletDefinition.getContentTypeSet()
public org.apache.pluto.om.portlet.PortletApplicationDefinition getPortletApplicationDefinition()
getPortletApplicationDefinition
in interface org.apache.pluto.om.portlet.PortletDefinition
PortletDefinition.getPortletApplicationDefinition()
public org.apache.pluto.om.servlet.ServletDefinition getServletDefinition()
getServletDefinition
in interface org.apache.pluto.om.portlet.PortletDefinition
PortletDefinition.getServletDefinition()
public String getExpirationCache()
getExpirationCache
in interface org.apache.pluto.om.portlet.PortletDefinition
PortletDefinition.getExpirationCache()
public ClassLoader getPortletClassLoader()
getPortletClassLoader
in interface org.apache.pluto.om.portlet.PortletDefinition
PortletDefinition.getPortletClassLoader()
public void setId(String oid)
setId
in interface org.apache.pluto.om.portlet.PortletDefinitionCtrl
PortletDefinitionCtrl.setId(java.lang.String)
public void setClassName(String className)
setClassName
in interface org.apache.pluto.om.portlet.PortletDefinitionCtrl
PortletDefinitionCtrl.setClassName(java.lang.String)
public void setName(String name)
setName
in interface org.apache.pluto.om.portlet.PortletDefinitionCtrl
PortletDefinitionCtrl.setName(java.lang.String)
public void setPortletClassLoader(ClassLoader loader)
setPortletClassLoader
in interface org.apache.pluto.om.portlet.PortletDefinitionCtrl
PortletDefinitionCtrl.setPortletClassLoader(java.lang.ClassLoader)
public void addLanguage(org.apache.pluto.om.common.Language lang)
addLanguage
in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite
PortletDefinitionComposite.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.PortletDefinitionComposite
PortletDefinitionComposite.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.PortletDefinitionComposite
PortletDefinitionComposite.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.PortletDefinitionComposite
PortletDefinitionComposite.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.PortletDefinitionComposite
PortletDefinitionComposite.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.PortletDefinitionComposite
PortletDefinitionComposite.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.PortletDefinitionComposite
org.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.PortletDefinitionComposite
PortletDefinitionComposite.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.PortletDefinitionComposite
org.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.PortletDefinitionComposite
PortletDefinitionComposite.setExpirationCache(java.lang.String)
public void addContentType(org.apache.pluto.om.portlet.ContentType cType)
addContentType
in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite
PortletDefinitionComposite.addContentType(org.apache.pluto.om.portlet.ContentType)
public void addContentType(String contentType, Collection modes)
addContentType
in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite
org.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.PortletDefinitionComposite
org.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.PortletDefinitionComposite
public String getPortletIdentifier()
getPortletIdentifier
in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite
public void setPortletApplicationDefinition(org.apache.pluto.om.portlet.PortletApplicationDefinition pad)
setPortletApplicationDefinition
in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite
PortletDefinitionComposite.setPortletApplicationDefinition(org.apache.pluto.om.portlet.PortletApplicationDefinition)
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public String getUniqueName()
getUniqueName
in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite
PortletDefinitionComposite.getUniqueName()
public org.apache.pluto.om.common.Description getDescription(Locale arg0)
getDescription
in interface org.apache.pluto.om.portlet.PortletDefinition
PortletDefinition.getDescription(java.util.Locale)
public org.apache.pluto.om.common.DisplayName getDisplayName(Locale arg0)
getDisplayName
in interface org.apache.pluto.om.portlet.PortletDefinition
PortletDefinition.getDisplayName(java.util.Locale)
public void setDescriptions(org.apache.pluto.om.common.DescriptionSet arg0)
setDescriptions
in interface org.apache.pluto.om.portlet.PortletDefinitionCtrl
PortletDefinitionCtrl.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.PortletDefinitionCtrl
PortletDefinitionCtrl.setDisplayNames(org.apache.pluto.om.common.DisplayNameSet)
public String getDisplayNameText(Locale locale)
getDisplayNameText
in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite
locale
- 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.PortletDefinitionComposite
locale
- 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.PortletDefinitionComposite
PortletDefinitionComposite.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.PortletDefinitionComposite
PortletDefinitionComposite.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.PortletDefinitionComposite
public 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.PortletDefinitionCtrl
IOException
PortletDefinitionCtrl.store()
public String getPreferenceValidatorClassname()
getPreferenceValidatorClassname
getPreferenceValidatorClassname
in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite
public void setPreferenceValidatorClassname(String string)
setPreferenceValidatorClassname
setPreferenceValidatorClassname
in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite
string
- public void addPreference(org.apache.pluto.om.common.Preference preference)
addPreference
in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite
preference
- 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.PortletDefinitionComposite
PortletDefinitionComposite.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.PortletDefinitionComposite
PortletDefinitionComposite.addSecurityRoleRef(java.lang.String, java.lang.String)
public org.apache.jetspeed.om.common.GenericMetadata getMetadata()
getMetadata
in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite
PortletApplication.getMetadata()
public void setMetadata(org.apache.jetspeed.om.common.GenericMetadata metadata)
setMetadata
in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite
MutablePortletApplication.setMetadata(org.apache.jetspeed.om.common.GenericMetadata)
protected Collection getMetadataFields()
protected void setMetadataFields(Collection metadataFields)
collection
- public String getResourceBundle()
getResourceBundle
in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite
public void setResourceBundle(String string)
string
- public Collection getSupportedLocales()
getSupportedLocales
in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite
public void addSupportedLocale(String locale)
public void postLoad(Object parameter) throws Exception
postLoad
in interface org.apache.jetspeed.om.common.Support
Exception
public static void setPortletRegistry(org.apache.jetspeed.components.portletregistry.PortletRegistry registry)
public static void setPortletFactory(org.apache.jetspeed.factory.PortletFactory portletFactory)
public javax.portlet.PreferencesValidator getPreferencesValidator()
getPreferencesValidator
in interface org.apache.jetspeed.om.common.preference.PreferencesValidatorFactory
public String getJetspeedSecurityConstraint()
getJetspeedSecurityConstraint
in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite
public void setJetspeedSecurityConstraint(String constraint)
setJetspeedSecurityConstraint
in interface org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |