com.ibm.commerce.accesscontrol.policymanager
Interface PolicyManager
- public interface PolicyManager
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". |
COPYRIGHT
public static final java.lang.String COPYRIGHT
-
- See Also:
- Constant Field Values
getAccessClause
public AccessClause getAccessClause(CommandContext context,
java.lang.String action,
java.lang.String resouceClass)
throws java.lang.Exception
- 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
-
- Parameters:
- action - name
- Returns:
- AccessClause object carrying the where clause and a flag indicating if the query is complete in itself
- Throws:
- java.lang.Exception
- See Also:
- AccessClause, CommandContext
isAllowed
public boolean isAllowed(CommandContext context,
java.lang.String action,
Protectable resource)
throws java.lang.Exception
- This method should be implemented to determine if a user (part of the context) can execute "action" on a "resource".
-
- Parameters:
- action - name
- Returns:
- true if the action could be performed on the resource by the user, false otherwise
- Throws:
- java.lang.Exception
- See Also:
- Protectable, CommandContext
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.