org.openpermis.policy
Interface Action

All Superinterfaces:
Nameable, Part, Serializable
All Known Subinterfaces:
ActionBean
All Known Implementing Classes:
BasicAction

public interface Action
extends Part, Nameable

An action is what a subject wants to execute on a resource.

The action features a unique name and a list of parameter types.

Since:
0.1.0

Method Summary
 Map<String,?> mapArguments(List<?> arguments)
          Returns a mapping of argument name to argument.
 boolean matches(String actionName, List<?> arguments)
          Returns whether this action matches an action name and a list of arguments.
 
Methods inherited from interface org.openpermis.policy.Part
equals, hashCode, isValid, toString
 
Methods inherited from interface org.openpermis.policy.Nameable
getName
 

Method Detail

matches

boolean matches(String actionName,
                List<?> arguments)
Returns whether this action matches an action name and a list of arguments.

This action will match if its name matches the specified action name and if all arguments are assignable to the action's argument types.

Parameters:
actionName - the name to match.
arguments - an optional list of arguments to match.
Returns:
true if this action matches the specified name and arguments.
Since:
0.1.0

mapArguments

Map<String,?> mapArguments(List<?> arguments)
Returns a mapping of argument name to argument.

Parameters:
arguments - a list of arguments.
Returns:
a mapping of argument name to argument.
Since:
0.1.0


PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:14:49
Copyright (c) 2002-2007 Ergon Informatik AG