Interface BasicModelManager
- All Superinterfaces:
ModelManager
,Serializable
public interface BasicModelManager extends ModelManager
Describes all the relationships between entities in the "Basic" model. This
model pretty much allows a user to be in multiple groups. There is no concept
of Permissions, Roles, Groups in Groups etc..
- Version:
- $Id: BasicModelManager.java 1845858 2018-11-05 21:14:02Z painter $
- Author:
- Eric Pugh
-
Method Details
-
grant
Puts a user in a group. This method is used when adding a user to a group- Parameters:
user
- the Usergroup
- the Group- Throws:
DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the account is not present.
-
revoke
Removes a user from a group- Parameters:
user
- the Usergroup
- the Group- Throws:
DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the user or group is not present.
-
revokeAll
Revokes all groups from an User. This method is used when deleting an account.- Parameters:
user
- the User.- Throws:
DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the account is not present.
-