issrg.pba
Interface Action

All Known Implementing Classes:
PermisAction

public interface Action

This is an interface to the Action object, used in decision-making. It can tell the name of the action, and is able to return the part of the Contextual ADI, related to the action itself (for example, the parameters to the Action, or arguments to the methods to be invoked).

According to ISO 10181-3 authorisation framework, Contextual ADI is the Access Decision Information that depends on the requested action and other circumstances. This interface allows the retrieval of the access decision information that directly depends on the action to be performed. Note that the action name itself could be viewed as a part of the ADI.

For example, if an Action is a method, the Contextual ADI could be a collection of arguments to the method call. However, neither the action is restricted to be a method, nor the format of the ADI is specified. It is up to the implementors of the Action and AccessPolicy objects. As long as the format is agreed between them, the system will work properly.

Version:
0.1
Author:
A Otenko
See Also:
AccessPolicy, PermisAction

Method Summary
 java.lang.String getActionName()
          This method returns a String name of the Action.
 java.lang.Object getContextualADI()
          This method returns a collection of Contextual ADI parameters.
 

Method Detail

getActionName

java.lang.String getActionName()
This method returns a String name of the Action.

Returns:
the string name of the action

getContextualADI

java.lang.Object getContextualADI()
This method returns a collection of Contextual ADI parameters. These parameters are used at decision time.

Returns:
the collection of Contextual ADI parameters