org.apache.turbine.services.security.db
Class DBSecurityService

java.lang.Object
  extended byorg.apache.turbine.services.BaseInitable
      extended byorg.apache.turbine.services.BaseService
          extended byorg.apache.turbine.services.TurbineBaseService
              extended byorg.apache.turbine.services.security.BaseSecurityService
                  extended byorg.apache.turbine.services.security.torque.TorqueSecurityService
                      extended byorg.apache.turbine.services.security.db.DBSecurityService
All Implemented Interfaces:
Initable, SecurityService, Service

Deprecated. Use TorqueSecurityService instead.

public class DBSecurityService
extends TorqueSecurityService

An implementation of SecurityService that uses a database as backend.

Version:
$Id: DBSecurityService.java 571795 2007-09-01 13:09:35Z tv $
Author:
Rafal Krzewski, Henning P. Schmiedehausen, Marco Knüttel

Field Summary
static java.lang.String USER_PEER_CLASS_DEFAULT
          Deprecated. The default implementation of User interface (org.apache.turbine.om.security.DBUser)
static java.lang.String USER_PEER_CLASS_KEY
          Deprecated. The key within services's properties for user implementation classname (user.class) - Leandro
 
Fields inherited from class org.apache.turbine.services.BaseService
configuration, name, serviceBroker
 
Fields inherited from class org.apache.turbine.services.BaseInitable
initableBroker, isInitialized
 
Fields inherited from interface org.apache.turbine.services.security.SecurityService
ACL_CLASS_DEFAULT, ACL_CLASS_KEY, GROUP_CLASS_DEFAULT, GROUP_CLASS_KEY, PERMISSION_CLASS_DEFAULT, PERMISSION_CLASS_KEY, ROLE_CLASS_DEFAULT, ROLE_CLASS_KEY, SECURE_PASSWORDS_ALGORITHM_DEFAULT, SECURE_PASSWORDS_ALGORITHM_KEY, SECURE_PASSWORDS_DEFAULT, SECURE_PASSWORDS_KEY, SERVICE_NAME, USER_CLASS_DEFAULT, USER_CLASS_KEY, USER_MANAGER_DEFAULT, USER_MANAGER_KEY
 
Constructor Summary
DBSecurityService()
          Deprecated.  
 
Method Summary
 java.lang.Class getUserPeerClass()
          Deprecated. No replacement. Use TorqueSecurityService instead.
 UserPeer getUserPeerInstance()
          Deprecated. No replacement. Use TorqueSecurityService instead.
 
Methods inherited from class org.apache.turbine.services.security.torque.TorqueSecurityService
addGroup, addPermission, addRole, checkExists, checkExists, checkExists, getACL, getGroups, getPermissions, getPermissions, getRoles, grant, grant, init, removeGroup, removePermission, removeRole, renameGroup, renamePermission, renameRole, revoke, revoke, revokeAll, revokeAll, saveGroup, savePermission, saveRole
 
Methods inherited from class org.apache.turbine.services.security.BaseSecurityService
accountExists, accountExists, addUser, changePassword, checkPassword, encryptPassword, encryptPassword, forcePassword, getAclClass, getAclInstance, getAllGroups, getAllPermissions, getAllRoles, getAnonymousUser, getAuthenticatedUser, getGlobalGroup, getGroup, getGroupById, getGroupByName, getGroupClass, getGroupInstance, getGroupInstance, getNewGroup, getNewPermission, getNewRole, getPermission, getPermissionById, getPermissionByName, getPermissionClass, getPermissionInstance, getPermissionInstance, getRole, getRoleById, getRoleByName, getRoleClass, getRoleInstance, getRoleInstance, getUser, getUserClass, getUserInstance, getUserInstance, getUserList, getUserManager, getUsers, init, isAnonymousUser, lockExclusive, lockShared, removeUser, saveOnSessionUnbind, saveUser, setUserManager, unlockExclusive, unlockShared
 
Methods inherited from class org.apache.turbine.services.TurbineBaseService
init, init, shutdown
 
Methods inherited from class org.apache.turbine.services.BaseService
getConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBroker
 
Methods inherited from class org.apache.turbine.services.BaseInitable
getInit, getInitableBroker, setInit, setInitableBroker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.turbine.services.Service
getConfiguration, getName, getProperties, setName, setServiceBroker
 
Methods inherited from interface org.apache.turbine.services.Initable
getInit, init, setInitableBroker, shutdown
 

Field Detail

USER_PEER_CLASS_KEY

public static final java.lang.String USER_PEER_CLASS_KEY
Deprecated. 
The key within services's properties for user implementation classname (user.class) - Leandro

See Also:
Constant Field Values

USER_PEER_CLASS_DEFAULT

public static final java.lang.String USER_PEER_CLASS_DEFAULT
Deprecated. 
The default implementation of User interface (org.apache.turbine.om.security.DBUser)

See Also:
Constant Field Values
Constructor Detail

DBSecurityService

public DBSecurityService()
Deprecated. 
Method Detail

getUserPeerClass

public java.lang.Class getUserPeerClass()
                                 throws UnknownEntityException
Deprecated. No replacement. Use TorqueSecurityService instead.

Returns the Class object for the implementation of UserPeer interface used by the system (defined in TR.properties)

Returns:
the implementation of UserPeer interface used by the system.
Throws:
UnknownEntityException - if the system's implementation of UserPeer interface could not be determined.

getUserPeerInstance

public UserPeer getUserPeerInstance()
                             throws UnknownEntityException
Deprecated. No replacement. Use TorqueSecurityService instead.

Construct a UserPeer object. This method calls getUserPeerClass, and then creates a new object using the default constructor.

Returns:
an object implementing UserPeer interface.
Throws:
UnknownEntityException - if the object could not be instantiated.


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.