issrg.pba.rbac.policies
Class UserAction

java.lang.Object
  extended by issrg.pba.rbac.policies.UserAction
Direct Known Subclasses:
UserActionTargetDomain, UserActionTargetName

public abstract class UserAction
extends java.lang.Object

This is the class representing an action-target pair in PERMIS, so it can be stored by MMEP rules for MSoD as a unit.

Version:
0.1
Author:
W. Xu

Constructor Summary
UserAction()
           
 
Method Summary
abstract  java.lang.String getAction()
          This method returns the action as a String.
abstract  java.lang.String getTarget()
          This method returns the target as a String.
abstract  boolean matches(java.lang.String action, java.lang.String target)
          Decides whether the requested action and target combination matches this UserAction.
 java.lang.String toString()
          Returns a string containing the action and the target separated by a space.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserAction

public UserAction()
Method Detail

getAction

public abstract java.lang.String getAction()
This method returns the action as a String.


getTarget

public abstract java.lang.String getTarget()
This method returns the target as a String.


matches

public abstract boolean matches(java.lang.String action,
                                java.lang.String target)
Decides whether the requested action and target combination matches this UserAction. Behaviour will be different according to whether we are dealing with TargetName or TargetDomain targets.

Parameters:
action - the name of the action
target - a string describing the intended target
Returns:

toString

public java.lang.String toString()
Returns a string containing the action and the target separated by a space.

Overrides:
toString in class java.lang.Object
Returns: