|
ArcGIS Server Geoportal extension 10
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet<E>
java.util.LinkedHashSet<String>
com.esri.gpt.framework.collection.StringSet
com.esri.gpt.framework.security.principal.RoleSet
public class RoleSet
Maintains a set of role keys.
The intent is to use this set for quick evaluation of authorization constraints.
Each value in the collection is a String. Null values are ignored. Values are trimmed, zero-length Strings are ignored. The set is unique and is not case sensitive.
| Constructor Summary | |
|---|---|
RoleSet()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
assertRole(RoleSet roleSet)
Asserts that the current user has at least one of the roles specified in the supplied role set. |
void |
assertRole(String roleKey)
Asserts that the current user has a required role. |
boolean |
hasRole(RoleSet roleSet)
Determines if the current set has at least one of the roles specified in the supplied role set. |
boolean |
hasRole(String roleKey)
Determines if this set has a specified role. |
| Methods inherited from class com.esri.gpt.framework.collection.StringSet |
|---|
add, addDelimited, clear, contains, containsString, getAllowEmptyValues, getIsCaseSensitive, getTrimValues, remove, remove, retainAll |
| Methods inherited from class java.util.HashSet |
|---|
clone, isEmpty, iterator, size |
| Methods inherited from class java.util.AbstractSet |
|---|
equals, hashCode, removeAll |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, containsAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
|---|
addAll, containsAll, equals, hashCode, isEmpty, iterator, removeAll, size, toArray, toArray |
| Constructor Detail |
|---|
public RoleSet()
| Method Detail |
|---|
public void assertRole(String roleKey)
throws NotAuthorizedException
roleKey - the key associated with the required role
NotAuthorizedException - if the user does not have a required role
public void assertRole(RoleSet roleSet)
throws NotAuthorizedException
roleSet - the set of roles to check
NotAuthorizedException - if the user does not have a required rolepublic boolean hasRole(String roleKey)
roleKey - the key associated with the role to checkpublic boolean hasRole(RoleSet roleSet)
roleSet - the set of roles to check
|
ArcGIS Server Geoportal extension 10
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||