Package org.sakaiproject.cheftool
Class PortletConfig
- java.lang.Object
-
- org.sakaiproject.cheftool.PortletConfig
-
- All Implemented Interfaces:
Map
public class PortletConfig extends Object implements Map
Provides read access to tool parameters, which are (name, value) pairs. Write access is not allowed. This provides an unmodifiable Map that looks first in the tool configuration, then in the tool registration, then in the servlet configuration. The values in the tool configuration may have been configured by the end-user, the values in the tool registration are defaulted in the tool registration file, and the values in the servlet configuration come from web.xml and cannot be modified by the user.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Unsupported operationbooleancontainsKey(Object key)booleancontainsValue(Object value)SetentrySet()Objectget(Object key)String[]get3InitParameter(String name)Special non-jetspeed imitation: get three possible init parameter values: [0] from servlet config [1] from tool registration [2] from tool config nulls if not presentStringgetInitParameter(String name)StringgetInitParameter(String name, String dflt)MapgetInitParameters()StringgetTitle()booleanisEmpty()SetkeySet()Objectput(Object key, Object value)Unsupported operationvoidputAll(Map t)Unsupported operationObjectremove(Object key)Unsupported operationintsize()Collectionvalues()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
getInitParameters
public Map getInitParameters()
-
getTitle
public String getTitle()
-
get3InitParameter
public String[] get3InitParameter(String name)
Special non-jetspeed imitation: get three possible init parameter values: [0] from servlet config [1] from tool registration [2] from tool config nulls if not present
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap
-
values
public Collection values()
-
-