|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UsecaseAuthorizer
Authorizer for usecases.
Field Summary |
---|
Fields inherited from interface org.apache.lenya.ac.Authorizer |
---|
ROLE |
Method Summary | |
---|---|
boolean |
authorizeUsecase(java.lang.String usecase,
org.apache.lenya.ac.Role[] roles,
org.apache.lenya.cms.publication.Publication publication)
Authorizes a usecase by considering all roles of the current identity |
boolean |
isPermitted(java.lang.String usecase,
org.apache.lenya.cms.publication.Publication publication,
org.apache.lenya.ac.Role role)
Checks whether the specified role is permitted to invoke a given usecase |
void |
setPermission(java.lang.String usecase,
org.apache.lenya.cms.publication.Publication publication,
org.apache.lenya.ac.Role role,
boolean granted)
Grants or denies a usecase to a role |
Methods inherited from interface org.apache.lenya.ac.Authorizer |
---|
authorize |
Method Detail |
---|
boolean authorizeUsecase(java.lang.String usecase, org.apache.lenya.ac.Role[] roles, org.apache.lenya.cms.publication.Publication publication) throws org.apache.lenya.ac.AccessControlException
usecase
- The usecase ID.roles
- The roles of the current identity.publication
- The publication.
org.apache.lenya.ac.AccessControlException
- when something went wrong.void setPermission(java.lang.String usecase, org.apache.lenya.cms.publication.Publication publication, org.apache.lenya.ac.Role role, boolean granted) throws org.apache.lenya.ac.AccessControlException
usecase
- The usecase.publication
- The publication.role
- The role.granted
- If the usecase shall be permitted.
org.apache.lenya.ac.AccessControlException
- if an error occurs.boolean isPermitted(java.lang.String usecase, org.apache.lenya.cms.publication.Publication publication, org.apache.lenya.ac.Role role) throws org.apache.lenya.ac.AccessControlException
usecase
- The usecase.publication
- The publication.role
- The role.
org.apache.lenya.ac.AccessControlException
- if an error occurs.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |