Java Doc for BaseSecurityService.java in  » Web-Framework » TURBINE » org » apache » turbine » services » security » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Framework » TURBINE » org.apache.turbine.services.security 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.turbine.services.TurbineBaseService
   org.apache.turbine.services.security.BaseSecurityService

All known Subclasses:   org.apache.turbine.services.security.torque.TorqueSecurityService,  org.apache.turbine.services.security.ldap.LDAPSecurityService,
BaseSecurityService
abstract public class BaseSecurityService extends TurbineBaseService implements SecurityService(Code)
This is a common subset of SecurityService implementation. Provided functionality includes:
  • methods for retrieving User objects, that delegates functionality to the pluggable implementations of the User interface.
  • synchronization mechanism for methods reading/modifying the security information, that guarantees that multiple threads may read the information concurrently, but threads that modify the information acquires exclusive access.
  • implementation of convenience methods for retrieving security entities that maintain in-memory caching of objects for fast access.

author:
   Rafal Krzewski
author:
   Henning P. Schmiedehausen
author:
   Marco Knüttel
author:
   Quinton McCombs
version:
   $Id: BaseSecurityService.java 534527 2007-05-02 16:10:59Z tv $




Method Summary
public  booleanaccountExists(User user)
     Check whether a specified user's account exists. The login name is used for looking up the account.
Parameters:
  user - The user to be checked.
public  booleanaccountExists(String userName)
     Check whether a specified user's account exists. The login name is used for looking up the account.
Parameters:
  userName - The name of the user to be checked.
public  voidaddUser(User user, String password)
     Creates new user account with specified attributes.
public  voidchangePassword(User user, String oldPassword, String newPassword)
     Change the password for an User.
public  booleancheckPassword(String checkpw, String encpw)
    
public  StringencryptPassword(String password)
     This method provides client-side encryption of passwords. If secure.passwords are enabled in TurbineResources, the password will be encrypted, if not, it will be returned unchanged. The secure.passwords.algorithm property can be used to chose which digest algorithm should be used for performing the encryption.
public  StringencryptPassword(String password, String salt)
     This method provides client-side encryption of passwords. If secure.passwords are enabled in TurbineResources, the password will be encrypted, if not, it will be returned unchanged. The secure.passwords.algorithm property can be used to chose which digest algorithm should be used for performing the encryption.
public  voidforcePassword(User user, String password)
     Forcibly sets new password for an User. This is supposed by the administrator to change the forgotten or compromised passwords.
public  ClassgetAclClass()
     Return a Class object representing the system's chosen implementation of of ACL interface.
public  AccessControlListgetAclInstance(Map roles, Map permissions)
     Construct a new ACL object.
public  GroupSetgetAllGroups()
     Retrieves all groups defined in the system.
public  PermissionSetgetAllPermissions()
     Retrieves all permissions defined in the system.
public  RoleSetgetAllRoles()
     Retrieves all roles defined in the system.
public  UsergetAnonymousUser()
     Constructs an User object to represent an anonymous user of the application.
public  UsergetAuthenticatedUser(String username, String password)
     Authenticates an user, and constructs an User object to represent him/her.
Parameters:
  username - The user name.
Parameters:
  password - The user password.
public  GroupgetGlobalGroup()
     Provides a reference to the Group object that represents the global group.
public  GroupgetGroup(String name)
     Retrieve a Group object with specified name.
Parameters:
  name - the name of the Group.
public  GroupgetGroupById(int id)
     Retrieve a Group object with specified Id.
Parameters:
  id - the id of the Group.
public  GroupgetGroupByName(String name)
     Retrieve a Group object with specified name.
Parameters:
  name - the name of the Group.
public  ClassgetGroupClass()
     Return a Class object representing the system's chosen implementation of of Group interface.
public  GroupgetGroupInstance()
     Construct a blank Group object.
public  GroupgetGroupInstance(String groupName)
     Construct a blank Group object.
public  GroupgetNewGroup(String groupName)
    
public  PermissiongetNewPermission(String permissionName)
    
