|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.om.registry.base.BaseRegistryEntry org.apache.jetspeed.om.registry.base.BasePortletInfoEntry org.apache.jetspeed.om.registry.base.BasePortletEntry
Default bean like implementation of the PortletEntry interface suitable for serialization with Castor
Field Summary | |
protected java.util.Vector |
categories
|
Fields inherited from class org.apache.jetspeed.om.registry.base.BasePortletInfoEntry |
classname, medias, mediasIdx, nameIdx, parameter, tools, toolsIdx |
Fields inherited from class org.apache.jetspeed.om.registry.base.BaseRegistryEntry |
_hidden, hidden, metaInfo, name, security, securityRef |
Fields inherited from interface org.apache.jetspeed.om.registry.PortletEntry |
DEFAULT_CATEGORY_ABSTRACT, DEFAULT_CATEGORY_REF, DEFAULT_GROUP, TYPE_ABSTRACT, TYPE_INSTANCE, TYPE_REF |
Constructor Summary | |
BasePortletEntry()
|
|
BasePortletEntry(long id)
|
Method Summary | |
void |
addCategory(java.lang.String name)
Add a new category to this portlet entry in the default group. |
void |
addCategory(java.lang.String name,
java.lang.String group)
Add a new category to this portlet entry. |
boolean |
equals(java.lang.Object object)
Implements the equals operation so that 2 elements are equal if all their member values are equal. |
boolean |
getApplication()
This method is used by the Castor persistence system to retrieve the application status |
CachedParameter |
getCachedParameter(java.lang.String name)
helper to get an instance of a cached parameter. |
java.util.Vector |
getCategories()
|
java.lang.String |
getClassname()
|
BaseContentURL |
getContentURL()
|
java.lang.String |
getDescription()
|
MetaInfo |
getMetaInfo()
|
Parameter |
getParameter(java.lang.String name)
Search for a named parameter and return the associated parameter object. |
java.util.Map |
getParameterMap()
Returns a map of parameter values keyed on the parameter names |
java.util.Iterator |
getParameterNames()
|
java.lang.String |
getParent()
|
PortletEntry |
getParentEntry()
Looks up in the Registry the parent entry for this real entry |
java.lang.String |
getTitle()
|
java.lang.String |
getType()
|
java.lang.String |
getURL()
|
ContentURL |
getURLEntry()
Gets the URL entry record for this portlet entry |
boolean |
hasCategory(java.lang.String name)
Test if a given category exists for this entry |
boolean |
hasCategory(java.lang.String name,
java.lang.String group)
Test if a given category exists for this entry, in the specified group of categories. |
boolean |
hasMediaType(java.lang.String name)
Test if a given media type is supported by this entry. |
boolean |
isAdmin()
|
boolean |
isApplication()
|
boolean |
isCachedOnURL()
Determines whether to use the URL as part of the unique id to the portlet cache. |
java.util.Iterator |
listCategories()
Returns a list of the supported media type names |
java.util.Iterator |
listMediaTypes()
Returns a list of the supported media type names |
void |
removeCategory(java.lang.String name)
Remove a category from this portlet entry in the default group. |
void |
removeCategory(java.lang.String name,
java.lang.String group)
Remove a category from this portlet entry in the specified group. |
void |
setApplication(boolean application)
Sets the application status of this portlet entry. |
void |
setCachedOnURL(boolean cache)
Determines whether to use the URL as part of the unique id to the portlet cache. |
void |
setCategories(java.util.Vector v)
|
void |
setContentURL(BaseContentURL url)
Sets the URL for this PortletEntry |
void |
setParent(java.lang.String parent)
Sets the ancestor for this PortletEntry. |
void |
setType(java.lang.String type)
Sets the type of this entry. |
void |
setURL(java.lang.String url)
Sets the URL for this PortletEntry |
Methods inherited from class org.apache.jetspeed.om.registry.base.BasePortletInfoEntry |
addMediaType, addParameter, addParameter, addTool, buildNameIndex, getMediaTypes, getParameters, getTool, getToolMap, getToolNames, getTools, removeMediaType, removeParameter, removeTool, setClassname, setMediaTypes, setParameters, setTools |
Methods inherited from class org.apache.jetspeed.om.registry.base.BaseRegistryEntry |
getBaseMetaInfo, getBaseSecurity, getHidden, getId, getName, getSecurity, getSecurityRef, isHidden, setBaseMetaInfo, setBaseSecurity, setDescription, setHidden, setMetaInfo, setName, setSecurity, setSecurityRef, setTitle |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.jetspeed.om.registry.PortletInfoEntry |
addMediaType, addParameter, addParameter, addTool, getTool, getToolMap, getToolNames, removeMediaType, removeParameter, removeTool, setClassname |
Methods inherited from interface org.apache.jetspeed.om.registry.RegistryEntry |
getId, getName, getSecurity, getSecurityRef, isHidden, setDescription, setHidden, setMetaInfo, setName, setSecurity, setSecurityRef, setTitle |
Field Detail |
protected java.util.Vector categories
Constructor Detail |
public BasePortletEntry()
public BasePortletEntry(long id)
Method Detail |
public boolean equals(java.lang.Object object)
equals
in class BasePortletInfoEntry
public java.lang.String getURL()
getURL
in interface PortletEntry
public void setURL(java.lang.String url)
setURL
in interface PortletEntry
url
- the new PortletEntry URLpublic boolean isCachedOnURL()
PortletEntry
isCachedOnURL
in interface PortletEntry
public void setCachedOnURL(boolean cache)
PortletEntry
setCachedOnURL
in interface PortletEntry
public ContentURL getURLEntry()
PortletEntry
getURLEntry
in interface PortletEntry
public java.lang.String getParent()
getParent
in interface PortletEntry
public java.lang.String getClassname()
getClassname
in interface PortletInfoEntry
getClassname
in class BasePortletInfoEntry
public void setParent(java.lang.String parent)
setParent
in interface PortletEntry
parent
- the new ancestor entry name. This name should
be defined in the system registrypublic boolean isAdmin()
isAdmin
in interface PortletEntry
public boolean isApplication()
isApplication
in interface PortletEntry
public void setApplication(boolean application)
setApplication
in interface PortletEntry
application
- the new application statuspublic java.lang.String getType()
getType
in interface PortletEntry
public void setType(java.lang.String type)
setType
in interface PortletEntry
type
- the new type for the PortletEntrypublic boolean getApplication()
PortletEntry.isApplication()
public java.lang.String getTitle()
getTitle
in interface RegistryEntry
getTitle
in class BaseRegistryEntry
RegistryEntry.getTitle()
public java.lang.String getDescription()
getDescription
in interface RegistryEntry
getDescription
in class BaseRegistryEntry
RegistryEntry.getDescription()
public PortletEntry getParentEntry()
public MetaInfo getMetaInfo()
getMetaInfo
in interface RegistryEntry
getMetaInfo
in class BaseRegistryEntry
public java.util.Iterator getParameterNames()
getParameterNames
in interface PortletInfoEntry
getParameterNames
in class BasePortletInfoEntry
public Parameter getParameter(java.lang.String name)
getParameter
in interface PortletInfoEntry
getParameter
in class BasePortletInfoEntry
name
- the parameter name to look for
public CachedParameter getCachedParameter(java.lang.String name)
PortletEntry
getCachedParameter
in interface PortletEntry
name
- The parameter name.
public java.util.Map getParameterMap()
getParameterMap
in interface PortletInfoEntry
getParameterMap
in class BasePortletInfoEntry
public java.util.Iterator listMediaTypes()
listMediaTypes
in interface PortletInfoEntry
listMediaTypes
in class BasePortletInfoEntry
public boolean hasMediaType(java.lang.String name)
hasMediaType
in interface PortletInfoEntry
hasMediaType
in class BasePortletInfoEntry
name
- the media type name to test for.
public BaseContentURL getContentURL()
public void setContentURL(BaseContentURL url)
url
- the new PortletEntry URLpublic java.util.Vector getCategories()
public void setCategories(java.util.Vector v)
public java.util.Iterator listCategories()
listCategories
in interface PortletEntry
public boolean hasCategory(java.lang.String name)
hasCategory
in interface PortletEntry
name
- the category name
public boolean hasCategory(java.lang.String name, java.lang.String group)
hasCategory
in interface PortletEntry
name
- the category namegroup
- the category group
public void addCategory(java.lang.String name)
addCategory
in interface PortletEntry
name
- the category namepublic void addCategory(java.lang.String name, java.lang.String group)
addCategory
in interface PortletEntry
name
- the category namegroup
- the category group namepublic void removeCategory(java.lang.String name)
removeCategory
in interface PortletEntry
name
- the category namepublic void removeCategory(java.lang.String name, java.lang.String group)
removeCategory
in interface PortletEntry
name
- the media type name to remove.group
- the category group name
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |