public interface BasicModelManager extends ModelManager
ROLE
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 from a group
|
void |
revokeAll(User user)
Revokes all groups from an User.
|
void grant(User user, Group group) throws DataBackendException, UnknownEntityException
user
- the Usergroup
- the GroupDataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the account is not present.void revoke(User user, Group group) throws DataBackendException, UnknownEntityException
user
- the Usergroup
- the GroupDataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the user or group is not present.void revokeAll(User user) throws DataBackendException, UnknownEntityException
user
- 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.