This interface dictates the set of methods for any class that impelments the run time behaviour of PolicyManager
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT |
Method Summary | |
---|---|
AccessClause |
getAccessClause(
CommandContext context, java.lang.String action,
java.lang.String resouceClass) This method should be implemented to generate the query based on the meta data information available for the resource class in the argument and the policies based on the given action |
boolean |
isAllowed(
CommandContext context, java.lang.String action,
Protectable resource)
This method should be implemented to determine if a user (part of the
context) can execute "action" on a
"resource". |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Method Detail |
---|
public AccessClause getAccessClause(CommandContext context, java.lang.String action, java.lang.String resouceClass) throws java.lang.Exception
action
- namejava.lang.Exception
AccessClause
,
CommandContext
public boolean isAllowed(CommandContext context, java.lang.String action, Protectable resource) throws java.lang.Exception
action
- namejava.lang.Exception
Protectable
,
CommandContext