Java Doc for UserManager.java in  » Content-Management-System » daisy » org » outerj » daisy » repository » user » 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 » Content Management System » daisy » org.outerj.daisy.repository.user 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.outerj.daisy.repository.user.UserManager

All known Subclasses:   org.outerj.daisy.repository.commonimpl.user.UserManagerImpl,
UserManager
public interface UserManager (Code)
Manager for all things user related.

The UserManager can be retrieved via org.outerj.daisy.repository.Repository.getUserManager .





Method Summary
 RolecreateRole(String roleName)
     Creates a new Role.
 UsercreateUser(String login)
     Creates a new User.
 voiddeleteRole(long roleId)
    
 voiddeleteUser(long userId)
    
 AuthenticationSchemeInfosgetAuthenticationSchemes()
    
 PublicUserInfogetPublicUserInfo(long userId)
     Returns the publicly available information for a user.
 PublicUserInfogetPublicUserInfo(String login)
     Returns the publicly available information for a user.
 PublicUserInfosgetPublicUserInfos()
     Returns the public information of all users.
 RolegetRole(long roleId, boolean updateable)
    
 RolegetRole(String roleName, boolean updateable)
    
 StringgetRoleDisplayName(long roleId)
     Retrieves the name of a role, using the user cache for quick access.
 RolesgetRoles()
     Returns all available roles.
 UsergetUser(long userId, boolean updateable)
     Return the User object which is identified by data store id userId.
 UsergetUser(String userLogin, boolean updateable)
    
 StringgetUserDisplayName(long userId)
     Retrieves the display name of a user, using the user cache for quick access.
 longgetUserId(String login)
     Retrieves the id of a user based on its login.
 long[]getUserIds()
    
 StringgetUserLogin(long userId)
     Retrieves the login of a user.
 UsersgetUsers()
     Returns all available users.
 UsersgetUsersByEmail(String email)
    



Method Detail
createRole
Role createRole(String roleName)(Code)
Creates a new Role.
Parameters:
  roleName - a Role object



createUser
User createUser(String login)(Code)
Creates a new User.

The persistency of this object towards the data store is the responsibility of the client using the User object itself by calling the User.save method.
Parameters:
  login - the user login used when authenticating a User object which isn't persistent yet.




deleteRole
void deleteRole(long roleId) throws RepositoryException(Code)
Deletes the Role with data store id roleId
Parameters:
  roleId - data store id of the Role to delete



deleteUser
void deleteUser(long userId) throws RepositoryException(Code)
Deletes the User with data store id userId
Parameters:
  userId - data store id of the User to delete



getAuthenticationSchemes
AuthenticationSchemeInfos getAuthenticationSchemes() throws RepositoryException(Code)



getPublicUserInfo
PublicUserInfo getPublicUserInfo(long userId) throws RepositoryException(Code)
Returns the publicly available information for a user.



getPublicUserInfo
PublicUserInfo getPublicUserInfo(String login) throws RepositoryException(Code)
Returns the publicly available information for a user.



getPublicUserInfos
PublicUserInfos getPublicUserInfos() throws RepositoryException(Code)
Returns the public information of all users. Contrary to UserManager.getUsers() , this method can be called by any user.



getRole
Role getRole(long roleId, boolean updateable) throws RepositoryException(Code)
Return the Role object which is identified by data store id roleId
Parameters:
  roleId - the data store id of the desired Role object the Role object corresponding to data store id roleId



getRole
Role getRole(String roleName, boolean updateable) throws RepositoryException(Code)
Return the Role object which is identified by the specified roleName
Parameters:
  roleName - the name by which the desired Role object is identified the Role object for the role with name roleName



getRoleDisplayName
String getRoleDisplayName(long roleId) throws RepositoryException(Code)
Retrieves the name of a role, using the user cache for quick access.

This is the same as otherwise retrieved from Role.getName .
throws:
  RoleNotFoundException - if the role doesn't exist




getRoles
Roles getRoles() throws RepositoryException(Code)
Returns all available roles.



getUser
User getUser(long userId, boolean updateable) throws RepositoryException(Code)
Return the User object which is identified by data store id userId.

Only administrators can retrieve the User object for users that are not themselve.
Parameters:
  userId - the data store id of the desired User object the User object corresponding to data store id userId




getUser
User getUser(String userLogin, boolean updateable) throws RepositoryException(Code)
Return the User object which is identified by the specified userLogin
Parameters:
  userLogin - the login by which the desired User object is identified the User object for the user with login userLogin



getUserDisplayName
String getUserDisplayName(long userId) throws RepositoryException(Code)
Retrieves the display name of a user, using the user cache for quick access. Only administrators are allowed to access the full user object, so this method enables 'normal' users to resolve user ids to names.

This is the same as otherwise retrieved from User.getDisplayName .
throws:
  UserNotFoundException - if the user doesn't exist




getUserId
long getUserId(String login) throws RepositoryException(Code)
Retrieves the id of a user based on its login. This method can be used instead of getUser(login).getId() for non-administrator users.
throws:
  UserNotFoundException - if the user doesn't exist



getUserIds
long[] getUserIds() throws RepositoryException(Code)



getUserLogin
String getUserLogin(long userId) throws RepositoryException(Code)
Retrieves the login of a user. Only administrators are allowed to access the full user object, so this method enables 'normal' users to resolve user ids to logins.

This is the same as otherwise retrieved from User.getLogin .
throws:
  UserNotFoundException - if the user doesn't exist




getUsers
Users getUsers() throws RepositoryException(Code)
Returns all available users. Only Administrators can do this.



getUsersByEmail
Users getUsersByEmail(String email) throws RepositoryException(Code)



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