| org.apache.lenya.cms.ac.usecase.UsecaseAuthorizer
All known Subclasses: org.apache.lenya.cms.ac.usecase.impl.UsecaseAuthorizerImpl,
UsecaseAuthorizer | public interface UsecaseAuthorizer extends Authorizer(Code) | | Authorizer for usecases.
version: $Id: UsecaseAuthorizer.java 392449 2006-04-07 23:20:38Z michi $ |
Method Summary | |
boolean | authorizeUsecase(String usecase, Role[] roles, Publication publication) Authorizes a usecase by considering all roles of the current identity
Parameters: usecase - The usecase ID. Parameters: roles - The roles of the current identity. Parameters: publication - The publication. | boolean | isPermitted(String usecase, Publication publication, Role role) Checks whether the specified role is permitted to invoke a given usecase
Parameters: usecase - The usecase. Parameters: publication - The publication. Parameters: role - The role. | void | setPermission(String usecase, Publication publication, Role role, boolean granted) |
authorizeUsecase | boolean authorizeUsecase(String usecase, Role[] roles, Publication publication) throws AccessControlException(Code) | | Authorizes a usecase by considering all roles of the current identity
Parameters: usecase - The usecase ID. Parameters: roles - The roles of the current identity. Parameters: publication - The publication. A boolean value. throws: AccessControlException - when something went wrong. |
isPermitted | boolean isPermitted(String usecase, Publication publication, Role role) throws AccessControlException(Code) | | Checks whether the specified role is permitted to invoke a given usecase
Parameters: usecase - The usecase. Parameters: publication - The publication. Parameters: role - The role. A boolean value. throws: AccessControlException - if an error occurs. |
setPermission | void setPermission(String usecase, Publication publication, Role role, boolean granted) throws AccessControlException(Code) | | Grants or denies a usecase to a role
Parameters: usecase - The usecase. Parameters: publication - The publication. Parameters: role - The role. Parameters: granted - If the usecase shall be permitted. throws: AccessControlException - if an error occurs. |
|
|