public abstract class AbstractPermissionsController extends AbstractAdminController
Modifier and Type | Class and Description |
---|---|
static class |
AbstractPermissionsController.AclReference |
lastException
controllerFactory, server, userContext
Modifier | Constructor and Description |
---|---|
protected |
AbstractPermissionsController(UserContext userContext,
AbstractPermissionsController.AclReference aclReference) |
Modifier and Type | Method and Description |
---|---|
void |
addPermission(java.security.Principal principal,
Permission permission) |
void |
addPermissions(java.security.Principal principal,
Permission[] permissions) |
boolean |
checkPermission(java.security.Principal principal,
Permission permission) |
AbstractPermissionsController.AclReference |
getAclReference() |
java.util.Collection<Group> |
getAllowedGroups(Permission permission) |
java.util.Collection<User> |
getAllowedUsers(Permission permission) |
void |
removePermission(java.security.Principal principal,
Permission permission) |
void |
removePermissions(java.security.Principal principal,
Permission[] permissions) |
getCurrentUser, getInstance, getLastException, isCurrentUserSuperAdmin, log, log, moveObjects, moveObjects, reserveId, unreserveId
getNextSequenceValue, getSystemDatabase, initializeSequence, isSequenceExists
protected AbstractPermissionsController(UserContext userContext, AbstractPermissionsController.AclReference aclReference)
public boolean checkPermission(java.security.Principal principal, Permission permission)
public void addPermission(java.security.Principal principal, Permission permission)
public void addPermissions(java.security.Principal principal, Permission[] permissions)
public void removePermission(java.security.Principal principal, Permission permission)
public void removePermissions(java.security.Principal principal, Permission[] permissions)
public java.util.Collection<User> getAllowedUsers(Permission permission)
public java.util.Collection<Group> getAllowedGroups(Permission permission)
public AbstractPermissionsController.AclReference getAclReference()