public class TorqueBasicModelManagerImpl extends AbstractManager implements BasicModelManager
manager
ROLE
Constructor and Description |
---|
TorqueBasicModelManagerImpl() |
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, service
public void grant(User user, Group group) throws DataBackendException, UnknownEntityException
grant
in interface BasicModelManager
user
- the User.DataBackendException
- 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 BasicModelManager
user
- the User.DataBackendException
- 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 BasicModelManager
user
- the User.DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the account is not present.Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.