Java Doc for UserDirectoryService.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » user » api » 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 » ERP CRM Financial » sakai » org.sakaiproject.user.api 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.sakaiproject.user.api.UserDirectoryService

All known Subclasses:   org.sakaiproject.user.impl.BaseUserDirectoryService,
UserDirectoryService
public interface UserDirectoryService extends EntityProducer(Code)

UserDirectoryService manages the end-user modeling for Sakai.



Field Summary
final static  StringADMIN_EID
     User eid for the admin user.
final static  StringADMIN_ID
     User id for the admin user.
final static  StringAPPLICATION_ID
     The type string for this application: should not change over time as it may be stored in various parts of persistent entities.
final static  StringREFERENCE_ROOT
     This string starts the references to resources in this service.
final static  StringSECURE_ADD_USER
     Name for the event of adding a group.
final static  StringSECURE_REMOVE_USER
     Name for the event of removing a user.
final static  StringSECURE_UPDATE_USER_ANY
     Name for the event of updating any user info.
final static  StringSECURE_UPDATE_USER_OWN
     Name for the event of updating one's own user info.
final static  StringSECURE_UPDATE_USER_OWN_EMAIL
     Name for the ability for updating one's own email.
final static  StringSECURE_UPDATE_USER_OWN_NAME
     Name for the ability for updating one's own name.
final static  StringSECURE_UPDATE_USER_OWN_PASSWORD
     Name for the ability for updating one's own password.
final static  StringSECURE_UPDATE_USER_OWN_TYPE
     Name for the ability for updating one's own type.


Method Summary
 UserEditaddUser(String id, String eid)
     Add a new user to the directory.
 UseraddUser(String id, String eid, String firstName, String lastName, String email, String pw, String type, ResourceProperties properties)
     Add a new user to the directory, complete in one operation.
 booleanallowAddUser()
     check permissions for addUser().
 booleanallowRemoveUser(String id)
     check permissions for removeUser().
Parameters:
  id - The group id.
 booleanallowUpdateUser(String id)
     check permissions for editUser()
Parameters:
  id - The user id.
public  booleanallowUpdateUserEmail(String id)
     check permissions for editUser()
Parameters:
  id - The user id.
public  booleanallowUpdateUserName(String id)
     check permissions for editUser()
Parameters:
  id - The user id.
public  booleanallowUpdateUserPassword(String id)
     check permissions for editUser()
Parameters:
  id - The user id.
public  booleanallowUpdateUserType(String id)
     check permissions for editUser()
Parameters:
  id - The user id.
 Userauthenticate(String eid, String password)
     Authenticate a user / password.
Parameters:
  eid - The user eid.
Parameters:
  password - The password.
 voidcancelEdit(UserEdit user)
     Cancel the changes made to a UserEdit object, and release the lock.
 voidcommitEdit(UserEdit user)
     Commit the changes made to a UserEdit object, and release the lock.
 intcountSearchUsers(String criteria)
     Count all the users that match this criteria in id or target, first or last name.
 intcountUsers()
     Count all the users.
 voiddestroyAuthentication()
     Remove authentication for the current user.
 UserEditeditUser(String id)
     Get a locked user object for editing.
 CollectionfindUsersByEmail(String email)
     Find the user objects which have this email address.
Parameters:
  email - The email address string.
 UsergetAnonymousUser()
     Access the anonymous user object.
 UsergetCurrentUser()
     Access the user object associated with the "current" request.
 UsergetUser(String id)
     Access a user object.
Parameters:
  id - The user id string.
 UsergetUserByEid(String eid)
     Access a user object, given an enterprise id.
Parameters:
  eid - The user eid string.
 StringgetUserEid(String id)
     Find the user eid from a user id.
Parameters:
  id - The user id.
 StringgetUserId(String eid)
     Find the user id from a user eid.
Parameters:
  eid - The user eid.
 ListgetUsers()
     Access all user objects - known to us (not from external providers).
 ListgetUsers(Collection ids)
     Access a bunch of user object.
Parameters:
  ids - The Collection (String) of user ids.
 ListgetUsers(int first, int last)
     Find all the users within the record range given (sorted by sort name).
Parameters:
  first - The first record position to return.
Parameters:
  last - The last record position to return.
 UserEditmergeUser(Element el)
     Add a new user to the directory, from a definition in XML.
 voidremoveUser(UserEdit user)
     Remove this user's information from the directory - it must be a user with a lock from editUser().
 ListsearchUsers(String criteria, int first, int last)
     Search all the users that match this criteria in id or email, first or last name, returning a subset of records within the record range given (sorted by sort name).
Parameters:
  criteria - The search criteria.
Parameters:
  first - The first record position to return.
Parameters:
  last - The last record position to return.
 StringuserReference(String id)
     Access the internal reference which can be used to access the resource from within the system.
Parameters:
  id - The user id string.

Field Detail
ADMIN_EID
final static String ADMIN_EID(Code)
User eid for the admin user.



ADMIN_ID
final static String ADMIN_ID(Code)
User id for the admin user.



APPLICATION_ID
final static String APPLICATION_ID(Code)
The type string for this application: should not change over time as it may be stored in various parts of persistent entities.



REFERENCE_ROOT
final static String REFERENCE_ROOT(Code)
This string starts the references to resources in this service.



SECURE_ADD_USER
final static String SECURE_ADD_USER(Code)
Name for the event of adding a group.



SECURE_REMOVE_USER
final static String SECURE_REMOVE_USER(Code)
Name for the event of removing a user.



SECURE_UPDATE_USER_ANY
final static String SECURE_UPDATE_USER_ANY(Code)
Name for the event of updating any user info.



SECURE_UPDATE_USER_OWN
final static String SECURE_UPDATE_USER_OWN(Code)
Name for the event of updating one's own user info.



SECURE_UPDATE_USER_OWN_EMAIL
final static String SECURE_UPDATE_USER_OWN_EMAIL(Code)
Name for the ability for updating one's own email.



SECURE_UPDATE_USER_OWN_NAME
final static String SECURE_UPDATE_USER_OWN_NAME(Code)
Name for the ability for updating one's own name.



SECURE_UPDATE_USER_OWN_PASSWORD
final static String SECURE_UPDATE_USER_OWN_PASSWORD(Code)
Name for the ability for updating one's own password.



SECURE_UPDATE_USER_OWN_TYPE
final static String SECURE_UPDATE_USER_OWN_TYPE(Code)
Name for the ability for updating one's own type.





Method Detail
addUser
UserEdit addUser(String id, String eid) throws UserIdInvalidException, UserAlreadyDefinedException, UserPermissionException(Code)
Add a new user to the directory. Must commitEdit() to make official, or cancelEdit() when done! Id is auto-generated.
Parameters:
  id - The user uuid string. Leave null for auto-assignment.
Parameters:
  eid - The user eid. A locked UserEdit object (reserving the id).
exception:
  UserIdInvalidException - if the user eid is invalid.
exception:
  UserAlreadyDefinedException - if the user id or eid is already used.
exception:
  UserPermissionException - if the current user does not have permission to add a user.



addUser
User addUser(String id, String eid, String firstName, String lastName, String email, String pw, String type, ResourceProperties properties) throws UserIdInvalidException, UserAlreadyDefinedException, UserPermissionException(Code)
Add a new user to the directory, complete in one operation. Id is auto-generated.
Parameters:
  id - The user uuid string. Leave null for auto-assignment.
Parameters:
  eid - The user eid.
Parameters:
  firstName - The user first name.
Parameters:
  lastName - The user last name.
Parameters:
  email - The user email.
Parameters:
  pw - The user password.
Parameters:
  type - The user type.
Parameters:
  properties - Other user properties. The User object created.
exception:
  UserIdInvalidException - if the user eid is invalid.
exception:
  UserAlreadyDefinedException - if the user eid is already used.
exception:
  UserPermissionException - if the current user does not have permission to add a user.



allowAddUser
boolean allowAddUser()(Code)
check permissions for addUser(). true if the user is allowed to add a user, false if not.



allowRemoveUser
boolean allowRemoveUser(String id)(Code)
check permissions for removeUser().
Parameters:
  id - The group id. true if the user is allowed to removeUser(id), false if not.



allowUpdateUser
boolean allowUpdateUser(String id)(Code)
check permissions for editUser()
Parameters:
  id - The user id. true if the user is allowed to update the user, false if not.



allowUpdateUserEmail
public boolean allowUpdateUserEmail(String id)(Code)
check permissions for editUser()
Parameters:
  id - The user id. true if the user is allowed to update their own email address, false if not.



allowUpdateUserName
public boolean allowUpdateUserName(String id)(Code)
check permissions for editUser()
Parameters:
  id - The user id. true if the user is allowed to update their own first and last names, false if not.



allowUpdateUserPassword
public boolean allowUpdateUserPassword(String id)(Code)
check permissions for editUser()
Parameters:
  id - The user id. true if the user is allowed to update their own password, false if not.



allowUpdateUserType
public boolean allowUpdateUserType(String id)(Code)
check permissions for editUser()
Parameters:
  id - The user id. true if the user is allowed to update their own type, false if not.



authenticate
User authenticate(String eid, String password)(Code)
Authenticate a user / password.
Parameters:
  eid - The user eid.
Parameters:
  password - The password. The User object of the authenticated user if successfull, null if not.



cancelEdit
void cancelEdit(UserEdit user)(Code)
Cancel the changes made to a UserEdit object, and release the lock. The UserEdit is disabled, and not to be used after this call.
Parameters:
  user - The UserEdit object to commit.



commitEdit
void commitEdit(UserEdit user) throws UserAlreadyDefinedException(Code)
Commit the changes made to a UserEdit object, and release the lock. The UserEdit is disabled, and not to be used after this call.
Parameters:
  user - The UserEdit object to commit.
exception:
  UserAlreadyDefinedException - if the User eid is already in use by another User object.



countSearchUsers
int countSearchUsers(String criteria)(Code)
Count all the users that match this criteria in id or target, first or last name. The count of all users matching the criteria.



countUsers
int countUsers()(Code)
Count all the users. The count of all users.



destroyAuthentication
void destroyAuthentication()(Code)
Remove authentication for the current user.



editUser
UserEdit editUser(String id) throws UserNotDefinedException, UserPermissionException, UserLockedException(Code)
Get a locked user object for editing. Must commitEdit() to make official, or cancelEdit() when done!
Parameters:
  id - The user id string. A UserEdit object for editing.
exception:
  UserNotDefinedException - if not found, or if not an UserEdit object
exception:
  UserPermissionException - if the current user does not have permission to mess with this user.
exception:
  UserLockedException - if the User object is locked by someone else.



findUsersByEmail
Collection findUsersByEmail(String email)(Code)
Find the user objects which have this email address.
Parameters:
  email - The email address string. A Collection (User) of user objects which have this email address (may be empty).



getAnonymousUser
User getAnonymousUser()(Code)
Access the anonymous user object. the anonymous user object.



getCurrentUser
User getCurrentUser()(Code)
Access the user object associated with the "current" request. The current user (may be anon).



getUser
User getUser(String id) throws UserNotDefinedException(Code)
Access a user object.
Parameters:
  id - The user id string. A user object containing the user information
exception:
  UserNotDefinedException - if not found



getUserByEid
User getUserByEid(String eid) throws UserNotDefinedException(Code)
Access a user object, given an enterprise id.
Parameters:
  eid - The user eid string. A user object containing the user information
exception:
  UserNotDefinedException - if not found



getUserEid
String getUserEid(String id) throws UserNotDefinedException(Code)
Find the user eid from a user id.
Parameters:
  id - The user id. The eid for the user with this id.
exception:
  UserNotDefinedException - if we don't know anything about the user with this id.



getUserId
String getUserId(String eid) throws UserNotDefinedException(Code)
Find the user id from a user eid.
Parameters:
  eid - The user eid. The id for the user with this eid.
exception:
  UserNotDefinedException - if we don't know anything about the user with this eid.



getUsers
List getUsers()(Code)
Access all user objects - known to us (not from external providers). A list of user objects containing each user's information.
exception:
  IdUnusedException - if not found.



getUsers
List getUsers(Collection ids)(Code)
Access a bunch of user object.
Parameters:
  ids - The Collection (String) of user ids. A List (User) of user objects for valid ids.



getUsers
List getUsers(int first, int last)(Code)
Find all the users within the record range given (sorted by sort name).
Parameters:
  first - The first record position to return.
Parameters:
  last - The last record position to return. A list (User) of all the users within the record range given (sorted by sort name).



mergeUser
UserEdit mergeUser(Element el) throws UserIdInvalidException, UserAlreadyDefinedException, UserPermissionException(Code)
Add a new user to the directory, from a definition in XML. Must commitEdit() to make official, or cancelEdit() when done!
Parameters:
  el - The XML DOM Element defining the user. A locked UserEdit object (reserving the id).
exception:
  UserIdInvalidException - if the user id is invalid.
exception:
  UserAlreadyDefinedException - if the user id is already used.
exception:
  UserPermissionException - if the current user does not have permission to add a user.



removeUser
void removeUser(UserEdit user) throws UserPermissionException(Code)
Remove this user's information from the directory - it must be a user with a lock from editUser(). The UserEdit is disabled, and not to be used after this call.
Parameters:
  user - The locked user object to remove.
exception:
  UserPermissionException - if the current user does not have permission to remove this user.



searchUsers
List searchUsers(String criteria, int first, int last)(Code)
Search all the users that match this criteria in id or email, first or last name, returning a subset of records within the record range given (sorted by sort name).
Parameters:
  criteria - The search criteria.
Parameters:
  first - The first record position to return.
Parameters:
  last - The last record position to return. A list (User) of all the aliases matching the criteria, within the record range given (sorted by sort name).



userReference
String userReference(String id)(Code)
Access the internal reference which can be used to access the resource from within the system.
Parameters:
  id - The user id string. The the internal reference which can be used to access the resource from within the system.



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