Interface BasicModelManager
-
- All Superinterfaces:
ModelManager
,Serializable
- All Known Implementing Classes:
MemoryModelManagerImpl
,TorqueBasicModelManagerImpl
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$
- Author:
- Eric Pugh
-
-
Field Summary
-
Fields inherited from interface org.apache.fulcrum.security.ModelManager
ROLE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
grant(User user, Group group)
Puts a user in a group.void
revoke(User user, Group group)
Removes a user from a groupvoid
revokeAll(User user)
Revokes all groups from an User.
-
-
-
Method Detail
-
grant
void grant(User user, Group group) throws DataBackendException, UnknownEntityException
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
void revoke(User user, Group group) throws DataBackendException, UnknownEntityException
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
void revokeAll(User user) throws DataBackendException, UnknownEntityException
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.
-
-