|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This entry describes all the properties that should be present in a RegistryEntry describing a Portlet.
Each PortletEntry must have a type, which may be:
Field Summary | |
static java.lang.String |
DEFAULT_CATEGORY_ABSTRACT
|
static java.lang.String |
DEFAULT_CATEGORY_REF
|
static java.lang.String |
DEFAULT_GROUP
|
static java.lang.String |
TYPE_ABSTRACT
|
static java.lang.String |
TYPE_INSTANCE
|
static java.lang.String |
TYPE_REF
|
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. |
CachedParameter |
getCachedParameter(java.lang.String name)
helper to get an instance of a cached parameter. |
java.lang.String |
getParent()
|
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 |
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 categories |
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 cached)
Determines whether to use the URL as part of the unique id to the portlet cache. |
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 interface org.apache.jetspeed.om.registry.PortletInfoEntry |
addMediaType, addParameter, addParameter, addTool, getClassname, getParameter, getParameterMap, getParameterNames, getTool, getToolMap, getToolNames, hasMediaType, listMediaTypes, removeMediaType, removeParameter, removeTool, setClassname |
Methods inherited from interface org.apache.jetspeed.om.registry.RegistryEntry |
getDescription, getId, getMetaInfo, getName, getSecurity, getSecurityRef, getTitle, isHidden, setDescription, setHidden, setMetaInfo, setName, setSecurity, setSecurityRef, setTitle |
Field Detail |
public static final java.lang.String TYPE_REF
public static final java.lang.String TYPE_INSTANCE
public static final java.lang.String TYPE_ABSTRACT
public static final java.lang.String DEFAULT_GROUP
public static final java.lang.String DEFAULT_CATEGORY_REF
public static final java.lang.String DEFAULT_CATEGORY_ABSTRACT
Method Detail |
public java.lang.String getURL()
public void setURL(java.lang.String url)
url
- the new PortletEntry URLpublic boolean isCachedOnURL()
public void setCachedOnURL(boolean cached)
public ContentURL getURLEntry()
public CachedParameter getCachedParameter(java.lang.String name)
name
- The parameter name.
public java.lang.String getParent()
public void setParent(java.lang.String parent)
parent
- the new ancestor entry name. This name should
be defined in the system registrypublic boolean isAdmin()
public boolean isApplication()
public void setApplication(boolean application)
application
- the new application statuspublic java.lang.String getType()
public void setType(java.lang.String type)
type
- the new type for the PortletEntrypublic java.util.Iterator listCategories()
public boolean hasCategory(java.lang.String name)
name
- the category name
public boolean hasCategory(java.lang.String name, java.lang.String group)
name
- the category namegroup
- the category group
public void addCategory(java.lang.String name)
name
- the category namepublic void addCategory(java.lang.String name, java.lang.String group)
name
- the category namegroup
- the category group namepublic void removeCategory(java.lang.String name)
name
- the category namepublic void removeCategory(java.lang.String name, java.lang.String group)
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 |