|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface Constraint.Context
The constraints
context is the link between its environment
and the constraints implementation. The environment prepares the context by
adding objects to it. The implementation queries the context for the objects,
which the environment has supplied.
For example, the environment might add user and/or role information to the context. An authorization constraint would query for this information and approve or disapprove the requested action.
Method Summary | |
---|---|
java.lang.Object |
get(java.lang.String pKey)
Asks for an object in the context. |
void |
set(java.lang.String pKey,
java.lang.Object pValue)
Adds an object to the context. |
Method Detail |
---|
void set(java.lang.String pKey, java.lang.Object pValue)
Adds an object to the context.
pKey
- The objects key.pValue
- The object itself.java.lang.Object get(java.lang.String pKey)
Asks for an object in the context.
pKey
- The objects key.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |