|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.accesscontrol.AccessControlContext
public class AccessControlContext
This class permits to define the context of access to a resource. User: Yohann Chastagnier Date: 30/12/13
Method Summary | ||
---|---|---|
|
get(String key,
Class<T> classType)
Gets from context a value from a key that has been stored into the context instance. |
|
Set<AccessControlOperation> |
getOperations()
Gets the operations performed into the context. |
|
static AccessControlContext |
init()
Gets an initialized instance of access control context. |
|
AccessControlContext |
onOperationsOf(AccessControlOperation... operations)
Defines the operations performed into the context. |
|
|
put(String key,
T value)
Puts into context a value linked to a key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static AccessControlContext init()
public AccessControlContext onOperationsOf(AccessControlOperation... operations)
operations
-
public Set<AccessControlOperation> getOperations()
public <T> AccessControlContext put(String key, T value)
T
- key
- the key.value
- the value.
public <T> T get(String key, Class<T> classType)
T
- key
- the key associated to the searched value.classType
- the type of expected value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |