|
|||||||||||
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
The BasePortletInfoEntry is a bean like implementation of the PortletInfoEntry interface suitable for Castor XML serialization
PortletInfoEntry
,
Serialized FormField Summary | |
protected java.lang.String |
classname
|
protected java.util.Vector |
medias
|
protected java.util.Map |
mediasIdx
|
protected java.util.Map |
nameIdx
|
protected java.util.Vector |
parameter
|
protected java.util.Vector |
tools
|
protected java.util.Map |
toolsIdx
|
Fields inherited from class org.apache.jetspeed.om.registry.base.BaseRegistryEntry |
_hidden, hidden, id, metaInfo, name, security, securityRef |
Constructor Summary | |
BasePortletInfoEntry()
|
Method Summary | |
void |
addMediaType(java.lang.String name)
Add a new supported media type |
void |
addParameter(Parameter param)
Adds a new parameter for this entry |
void |
addParameter(java.lang.String name,
java.lang.String value)
Adds a new parameter for this entry |
void |
addTool(ToolDescriptor tool)
Adds a new parameter for this entry |
protected void |
buildNameIndex()
This method recreates the paramter name index for quick retrieval of parameters by name. |
boolean |
equals(java.lang.Object object)
Implements the equals operation so that 2 elements are equal if all their member values are equal. |
java.lang.String |
getClassname()
|
java.util.Vector |
getMediaTypes()
Needed for Castor 0.8.11 XML serialization for retrieving the media type names associated to this object |
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.util.Vector |
getParameters()
Needed for Castor 0.8.11 XML serialization for retrieving the parameters objects associated to this object |
ToolDescriptor |
getTool(java.lang.String name)
Search for a named parameter and return the associated parameter object. |
java.util.Map |
getToolMap()
Returns a map of parameter values keyed on the parameter names |
java.util.Iterator |
getToolNames()
|
java.util.Vector |
getTools()
|
boolean |
hasMediaType(java.lang.String name)
Test if a given media type is supported by this entry. |
java.util.Iterator |
listMediaTypes()
Returns a list of the supported media type names |
void |
removeMediaType(java.lang.String name)
Remove support for a given media type |
void |
removeParameter(java.lang.String name)
Removes all parameter values associated with the name |
void |
removeTool(java.lang.String name)
Removes all parameter values associated with the name |
void |
setClassname(java.lang.String classname)
Sets the classname for this entry. |
void |
setMediaTypes(java.util.Vector mediaTypes)
|
void |
setParameters(java.util.Vector parameters)
|
void |
setTools(java.util.Vector tools)
|
Methods inherited from class org.apache.jetspeed.om.registry.base.BaseRegistryEntry |
getBaseMetaInfo, getBaseSecurity, getDescription, getHidden, getId, getMetaInfo, getName, getSecurity, getSecurityRef, getTitle, 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 |
Field Detail |
protected java.lang.String classname
protected java.util.Vector parameter
protected transient java.util.Map nameIdx
protected java.util.Vector medias
protected transient java.util.Map mediasIdx
protected java.util.Vector tools
protected transient java.util.Map toolsIdx
Constructor Detail |
public BasePortletInfoEntry()
Method Detail |
public boolean equals(java.lang.Object object)
equals
in class BaseRegistryEntry
public java.lang.String getClassname()
public void setClassname(java.lang.String classname)
classname
- the classname used for instanciating the component associated with
this entrypublic java.util.Iterator getParameterNames()
public Parameter getParameter(java.lang.String name)
name
- the parameter name to look for
public java.util.Map getParameterMap()
public void addParameter(java.lang.String name, java.lang.String value)
name
- the new parameter namevalue
- the new parameter valuepublic void addParameter(Parameter param)
public void removeParameter(java.lang.String name)
name
- the parameter name to removepublic java.util.Iterator listMediaTypes()
public boolean hasMediaType(java.lang.String name)
name
- the media type name to test for.
public void addMediaType(java.lang.String name)
name
- the media type name to add.public void removeMediaType(java.lang.String name)
name
- the media type name to remove.public java.util.Vector getParameters()
public void setParameters(java.util.Vector parameters)
public void setMediaTypes(java.util.Vector mediaTypes)
public java.util.Vector getMediaTypes()
public java.util.Vector getTools()
public void setTools(java.util.Vector tools)
protected void buildNameIndex()
public java.util.Iterator getToolNames()
public ToolDescriptor getTool(java.lang.String name)
name
- the parameter name to look for
public java.util.Map getToolMap()
public void addTool(ToolDescriptor tool)
public void removeTool(java.lang.String name)
name
- the parameter name to remove
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |