issrg.pba.rbac
Class PermisAction

java.lang.Object
  extended by issrg.pba.rbac.PermisAction
All Implemented Interfaces:
Action

public class PermisAction
extends java.lang.Object
implements Action

This class represents the action that can be carried out on a target in the Permis project. The action has, optionally, a list of arguments.

Version:
0.2
Author:
E Ball, A Otenko, D Chadwick

Constructor Summary
protected PermisAction()
           
  PermisAction(java.lang.String Name)
          This is the constructor for building an action with no arguments.
  PermisAction(java.lang.String Name, Argument[] Arguments)
          This is the constructor for building an action with arguments.
 
Method Summary
 java.lang.String getActionName()
          This method returns the name of the action.
 Argument[] getArguments()
          This method returns the array of arguments that this Action has.
 java.lang.Object getContextualADI()
          This method returns the ADI, pertaining to the Action: the array of parameters to this action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermisAction

protected PermisAction()

PermisAction

public PermisAction(java.lang.String Name)
This is the constructor for building an action with no arguments. It is equal to PermisAction(Name, null).

Parameters:
Name - is the name of the action

PermisAction

public PermisAction(java.lang.String Name,
                    Argument[] Arguments)
This is the constructor for building an action with arguments.

Parameters:
Name - is the name of the action
Arguments - is the list of argument values
Method Detail

getActionName

public java.lang.String getActionName()
This method returns the name of the action.

Specified by:
getActionName in interface Action
Returns:
String name of the action

getArguments

public Argument[] getArguments()
This method returns the array of arguments that this Action has.

Returns:
Argument[] containing the values of actual parameters to the action; they are in the same order as passed to the constructor; can be null, if this is an action with no arguments

getContextualADI

public java.lang.Object getContextualADI()
This method returns the ADI, pertaining to the Action: the array of parameters to this action. Does the same as getArguments method, but can be used by objects, operating on abstract actions.

Specified by:
getContextualADI in interface Action
Returns:
the Object representing an array of parameters to the action; can be null