public  RolegetNewRole(String roleName)
    
public  PermissiongetPermission(String name)
     Retrieve a Permission object with specified name.
Parameters:
  name - the name of the Permission.
public  PermissiongetPermissionById(int id)
     Retrieve a Permission object with specified Id.
Parameters:
  id - the id of the Permission.
public  PermissiongetPermissionByName(String name)
     Retrieve a Permission object with specified name.
Parameters:
  name - the name of the Permission.
public  ClassgetPermissionClass()
     Return a Class object representing the system's chosen implementation of of Permission interface.
public  PermissiongetPermissionInstance()
     Construct a blank Permission object.
public  PermissiongetPermissionInstance(String permName)
     Construct a blank Permission object. This method calls getPermissionClass, and then creates a new object using the default constructor.
Parameters:
  permName - The name of the permission.
public  RolegetRole(String name)
     Retrieve a Role object with specified name.
Parameters:
  name - the name of the Role.
public  RolegetRoleById(int id)
     Retrieve a Role object with specified Id.
Parameters:
  id - the id of the Role.
public  RolegetRoleByName(String name)
     Retrieve a Role object with specified name.
Parameters:
  name - the name of the Role.
public  ClassgetRoleClass()
     Return a Class object representing the system's chosen implementation of of Role interface.
public  RolegetRoleInstance()
     Construct a blank Role object.
public  RolegetRoleInstance(String roleName)
     Construct a blank Role object. This method calls getRoleClass, and then creates a new object using the default constructor.
Parameters:
  roleName - The name of the role.
public  UsergetUser(String username)
     Constructs an User object to represent a registered user of the application.
Parameters:
  username - The user name.
public  ClassgetUserClass()
     Return a Class object representing the system's chosen implementation of of User interface.
public  UsergetUserInstance()
     Construct a blank User object.
public  UsergetUserInstance(String userName)
     Construct a blank User object. This method calls getUserClass, and then creates a new object using the default constructor.
Parameters:
  userName - The name of the user.
public  ListgetUserList(Criteria criteria)
     Retrieve a set of users that meet the specified criteria. As the keys for the criteria, you should use the constants that are defined in User interface, plus the names of the custom attributes you added to your user representation in the data storage.
public  UserManagergetUserManager()
     Returns the configured UserManager.
public  User[]getUsers(Criteria criteria)
     Retrieve a set of users that meet the specified criteria. As the keys for the criteria, you should use the constants that are defined in User interface, plus the names of the custom attributes you added to your user representation in the data storage.
public  voidinit()
     Initializes the SecurityService, locating the apropriate UserManager This is a zero parameter variant which queries the Turbine Servlet for its config.
public  voidinit(ServletConfig config)
    
public  booleanisAnonymousUser(User user)
    
protected  voidlockExclusive()
     Acquire an exclusive lock on the security information repository. Methods that modify security information need to invoke this method at the beginning of their body.
protected synchronized  voidlockShared()
     Acquire a shared lock on the security information repository.
public  voidremoveUser(User user)
     Removes an user account from the system.
public  voidsaveOnSessionUnbind(User user)
     Saves User data when the session is unbound.
public  voidsaveUser(User user)
     Saves User's data in the permanent storage.
public  voidsetUserManager(UserManager userManager)
     Configure a new user Manager.
protected  voidunlockExclusive()
     Release an exclusive lock on the security information repository. This method is provided only for completeness.
protected synchronized  voidunlockShared()
     Release a shared lock on the security information repository.



Method Detail
accountExists
public boolean accountExists(User user) throws DataBackendException(Code)
Check whether a specified user's account exists. The login name is used for looking up the account.
Parameters:
  user - The user to be checked. true if the specified account exists
throws:
  DataBackendException - if there was an error accessing the databackend.



accountExists
public boolean accountExists(String userName) throws DataBackendException(Code)
Check whether a specified user's account exists. The login name is used for looking up the account.
Parameters:
  userName - The name of the user to be checked. true if the specified account exists
throws:
  DataBackendException - if there was an error accessing the databackend.



addUser
public void addUser(User user, String password) throws DataBackendException, EntityExistsException(Code)
Creates new user account with specified attributes.
Parameters:
  user - the object describing account to be created.
Parameters:
  password - The password to use for the account.
throws:
  DataBackendException - if there was an error accessing thedata backend.
throws:
  EntityExistsException - if the user account already exists.



changePassword
public void changePassword(User user, String oldPassword, String newPassword) throws PasswordMismatchException, UnknownEntityException, DataBackendException(Code)
Change the password for an User.
Parameters:
  user - an User to change password for.
Parameters:
  oldPassword - the current password supplied by the user.
Parameters:
  newPassword - the current password requested by the user.
throws:
  PasswordMismatchException - if the supplied password was incorrect.
throws:
  UnknownEntityException - if the user's record does notexist in the database.
throws:
  DataBackendException - if there is a problem accessing the storage.



checkPassword
public boolean checkPassword(String checkpw, String encpw)(Code)
Checks if a supplied password matches the encrypted password
Parameters:
  checkpw - The clear text password supplied by the user
Parameters:
  encpw - The current, encrypted password true if the password matches, else false



encryptPassword
public String encryptPassword(String password)(Code)
This method provides client-side encryption of passwords. If secure.passwords are enabled in TurbineResources, the password will be encrypted, if not, it will be returned unchanged. The secure.passwords.algorithm property can be used to chose which digest algorithm should be used for performing the encryption. SHA is used by default.
Parameters:
  password - the password to process processed password



encryptPassword
public String encryptPassword(String password, String salt)(Code)
This method provides client-side encryption of passwords. If secure.passwords are enabled in TurbineResources, the password will be encrypted, if not, it will be returned unchanged. The secure.passwords.algorithm property can be used to chose which digest algorithm should be used for performing the encryption. SHA is used by default. The used algorithms must be prepared to accept null as a valid parameter for salt. All algorithms in the Fulcrum Cryptoservice accept this.
Parameters:
  password - the password to process
Parameters:
  salt - algorithms that needs a salt can provide one here processed password



forcePassword
public void forcePassword(User user, String password) throws UnknownEntityException, DataBackendException(Code)
Forcibly sets new password for an User. This is supposed by the administrator to change the forgotten or compromised passwords. Certain implementatations of this feature would require administrative level access to the authenticating server / program.
Parameters:
  user - an User to change password for.
Parameters:
  password - the new password.
throws:
  UnknownEntityException - if the user's record does notexist in the database.
throws:
  DataBackendException - if there is a problem accessing the storage.



getAclClass
public Class getAclClass() throws UnknownEntityException(Code)
Return a Class object representing the system's chosen implementation of of ACL interface. systems's chosen implementation of ACL interface.
throws:
  UnknownEntityException - if the implementation of ACL interfacecould not be determined, or does not exist.



getAclInstance
public AccessControlList getAclInstance(Map roles, Map permissions) throws UnknownEntityException(Code)
Construct a new ACL object. This constructs a new ACL object from the configured class and initializes it with the supplied roles and permissions.
Parameters:
  roles - The roles that this ACL should contain
Parameters:
  permissions - The permissions for this ACL an object implementing ACL interface.
throws:
  UnknownEntityException - if the object could not be instantiated.



getAllGroups
public GroupSet getAllGroups() throws DataBackendException(Code)
Retrieves all groups defined in the system. the names of all groups defined in the system.
throws:
  DataBackendException - if there was an error accessing thedata backend.



getAllPermissions
public PermissionSet getAllPermissions() throws DataBackendException(Code)
Retrieves all permissions defined in the system. the names of all roles defined in the system.
throws:
  DataBackendException - if there was an error accessing thedata backend.



getAllRoles
public RoleSet getAllRoles() throws DataBackendException(Code)
Retrieves all roles defined in the system. the names of all roles defined in the system.
throws:
  DataBackendException - if there was an error accessing thedata backend.



getAnonymousUser
public User getAnonymousUser() throws UnknownEntityException(Code)
Constructs an User object to represent an anonymous user of the application. An anonymous Turbine User.
throws:
  UnknownEntityException - if the implementation of User interfacecould not be determined, or does not exist.



getAuthenticatedUser
public User getAuthenticatedUser(String username, String password) throws DataBackendException, UnknownEntityException, PasswordMismatchException(Code)
Authenticates an user, and constructs an User object to represent him/her.
Parameters:
  username - The user name.
Parameters:
  password - The user password. An authenticated Turbine User.
throws:
  PasswordMismatchException - if the supplied password was incorrect.
throws:
  UnknownEntityException - if the user's account does notexist in the database.
throws:
  DataBackendException - if there is a problem accessing the storage.



getGlobalGroup
public Group getGlobalGroup()(Code)
Provides a reference to the Group object that represents the global group. a Group object that represents the global group.



getGroup
public Group getGroup(String name) throws DataBackendException, UnknownEntityException(Code)
Retrieve a Group object with specified name.
Parameters:
  name - the name of the Group. an object representing the Group with specified name.
throws:
  DataBackendException - if there was an error accessing thedata backend.
throws:
  UnknownEntityException - if the group does not exist.



getGroupById
public Group getGroupById(int id) throws DataBackendException, UnknownEntityException(Code)
Retrieve a Group object with specified Id.
Parameters:
  id - the id of the Group. an object representing the Group with specified name.
throws:
  UnknownEntityException - if the permission does notexist in the database.
throws:
  DataBackendException - if there is a problem accessing thestorage.



getGroupByName
public Group getGroupByName(String name) throws DataBackendException, UnknownEntityException(Code)
Retrieve a Group object with specified name.
Parameters:
  name - the name of the Group. an object representing the Group with specified name.
throws:
  DataBackendException - if there was an error accessing thedata backend.
throws:
  UnknownEntityException - if the group does not exist.



getGroupClass
public Class getGroupClass() throws UnknownEntityException(Code)
Return a Class object representing the system's chosen implementation of of Group interface. systems's chosen implementation of Group interface.
throws:
  UnknownEntityException - if the implementation of Group interfacecould not be determined, or does not exist.



getGroupInstance
public Group getGroupInstance() throws UnknownEntityException(Code)
Construct a blank Group object. This method calls getGroupClass, and then creates a new object using the default constructor. an object implementing Group interface.
throws:
  UnknownEntityException - if the object could not be instantiated.



getGroupInstance
public Group getGroupInstance(String groupName) throws UnknownEntityException(Code)
Construct a blank Group object. This method calls getGroupClass, and then creates a new object using the default constructor.
Parameters:
  groupName - The name of the Group an object implementing Group interface.
throws:
  UnknownEntityException - if the object could not be instantiated.



getNewGroup
public Group getNewGroup(String groupName)(Code)



getNewPermission
public Permission getNewPermission(String permissionName)(Code)



getNewRole
public Role getNewRole(String roleName)(Code)



getPermission
public Permission getPermission(String name) throws DataBackendException, UnknownEntityException(Code)
Retrieve a Permission object with specified name.
Parameters:
  name - the name of the Permission. an object representing the Permission with specified name.
throws:
  DataBackendException - if there was an error accessing thedata backend.
throws:
  UnknownEntityException - if the permission does not exist.



getPermissionById
public Permission getPermissionById(int id) throws DataBackendException, UnknownEntityException(Code)
Retrieve a Permission object with specified Id.
Parameters:
  id - the id of the Permission. an object representing the Permission with specified name.
throws:
  UnknownEntityException - if the permission does notexist in the database.
throws:
  DataBackendException - if there is a problem accessing thestorage.



getPermissionByName
public Permission getPermissionByName(String name) throws DataBackendException, UnknownEntityException(Code)
Retrieve a Permission object with specified name.
Parameters:
  name - the name of the Permission. an object representing the Permission with specified name.
throws:
  DataBackendException - if there was an error accessing thedata backend.
throws:
  UnknownEntityException - if the permission does not exist.



getPermissionClass
public Class getPermissionClass() throws UnknownEntityException(Code)
Return a Class object representing the system's chosen implementation of of Permission interface. systems's chosen implementation of Permission interface.
throws:
  UnknownEntityException - if the implementation of Permission interfacecould not be determined, or does not exist.



getPermissionInstance
public Permission getPermissionInstance() throws UnknownEntityException(Code)
Construct a blank Permission object. This method calls getPermissionClass, and then creates a new object using the default constructor. an object implementing Permission interface.
throws:
  UnknownEntityException - if the object could not be instantiated.



getPermissionInstance
public Permission getPermissionInstance(String permName) throws UnknownEntityException(Code)
Construct a blank Permission object. This method calls getPermissionClass, and then creates a new object using the default constructor.
Parameters:
  permName - The name of the permission. an object implementing Permission interface.
throws:
  UnknownEntityException - if the object could not be instantiated.



getRole
public Role getRole(String name) throws DataBackendException, UnknownEntityException(Code)
Retrieve a Role object with specified name.
Parameters:
  name - the name of the Role. an object representing the Role with specified name.
throws:
  DataBackendException - if there was an error accessing thedata backend.
throws:
  UnknownEntityException - if the role does not exist.



getRoleById
public Role getRoleById(int id) throws DataBackendException, UnknownEntityException(Code)
Retrieve a Role object with specified Id.
Parameters:
  id - the id of the Role. an object representing the Role with specified name.
throws:
  UnknownEntityException - if the permission does notexist in the database.
throws:
  DataBackendException - if there is a problem accessing thestorage.



getRoleByName
public Role getRoleByName(String name) throws DataBackendException, UnknownEntityException(Code)
Retrieve a Role object with specified name.
Parameters:
  name - the name of the Role. an object representing the Role with specified name.
throws:
  DataBackendException - if there was an error accessing thedata backend.
throws:
  UnknownEntityException - if the role does not exist.



getRoleClass
public Class getRoleClass() throws UnknownEntityException(Code)
Return a Class object representing the system's chosen implementation of of Role interface. systems's chosen implementation of Role interface.
throws:
  UnknownEntityException - if the implementation of Role interfacecould not be determined, or does not exist.



getRoleInstance
public Role getRoleInstance() throws UnknownEntityException(Code)
Construct a blank Role object. This method calls getRoleClass, and then creates a new object using the default constructor. an object implementing Role interface.
throws:
  UnknownEntityException - if the object could not be instantiated.



getRoleInstance
public Role getRoleInstance(String roleName) throws UnknownEntityException(Code)
Construct a blank Role object. This method calls getRoleClass, and then creates a new object using the default constructor.
Parameters:
  roleName - The name of the role. an object implementing Role interface.
throws:
  UnknownEntityException - if the object could not be instantiated.



getUser
public User getUser(String username) throws DataBackendException, UnknownEntityException(Code)
Constructs an User object to represent a registered user of the application.
Parameters:
  username - The user name. A Turbine User.
throws:
  UnknownEntityException - if the user's account does not exist
throws:
  DataBackendException - if there is a problem accessing the storage.



getUserClass
public Class getUserClass() throws UnknownEntityException(Code)
Return a Class object representing the system's chosen implementation of of User interface. systems's chosen implementation of User interface.
throws:
  UnknownEntityException - if the implementation of User interfacecould not be determined, or does not exist.



getUserInstance
public User getUserInstance() throws UnknownEntityException(Code)
Construct a blank User object. This method calls getUserClass, and then creates a new object using the default constructor. an object implementing User interface.
throws:
  UnknownEntityException - if the object could not be instantiated.



getUserInstance
public User getUserInstance(String userName) throws UnknownEntityException(Code)
Construct a blank User object. This method calls getUserClass, and then creates a new object using the default constructor.
Parameters:
  userName - The name of the user. an object implementing User interface.
throws:
  UnknownEntityException - if the object could not be instantiated.



getUserList
public List getUserList(Criteria criteria) throws DataBackendException(Code)
Retrieve a set of users that meet the specified criteria. As the keys for the criteria, you should use the constants that are defined in User interface, plus the names of the custom attributes you added to your user representation in the data storage. Use verbatim names of the attributes - without table name prefix in case of DB implementation.
Parameters:
  criteria - The criteria of selection. a List of users meeting the criteria.
throws:
  DataBackendException - if there is a problem accessing thestorage.



getUserManager
public UserManager getUserManager()(Code)
Returns the configured UserManager. An UserManager object



getUsers
public User[] getUsers(Criteria criteria) throws DataBackendException(Code)
Retrieve a set of users that meet the specified criteria. As the keys for the criteria, you should use the constants that are defined in User interface, plus the names of the custom attributes you added to your user representation in the data storage. Use verbatim names of the attributes - without table name prefix in case of DB implementation.
Parameters:
  criteria - The criteria of selection. a List of users meeting the criteria.
throws:
  DataBackendException - if there is a problem accessing thestorage.



init
public void init() throws InitializationException(Code)
Initializes the SecurityService, locating the apropriate UserManager This is a zero parameter variant which queries the Turbine Servlet for its config.
throws:
  InitializationException - Something went wrong in the init stage



init
public void init(ServletConfig config) throws InitializationException(Code)
Initializes the SecurityService, locating the apropriate UserManager
Parameters:
  config - a ServletConfig, to enforce early initialization
throws:
  InitializationException - Something went wrong in the init stage



isAnonymousUser
public boolean isAnonymousUser(User user)(Code)
Checks whether a passed user object matches the anonymous user pattern according to the configured user manager
Parameters:
  user - An user object True if this is an anonymous user



lockExclusive
protected void lockExclusive()(Code)
Acquire an exclusive lock on the security information repository. Methods that modify security information need to invoke this method at the beginning of their body. Note! Those methods must be synchronized themselves!



lockShared
protected synchronized void lockShared()(Code)
Acquire a shared lock on the security information repository. Methods that read security information need to invoke this method at the beginning of their body.



removeUser
public void removeUser(User user) throws DataBackendException, UnknownEntityException(Code)
Removes an user account from the system.
Parameters:
  user - the object describing the account to be removed.
throws:
  DataBackendException - if there was an error accessing the databackend.
throws:
  UnknownEntityException - if the user account is not present.



saveOnSessionUnbind
public void saveOnSessionUnbind(User user) throws UnknownEntityException, DataBackendException(Code)
Saves User data when the session is unbound. The user account is required to exist in the storage. LastLogin, AccessCounter, persistent pull tools, and any data stored in the permData hashtable that is not mapped to a column will be saved.
exception:
  UnknownEntityException - if the user's account does notexist in the database.
exception:
  DataBackendException - if there is a problem accessing thestorage.



saveUser
public void saveUser(User user) throws UnknownEntityException, DataBackendException(Code)
Saves User's data in the permanent storage. The user account is required to exist in the storage.
Parameters:
  user - the User object to save
throws:
  UnknownEntityException - if the user's account does notexist in the database.
throws:
  DataBackendException - if there is a problem accessing the storage.



setUserManager
public void setUserManager(UserManager userManager)(Code)
Configure a new user Manager.
Parameters:
  userManager - An UserManager object



unlockExclusive
protected void unlockExclusive()(Code)
Release an exclusive lock on the security information repository. This method is provided only for completeness. It does not really do anything. Note! Methods that modify security information must be synchronized!



unlockShared
protected synchronized void unlockShared()(Code)
Release a shared lock on the security information repository. Methods that read security information need to invoke this method at the end of their body.



Methods inherited from org.apache.turbine.services.TurbineBaseService
public void init(Object data) throws InitializationException(Code)(Java Doc)
public void init(ServletConfig config) throws InitializationException(Code)(Java Doc)
public void init(RunData data) throws InitializationException(Code)(Java Doc)
public void init() throws InitializationException(Code)(Java Doc)
public void shutdown()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.