|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Dictionary java.util.Hashtable org.apache.jetspeed.util.BaseConfig org.apache.jetspeed.portal.BasePortletConfig
Defines a configuration for Portlets. A PortletConfig provides information about the running environment of a given Portlet.
Constructor Summary | |
BasePortletConfig()
|
Method Summary | |
CapabilityMap |
getCapabilityMap()
|
PortletSet.Constraints |
getConstraints()
Retrieves the constraints associated with this portlet |
java.util.Map |
getLayout()
Deprecated. use getConstraints instead |
java.lang.String |
getLayout(java.lang.String name,
java.lang.String defaultValue)
Returns a parameter (or defaultValue) that was given to a Portlet. |
MetaData |
getMetainfo()
Returns this Portlet's Metainfo or null it none exists. |
java.lang.String |
getPageId()
|
java.lang.String |
getPortletId()
|
PortletSet |
getPortletSet()
Returns the portlet current PortletSet |
PortletSkin |
getPortletSkin()
Retrieves the Skin object that should be used for this portlet. |
int |
getPosition()
Returns the portlet current PortletSet |
SecurityReference |
getSecurityRef()
Getter for property securityRef. |
java.util.Map |
getSkin()
Returns the current skin mapping. |
java.lang.String |
getSkin(java.lang.String name,
java.lang.String defaultValue)
Returns a parameter (or defaultValue) that was given to a Portlet. |
java.lang.String |
getURL()
Portlets can have external configuration information other than just parameters. |
void |
init(java.lang.String url,
java.util.Map init_params)
Init this PortletConfig providing the basic info. |
boolean |
isCachedOnURL()
Determines whether to use the URL as part of the unique id to the portlet cache. |
void |
setCachedOnURL(boolean cached)
Determines whether to use the URL as part of the unique id to the portlet cache. |
void |
setCapabilityMap(CapabilityMap cm)
|
void |
setConstraints(PortletSet.Constraints constraints)
Sets the layout constraints in the current portlet set |
void |
setLayout(java.util.Map constraints)
Deprecated. use setConstraints instead |
void |
setMetainfo(MetaData metainfo)
Set the metainfo for the Portlet |
void |
setPageId(java.lang.String pageId)
|
void |
setPortletId(java.lang.String portletId)
|
void |
setPortletSet(PortletSet set)
Set the context (PortletSet) for this portlet |
void |
setPortletSkin(PortletSkin skin)
Sets the PortletSkin to use for this Portlet |
void |
setPosition(int position)
Set the context (PortletSet) for this portlet |
void |
setSecurityRef(SecurityReference securityRef)
Setter for property securityRef. |
void |
setSkin(java.util.Map skin)
Deprecated. use setPortletSkin instead |
void |
setSkin(java.lang.String name,
java.lang.String value)
Sets a skin parameter value in the local config |
void |
setURL(java.lang.String url)
Used to define a Portlet's URL. |
Methods inherited from class org.apache.jetspeed.util.BaseConfig |
addInitParameters, getInitParameter, getInitParameter, getInitParameterNames, getInitParameters, getName, setInitParameter, setInitParameters, setName |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.jetspeed.util.Config |
addInitParameters, getInitParameter, getInitParameter, getInitParameterNames, getInitParameters, getName, setInitParameter, setInitParameters, setName |
Constructor Detail |
public BasePortletConfig()
Method Detail |
public void init(java.lang.String url, java.util.Map init_params)
init
in interface PortletConfig
public PortletSet getPortletSet()
getPortletSet
in interface PortletConfig
public void setPortletSet(PortletSet set)
setPortletSet
in interface PortletConfig
public java.util.Map getLayout()
getLayout
in interface PortletConfig
public void setLayout(java.util.Map constraints)
setLayout
in interface PortletConfig
public java.util.Map getSkin()
getSkin
in interface PortletConfig
public void setSkin(java.util.Map skin)
setSkin
in interface PortletConfig
public int getPosition()
getPosition
in interface PortletConfig
public void setPosition(int position)
setPosition
in interface PortletConfig
public MetaData getMetainfo()
getMetainfo
in interface PortletConfig
public void setMetainfo(MetaData metainfo)
setMetainfo
in interface PortletConfig
public java.lang.String getURL()
getURL
in interface PortletConfig
public void setURL(java.lang.String url)
setURL
in interface PortletConfig
public boolean isCachedOnURL()
PortletConfig
isCachedOnURL
in interface PortletConfig
public void setCachedOnURL(boolean cached)
PortletConfig
setCachedOnURL
in interface PortletConfig
public java.lang.String getLayout(java.lang.String name, java.lang.String defaultValue)
getLayout
in interface PortletConfig
public java.lang.String getSkin(java.lang.String name, java.lang.String defaultValue)
getSkin
in interface PortletConfig
public void setSkin(java.lang.String name, java.lang.String value)
setSkin
in interface PortletConfig
public PortletSkin getPortletSkin()
getPortletSkin
in interface PortletConfig
public void setPortletSkin(PortletSkin skin)
setPortletSkin
in interface PortletConfig
skin
- the new skin to usepublic PortletSet.Constraints getConstraints()
getConstraints
in interface PortletConfig
public void setConstraints(PortletSet.Constraints constraints)
setConstraints
in interface PortletConfig
constraints
- the constrints object associated with this portlet
in the current setpublic CapabilityMap getCapabilityMap()
getCapabilityMap
in interface PortletConfig
public void setCapabilityMap(CapabilityMap cm)
setCapabilityMap
in interface PortletConfig
public void setPageId(java.lang.String pageId)
setPageId
in interface PortletConfig
public java.lang.String getPageId()
getPageId
in interface PortletConfig
public void setPortletId(java.lang.String portletId)
setPortletId
in interface PortletConfig
public java.lang.String getPortletId()
getPortletId
in interface PortletConfig
public SecurityReference getSecurityRef()
getSecurityRef
in interface PortletConfig
public void setSecurityRef(SecurityReference securityRef)
setSecurityRef
in interface PortletConfig
securityRef
- New value of property securityRef.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |