Interface BasicModelManager
- All Superinterfaces:
ModelManager
,Serializable
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$
- Author:
- Eric Pugh
-
Field Summary
Fields inherited from interface org.apache.fulcrum.security.ModelManager
ROLE
-
Method Summary
-
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.
-