com.softwareag.centrasite.appl.framework.validation
Interface Constraint.Context

All Known Implementing Classes:
DefaultContext
Enclosing interface:
Constraint

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

set

void set(java.lang.String pKey,
         java.lang.Object pValue)

Adds an object to the context.

Parameters:
pKey - The objects key.
pValue - The object itself.

get

java.lang.Object get(java.lang.String pKey)

Asks for an object in the context.

Parameters:
pKey - The objects key.
Returns:
The requested object, if available, or null.