public class MemoryModelManagerImpl extends AbstractManager implements BasicModelManager
managerROLE| Constructor and Description |
|---|
MemoryModelManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
grant(User user,
Group group)
Puts a user in a group.
|
void |
revoke(User user,
Group group)
Removes a user in a group.
|
void |
revokeAll(User user)
Revokes all groups from a user
This method is used when deleting an account.
|
dispose, getGroupManager, getPermissionManager, getRoleManager, getServiceManager, getUserManager, release, resolve, servicepublic void grant(User user, Group group) throws DataBackendException, UnknownEntityException
grant in interface BasicModelManageruser - the Usergroup - the GroupDataBackendException - if there was an error accessing the data backend.UnknownEntityException - if the account is not present.public void revoke(User user, Group group) throws DataBackendException, UnknownEntityException
revoke in interface BasicModelManageruser - the User.group - the GroupDataBackendException - if there was an error accessing the data backend.UnknownEntityException - if the user or group is not present.public void revokeAll(User user) throws DataBackendException, UnknownEntityException
revokeAll in interface BasicModelManageruser - the User.DataBackendException - if there was an error accessing the data backend.UnknownEntityException - if the account is not present.Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.