Klasse TorqueAbstractUserManager
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.fulcrum.security.spi.AbstractManager
org.apache.fulcrum.security.spi.AbstractEntityManager
org.apache.fulcrum.security.spi.AbstractUserManager
org.apache.fulcrum.security.torque.TorqueAbstractUserManager
- Alle implementierten Schnittstellen:
- Serializable,- org.apache.avalon.framework.activity.Disposable,- org.apache.avalon.framework.configuration.Configurable,- org.apache.avalon.framework.logger.LogEnabled,- org.apache.avalon.framework.service.Serviceable,- org.apache.avalon.framework.thread.ThreadSafe,- UserManager
- Bekannte direkte Unterklassen:
- PeerUserManager,- TorqueBasicUserManagerImpl,- TorqueDynamicUserManagerImpl
This implementation persists to a database via Torque.
- Version:
- $Id:$
- Autor:
- Thomas Vandahl
- Siehe auch:
- 
FeldübersichtVon Klasse geerbte Felder org.apache.fulcrum.security.spi.AbstractManagermanagerVon Schnittstelle geerbte Felder org.apache.fulcrum.security.UserManagerROLE
- 
KonstruktorübersichtKonstruktoren
- 
MethodenübersichtModifizierer und TypMethodeBeschreibungbooleancheckExists(String userName) Check whether a specified user's account exists.voidconfigure(org.apache.avalon.framework.configuration.Configuration conf) Avalon Service lifecycle methodGet all specialized Usersprotected abstract <T extends User>
 TdoSelectById(Integer id, Connection con) Get a specialized User by idprotected abstract <T extends User>
 TdoSelectByName(String name, Connection con) Get a specialized User by namedoSelectUsers(Connection con, org.apache.torque.criteria.Criteria criteria) Get filtered specialized UsersRetrieves all users defined in the system.<T extends User>
 TRetrieve a user from persistent storage using username as the key.<T extends User>
 TgetUserById(Object id) Retrieve a User object with specified id.protected <T extends User>
 TpersistNewUser(T user) Creates new user account with specified attributes.voidremoveUser(User user) Removes an user account from the system.retrieveUserList(Object criteriaO) voidStores User attributes.Von Klasse geerbte Methoden org.apache.fulcrum.security.spi.AbstractUserManageraddUser, authenticate, changePassword, checkExists, forcePassword, getACL, getACLFactory, getUser, getUserInstance, getUserInstanceVon Klasse geerbte Methoden org.apache.fulcrum.security.spi.AbstractEntityManagergetClassName, setClassNameVon Klasse geerbte Methoden org.apache.fulcrum.security.spi.AbstractManagerdispose, getGroupManager, getPermissionManager, getRoleManager, getServiceManager, getUserManager, release, resolve, serviceVon Klasse geerbte Methoden org.apache.avalon.framework.logger.AbstractLogEnabledenableLogging, getLogger, setupLogger, setupLogger, setupLogger
- 
Konstruktordetails- 
TorqueAbstractUserManagerpublic TorqueAbstractUserManager()
 
- 
- 
Methodendetails- 
configurepublic void configure(org.apache.avalon.framework.configuration.Configuration conf) throws org.apache.avalon.framework.configuration.ConfigurationException Avalon Service lifecycle method- Angegeben von:
- configurein Schnittstelle- org.apache.avalon.framework.configuration.Configurable
- Setzt außer Kraft:
- configurein Klasse- AbstractEntityManager
- Löst aus:
- org.apache.avalon.framework.configuration.ConfigurationException
 
- 
doSelectAllUsersprotected abstract <T extends User> List<T> doSelectAllUsers(Connection con) throws org.apache.torque.TorqueException Get all specialized Users- Parameter:
- con- a database connection
- Gibt zurück:
- a List of User instances
- Löst aus:
- org.apache.torque.TorqueException- if any database error occurs
 
- 
doSelectUsersprotected abstract <T extends User> List<T> doSelectUsers(Connection con, org.apache.torque.criteria.Criteria criteria) throws org.apache.torque.TorqueException Get filtered specialized Users- Parameter:
- con- a database connection
- criteria- the criteria filter
- Gibt zurück:
- a List of User instances
- Löst aus:
- org.apache.torque.TorqueException- if any database error occurs
 
- 
doSelectByNameprotected abstract <T extends User> T doSelectByName(String name, Connection con) throws org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException, org.apache.torque.TorqueException Get a specialized User by name- Parameter:
- name- the name of the group
- con- a database connection
- Gibt zurück:
- a User instance
- Löst aus:
- org.apache.torque.NoRowsException- if no such group exists
- org.apache.torque.TooManyRowsException- if multiple groups with the given name exist
- org.apache.torque.TorqueException- if any database error occurs if any other database error occurs
 
- 
doSelectByIdprotected abstract <T extends User> T doSelectById(Integer id, Connection con) throws org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException, org.apache.torque.TorqueException Get a specialized User by id- Parameter:
- id- the id of the group
- con- a database connection
- Gibt zurück:
- a User instance
- Löst aus:
- org.apache.torque.NoRowsException- if no such group exists
- org.apache.torque.TooManyRowsException- if multiple groups with the given id exist
- org.apache.torque.TorqueException- if any database error occurs if any other database error occurs
 
- 
removeUserRemoves an user account from the system.- Parameter:
- user- the object describing the account to be removed.
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
- UnknownEntityException- if the user account is not present.
 
- 
persistNewUserCreates new user account with specified attributes.- Angegeben von:
- persistNewUserin Klasse- AbstractUserManager
- Parameter:
- user- the object describing account to be created.
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
 
- 
saveUserStores User attributes. The User is required to exist in the system.- Parameter:
- user- The User to be stored.
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
- UnknownEntityException- if the role does not exist.
 
- 
checkExistsCheck whether a specified user's account exists. The login name is used for looking up the account.- Parameter:
- userName- The name of the user to be checked.
- Gibt zurück:
- true if the specified account exists
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
 
- 
getUserpublic <T extends User> T getUser(String userName) throws UnknownEntityException, DataBackendException Retrieve a user from persistent storage using username as the key. Additionally retrieves all attached objects fromTorqueAbstractSecurityEntity.retrieveAttachedObjects(Connection, Boolean)- Angegeben von:
- getUserin Schnittstelle- UserManager
- Setzt außer Kraft:
- getUserin Klasse- AbstractUserManager
- Parameter:
- userName- the name of the user.
- Gibt zurück:
- an User object.
- Löst aus:
- UnknownEntityException- if the user's account does not exist in the database.
- DataBackendException- if there is a problem accessing the storage.
 
- 
getAllUsersRetrieves all users defined in the system.- Gibt zurück:
- the names of all users defined in the system.
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
 
- 
retrieveUserList- Löst aus:
- DataBackendException
 
- 
getUserByIdpublic <T extends User> T getUserById(Object id) throws DataBackendException, UnknownEntityException Retrieve a User object with specified id.- Angegeben von:
- getUserByIdin Schnittstelle- UserManager
- Setzt außer Kraft:
- getUserByIdin Klasse- AbstractUserManager
- Parameter:
- id- the id of the User.
- Gibt zurück:
- an object representing the User with specified id.
- Löst aus:
- DataBackendException- if there was an error accessing the data backend.
- UnknownEntityException- if the user does not exist.
 
 
-