|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.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 BasePortletInfoEntrypublic java.lang.String getURL()
getURL in interface PortletEntrypublic void setURL(java.lang.String url)
setURL in interface PortletEntryurl - the new PortletEntry URLpublic boolean isCachedOnURL()
PortletEntry
isCachedOnURL in interface PortletEntrypublic void setCachedOnURL(boolean cache)
PortletEntry
setCachedOnURL in interface PortletEntrypublic ContentURL getURLEntry()
PortletEntry
getURLEntry in interface PortletEntrypublic java.lang.String getParent()
getParent in interface PortletEntrypublic java.lang.String getClassname()
getClassname in interface PortletInfoEntrygetClassname in class BasePortletInfoEntrypublic void setParent(java.lang.String parent)
setParent in interface PortletEntryparent - the new ancestor entry name. This name should
be defined in the system registrypublic boolean isAdmin()
isAdmin in interface PortletEntrypublic boolean isApplication()
isApplication in interface PortletEntrypublic void setApplication(boolean application)
setApplication in interface PortletEntryapplication - the new application statuspublic java.lang.String getType()
getType in interface PortletEntrypublic void setType(java.lang.String type)
setType in interface PortletEntrytype - the new type for the PortletEntrypublic boolean getApplication()
PortletEntry.isApplication()public java.lang.String getTitle()
getTitle in interface RegistryEntrygetTitle in class BaseRegistryEntryRegistryEntry.getTitle()public java.lang.String getDescription()
getDescription in interface RegistryEntrygetDescription in class BaseRegistryEntryRegistryEntry.getDescription()public PortletEntry getParentEntry()
public MetaInfo getMetaInfo()
getMetaInfo in interface RegistryEntrygetMetaInfo in class BaseRegistryEntrypublic java.util.Iterator getParameterNames()
getParameterNames in interface PortletInfoEntrygetParameterNames in class BasePortletInfoEntrypublic Parameter getParameter(java.lang.String name)
getParameter in interface PortletInfoEntrygetParameter in class BasePortletInfoEntryname - the parameter name to look for
public CachedParameter getCachedParameter(java.lang.String name)
PortletEntry
getCachedParameter in interface PortletEntryname - The parameter name.
public java.util.Map getParameterMap()
getParameterMap in interface PortletInfoEntrygetParameterMap in class BasePortletInfoEntrypublic java.util.Iterator listMediaTypes()
listMediaTypes in interface PortletInfoEntrylistMediaTypes in class BasePortletInfoEntrypublic boolean hasMediaType(java.lang.String name)
hasMediaType in interface PortletInfoEntryhasMediaType in class BasePortletInfoEntryname - 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 PortletEntrypublic boolean hasCategory(java.lang.String name)
hasCategory in interface PortletEntryname - the category name
public boolean hasCategory(java.lang.String name,
java.lang.String group)
hasCategory in interface PortletEntryname - the category namegroup - the category group
public void addCategory(java.lang.String name)
addCategory in interface PortletEntryname - the category name
public void addCategory(java.lang.String name,
java.lang.String group)
addCategory in interface PortletEntryname - the category namegroup - the category group namepublic void removeCategory(java.lang.String name)
removeCategory in interface PortletEntryname - the category name
public void removeCategory(java.lang.String name,
java.lang.String group)
removeCategory in interface PortletEntryname - 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 | ||||||||||