|
ArcGIS Server Geoportal extension 10
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.gpt.framework.jsf.FacesMap<Boolean>
com.esri.gpt.framework.jsf.RoleMap
public class RoleMap
Provides a Map interface for setting the rendered attribute of a Faces component based upon a supplied role key.
Example:
rendered="#{PageContext.roleMap['someRole']}"
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Constructor Summary | |
---|---|
RoleMap(User activeUser)
Constructs based upon a supplied user. |
Method Summary | |
---|---|
Boolean |
get(Object role)
Implements the "get" method for a Map to determine if the active user has a specified role. |
Methods inherited from class com.esri.gpt.framework.jsf.FacesMap |
---|
clear, containsKey, containsValue, entrySet, isEmpty, keySet, put, putAll, remove, size, values |
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 |
---|
equals, hashCode |
Constructor Detail |
---|
public RoleMap(User activeUser)
activeUser
- the user associated with the active requestMethod Detail |
---|
public Boolean get(Object role)
The supplied role String is tokenized with the following 3 delimiters:
semi-colon comma space
If the has any specified role, Boolean.TRUE is returned.
get
in interface Map<String,Boolean>
get
in class FacesMap<Boolean>
role
- the role(s) to check (must be a String)
|
ArcGIS Server Geoportal extension 10
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |