|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AccessControlGroup
Access control groups are used to set the permissions in accordance to which users can view/edit specific objects like catalogs, hierarchies, selections, workflows and collaboration areas.
Field Summary | |
---|---|
static java.lang.String |
copyright
|
Method Summary | |
---|---|
java.lang.String |
getDescription()
Retrieves the description applied to this access control group |
java.lang.String |
getName()
Retrieves the name applied to this access control group |
java.util.Set<Permission> |
getPermissionList(Role role)
Identifies the permissions set on for this Access Control Group |
java.util.Collection<Role> |
getRoles()
Retrieve the roles associated with this AccessControlGroup |
void |
grantPermissions(Role role,
java.util.Set<Permission> permissions)
Grants the given set of permissions to this role. |
void |
revokePermissions(Role role,
java.util.Set<Permission> permissions)
Revokes the given set of permissions to this role. |
void |
save()
Saves this Access Control Group |
Field Detail |
---|
static final java.lang.String copyright
Method Detail |
---|
java.lang.String getName()
PIMInternalException
- If an internal error occursjava.lang.String getDescription()
PIMInternalException
- If an internal error occursjava.util.Set<Permission> getPermissionList(Role role)
role
- the role for which the Access Control Group permissions are to
be retrieved.
PIMInternalException
- If an internal error occurs
java.lang.IllegalArgumentException
- If any of the input parameters is null.
java.lang.IllegalStateException
- If the role has not been persisted.java.util.Collection<Role> getRoles()
PIMInternalException
- If an internal error occursvoid save()
PIMInternalException
- If an internal error occurs
PIMAuthorizationException
- If the current user does not have the equivalent of
SystemWideAccessPrivilege.SECURITY_MODIFY_ROLES_ACCESS
void grantPermissions(Role role, java.util.Set<Permission> permissions)
role
- the role to which the permissions are to be appliedpermissions
- the permissions to be set
PIMInternalException
- If an internal error occurs
PIMAuthorizationException
- If the current user does not have the equivalent of
SystemWideAccessPrivilege.SECURITY_MODIFY_ROLES_ACCESS
java.lang.IllegalArgumentException
- If any of the input parameters is null.
java.lang.IllegalStateException
- If any of the API objects passed as input parameter has not
been saved.void revokePermissions(Role role, java.util.Set<Permission> permissions)
role
- the role to which the permissions are to be appliedpermissions
- the permissions to be set
PIMInternalException
- If an internal error occurs
PIMAuthorizationException
- If the current user does not have the equivalent of
SystemWideAccessPrivilege.SECURITY_MODIFY_ROLES_ACCESS
java.lang.IllegalArgumentException
- If any of the input parameters is null.
java.lang.IllegalStateException
- If any of the API objects passed as input parameter has not
been saved.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |