Class TorqueBasicModelManagerImpl
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.fulcrum.security.spi.AbstractManager
-
- org.apache.fulcrum.security.torque.basic.TorqueBasicModelManagerImpl
-
- All Implemented Interfaces:
Serializable,org.apache.avalon.framework.activity.Disposable,org.apache.avalon.framework.logger.LogEnabled,org.apache.avalon.framework.service.Serviceable,org.apache.avalon.framework.thread.ThreadSafe,BasicModelManager,ModelManager
public class TorqueBasicModelManagerImpl extends AbstractManager implements BasicModelManager
This implementation persists to a database via Torque.- Version:
- $Id:$
- Author:
- Thomas Vandahl
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.fulcrum.security.spi.AbstractManager
manager
-
Fields inherited from interface org.apache.fulcrum.security.ModelManager
ROLE
-
-
Constructor Summary
Constructors Constructor Description TorqueBasicModelManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgrant(User user, Group group)Puts a user in a group.voidrevoke(User user, Group group)Removes a user in a group.voidrevokeAll(User user)Revokes all groups from a user This method is used when deleting an account.-
Methods inherited from class org.apache.fulcrum.security.spi.AbstractManager
dispose, getGroupManager, getPermissionManager, getRoleManager, getServiceManager, getUserManager, release, resolve, service
-
-
-
-
Method Detail
-
grant
public 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- Specified by:
grantin interfaceBasicModelManager- Parameters:
user- the User.- Throws:
DataBackendException- if there was an error accessing the data backend.UnknownEntityException- if the account is not present.
-
revoke
public void revoke(User user, Group group) throws DataBackendException, UnknownEntityException
Removes a user in a group. This method is used when removing a user to a group- Specified by:
revokein interfaceBasicModelManager- Parameters:
user- the User.- Throws:
DataBackendException- if there was an error accessing the data backend.UnknownEntityException- if the user or group is not present.
-
revokeAll
public void revokeAll(User user) throws DataBackendException, UnknownEntityException
Revokes all groups from a user This method is used when deleting an account.- Specified by:
revokeAllin interfaceBasicModelManager- Parameters:
user- the User.- Throws:
DataBackendException- if there was an error accessing the data backend.UnknownEntityException- if the account is not present.
-
-