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


java.lang.Object
   org.sakaiproject.user.impl.BaseUserDirectoryService

All known Subclasses:   org.sakaiproject.user.impl.DbUserService,
BaseUserDirectoryService
abstract public class BaseUserDirectoryService implements UserDirectoryService,StorageUser,UserFactory(Code)

BaseUserDirectoryService is a Sakai user directory services implementation.

User records can be kept locally, in Sakai, externally, by a UserDirectoryProvider, or a mixture of both.

Each User that ever goes through Sakai is allocated a Sakai unique UUID. Even if we don't keep the User record in Sakai, we keep a map of this id to the external eid.


Inner Class :public class BaseUserEdit implements UserEdit,SessionBindingListener
Inner Class :protected interface Storage

Field Summary
final protected  StringM_curUserKey
    
protected  Userm_anon
     An anon.
protected  intm_cacheCleanerSeconds
     The # seconds to cache gets.
protected  intm_cacheSeconds
     The # seconds to cache gets.
protected  Cachem_callCache
     A cache of calls to the service and the results.
protected  booleanm_caseSensitiveEid
     Configuration: case sensitive user eid.
protected  UserDirectoryProviderm_provider
     A user directory provider.
protected  Stringm_relativeAccessPoint
     The initial portion of a relative access point URL.
protected  booleanm_separateIdEid
     Configuration: use a different id and eid for each record (otherwise make them the same value).
protected  Storagem_storage
     Storage manager for this service.


Method Summary
protected  voidaddLiveProperties(BaseUserEdit edit)
     Create the live properties for the user.
protected  voidaddLiveUpdateProperties(BaseUserEdit edit)
     Update the live properties for a user for when modified.
public  UserEditaddUser(String id, String eid)
    
public  UseraddUser(String id, String eid, String firstName, String lastName, String email, String pw, String type, ResourceProperties properties)
    
public  booleanallowAddUser()
    
public  booleanallowRemoveUser(String id)
    
public  booleanallowUpdateUser(String id)
    
public  booleanallowUpdateUserEmail(String id)
    
public  booleanallowUpdateUserName(String id)
    
public  booleanallowUpdateUserPassword(String id)
    
public  booleanallowUpdateUserType(String id)
    
public  Stringarchive(String siteId, Document doc, Stack stack, String archivePath, List attachments)
    
protected  StringassureUuid(String id, String eid)
     Make sure we have a good uuid for a user record.
public  Userauthenticate(String eid, String password)
    
abstract protected  AuthzGroupServiceauthzGroupService()
    
public  voidcancelEdit(UserEdit user)
    
protected  StringcleanEid(String eid)
     Adjust the eid - trim it to null, and lower case IF we are case insensitive.
Parameters:
  eid - The eid to clean up.
protected  StringcleanId(String id)
     Adjust the id - trim it to null.
public  voidcommitEdit(UserEdit user)
    
public  intcountSearchUsers(String criteria)
    
public  intcountUsers()
    
public  voiddestroy()
     Returns to uninitialized state.
public  voiddestroyAuthentication()
    
public  UserEditeditUser(String id)
    
abstract protected  EntityManagerentityManager()
    
abstract protected  EventTrackingServiceeventTrackingService()
    
public  CollectionfindUsersByEmail(String email)
    
abstract protected  FunctionManagerfunctionManager()
    
protected  StringgetAccessPoint(boolean relative)
     Access the partial URL that forms the root of resource URLs.
Parameters:
  relative - if true, form within the access path only (i.e.
public  UsergetAnonymousUser()
    
public  UsergetCurrentUser()
    
public  TimegetDate(Entity r)
    
public  EntitygetEntity(Reference ref)
    
public  CollectiongetEntityAuthzGroups(Reference ref, String userId)
    
public  StringgetEntityDescription(Reference ref)
    
public  ResourcePropertiesgetEntityResourceProperties(Reference ref)
    
public  StringgetEntityUrl(Reference ref)
    
public  HttpAccessgetHttpAccess()
    
public  StringgetLabel()
    
public  StringgetOwnerId(Entity r)
    
public  UsergetUser(String id)
    
public  UsergetUserByEid(String eid)
    
public  StringgetUserEid(String id)
    
public  StringgetUserId(String eid)
    
public  ListgetUsers(Collection ids)
    
public  ListgetUsers()
    
public  ListgetUsers(int first, int last)
    
abstract protected  IdManageridManager()
    
public  voidinit()
     Final initialization, once all dependencies are set.
public  booleanisDraft(Entity r)
    
abstract protected  MemoryServicememoryService()
    
public  Stringmerge(String siteId, Element root, String archivePath, String fromSiteId, Map attachmentNames, Map userIdTrans, Set userListAllowImport)
    
public  UserEditmergeUser(Element el)
    
public  EntitynewContainer(String ref)
    
public  EntitynewContainer(Element element)
    
public  EntitynewContainer(Entity other)
    
public  EditnewContainerEdit(String ref)
    
public  EditnewContainerEdit(Element element)
    
public  EditnewContainerEdit(Entity other)
    
public  EntitynewResource(Entity container, String id, Object[] others)
    
public  EntitynewResource(Entity container, Element element)
    
public  EntitynewResource(Entity container, Entity other)
    
public  EditnewResourceEdit(Entity container, String id, Object[] others)
    
public  EditnewResourceEdit(Entity container, Element element)
    
public  EditnewResourceEdit(Entity container, Entity other)
    
abstract protected  StoragenewStorage()
     Construct storage for this service.
public  UserEditnewUser()
    
public  booleanparseEntityReference(String reference, Reference ref)
    
public  voidremoveUser(UserEdit user)
    
public  ListsearchUsers(String criteria, int first, int last)
    
abstract protected  SecurityServicesecurityService()
    
abstract protected  ServerConfigurationServiceserverConfigurationService()
    
abstract protected  SessionManagersessionManager()
    
public  voidsetCacheCleanerMinutes(String time)
     Set the # minutes between cache cleanings.
Parameters:
  time - The # minutes between cache cleanings.
public  voidsetCacheMinutes(String time)
     Set the # minutes to cache a get.
public  voidsetCaseSensitiveId(String value)
    
public  voidsetProvider(UserDirectoryProvider provider)
     Configuration: set the user directory provider helper service.
public  voidsetSeparateIdEid(String value)
     Configuration: to use a separate value for id and eid for each user record, or not.
public  Object[]storageFields(Entity r)
    
abstract protected  ThreadLocalManagerthreadLocalManager()
    
abstract protected  TimeServicetimeService()
    
protected  Stringunlock(String lock, String resource)
     Check security permission.
protected  Listunlock(List locks, String resource)
     Check security permission.
Parameters:
  locks - The list of lock strings.
Parameters:
  resource - The resource reference string, or null if no resource is involved.
exception:
  UserPermissionException - Thrown if the user does not have access to either.
protected  voidunlock2(String lock1, String lock2, String resource)
     Check security permission.
protected  booleanunlockCheck(String lock, String resource)
     Check security permission.
Parameters:
  lock - The lock id string.
Parameters:
  resource - The resource reference string, or null if no resource is involved.
protected  booleanunlockCheck(List locks, String resource)
     Check security permission.
Parameters:
  lock - A list of lock strings to consider.
Parameters:
  resource - The resource reference string, or null if no resource is involved.
protected  booleanunlockCheck2(String lock1, String lock2, String resource)
     Check security permission.
Parameters:
  lock1 - The lock id string.
Parameters:
  lock2 - The lock id string.
Parameters:
  resource - The resource reference string, or null if no resource is involved.
protected  StringuserId(String ref)
     Access the user id extracted from a user reference.
Parameters:
  ref - The user reference string.
public  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.
public  booleanwillArchiveMerge()
    

Field Detail
M_curUserKey
final protected String M_curUserKey(Code)
Key for current service caching of current user



m_anon
protected User m_anon(Code)
An anon. user.



m_cacheCleanerSeconds
protected int m_cacheCleanerSeconds(Code)
The # seconds to cache gets. 0 disables the cache.



m_cacheSeconds
protected int m_cacheSeconds(Code)
The # seconds to cache gets. 0 disables the cache.



m_callCache
protected Cache m_callCache(Code)
A cache of calls to the service and the results.



m_caseSensitiveEid
protected boolean m_caseSensitiveEid(Code)
Configuration: case sensitive user eid.



m_provider
protected UserDirectoryProvider m_provider(Code)
A user directory provider.



m_relativeAccessPoint
protected String m_relativeAccessPoint(Code)
The initial portion of a relative access point URL.



m_separateIdEid
protected boolean m_separateIdEid(Code)
Configuration: use a different id and eid for each record (otherwise make them the same value).



m_storage
protected Storage m_storage(Code)
Storage manager for this service.





Method Detail
addLiveProperties
protected void addLiveProperties(BaseUserEdit edit)(Code)
Create the live properties for the user.



addLiveUpdateProperties
protected void addLiveUpdateProperties(BaseUserEdit edit)(Code)
Update the live properties for a user for when modified.



addUser
public UserEdit addUser(String id, String eid) throws UserIdInvalidException, UserAlreadyDefinedException, UserPermissionException(Code)



addUser
public User addUser(String id, String eid, String firstName, String lastName, String email, String pw, String type, ResourceProperties properties) throws UserIdInvalidException, UserAlreadyDefinedException, UserPermissionException(Code)



allowAddUser
public boolean allowAddUser()(Code)



allowRemoveUser
public boolean allowRemoveUser(String id)(Code)



allowUpdateUser
public boolean allowUpdateUser(String id)(Code)



allowUpdateUserEmail
public boolean allowUpdateUserEmail(String id)(Code)



allowUpdateUserName
public boolean allowUpdateUserName(String id)(Code)



allowUpdateUserPassword
public boolean allowUpdateUserPassword(String id)(Code)



allowUpdateUserType
public boolean allowUpdateUserType(String id)(Code)



archive
public String archive(String siteId, Document doc, Stack stack, String archivePath, List attachments)(Code)



assureUuid
protected String assureUuid(String id, String eid)(Code)
Make sure we have a good uuid for a user record. If id is specified, use that. Otherwise get one from the provider or allocate a uuid.
Parameters:
  id - The proposed id.
Parameters:
  eid - The proposed eid. The id to use as the User's uuid.



authenticate
public User authenticate(String eid, String password)(Code)



authzGroupService
abstract protected AuthzGroupService authzGroupService()(Code)
the AuthzGroupService collaborator.



cancelEdit
public void cancelEdit(UserEdit user)(Code)



cleanEid
protected String cleanEid(String eid)(Code)
Adjust the eid - trim it to null, and lower case IF we are case insensitive.
Parameters:
  eid - The eid to clean up. A cleaned up eid.



cleanId
protected String cleanId(String id)(Code)
Adjust the id - trim it to null. Note: eid case insensitive option does NOT apply to id.
Parameters:
  id - The id to clean up. A cleaned up id.



commitEdit
public void commitEdit(UserEdit user) throws UserAlreadyDefinedException(Code)



countSearchUsers
public int countSearchUsers(String criteria)(Code)



countUsers
public int countUsers()(Code)



destroy
public void destroy()(Code)
Returns to uninitialized state. You can use this method to release resources thet your Service allocated when Turbine shuts down.



destroyAuthentication
public void destroyAuthentication()(Code)



editUser
public UserEdit editUser(String id) throws UserNotDefinedException, UserPermissionException, UserLockedException(Code)



entityManager
abstract protected EntityManager entityManager()(Code)
the EntityManager collaborator.



eventTrackingService
abstract protected EventTrackingService eventTrackingService()(Code)
the EventTrackingService collaborator.



findUsersByEmail
public Collection findUsersByEmail(String email)(Code)



functionManager
abstract protected FunctionManager functionManager()(Code)
the FunctionManager collaborator.



getAccessPoint
protected String getAccessPoint(boolean relative)(Code)
Access the partial URL that forms the root of resource URLs.
Parameters:
  relative - if true, form within the access path only (i.e. starting with /content) the partial URL that forms the root of resource URLs.



getAnonymousUser
public User getAnonymousUser()(Code)



getCurrentUser
public User getCurrentUser()(Code)



getDate
public Time getDate(Entity r)(Code)



getEntity
public Entity getEntity(Reference ref)(Code)



getEntityAuthzGroups
public Collection getEntityAuthzGroups(Reference ref, String userId)(Code)



getEntityDescription
public String getEntityDescription(Reference ref)(Code)



getEntityResourceProperties
public ResourceProperties getEntityResourceProperties(Reference ref)(Code)



getEntityUrl
public String getEntityUrl(Reference ref)(Code)



getHttpAccess
public HttpAccess getHttpAccess()(Code)



getLabel
public String getLabel()(Code)



getOwnerId
public String getOwnerId(Entity r)(Code)



getUser
public User getUser(String id) throws UserNotDefinedException(Code)



getUserByEid
public User getUserByEid(String eid) throws UserNotDefinedException(Code)



getUserEid
public String getUserEid(String id) throws UserNotDefinedException(Code)



getUserId
public String getUserId(String eid) throws UserNotDefinedException(Code)



getUsers
public List getUsers(Collection ids)(Code)



getUsers
public List getUsers()(Code)



getUsers
public List getUsers(int first, int last)(Code)



idManager
abstract protected IdManager idManager()(Code)
the IdManager collaborator.



init
public void init()(Code)
Final initialization, once all dependencies are set.



isDraft
public boolean isDraft(Entity r)(Code)



memoryService
abstract protected MemoryService memoryService()(Code)
the MemoryService collaborator.



merge
public String merge(String siteId, Element root, String archivePath, String fromSiteId, Map attachmentNames, Map userIdTrans, Set userListAllowImport)(Code)



mergeUser
public UserEdit mergeUser(Element el) throws UserIdInvalidException, UserAlreadyDefinedException, UserPermissionException(Code)



newContainer
public Entity newContainer(String ref)(Code)



newContainer
public Entity newContainer(Element element)(Code)



newContainer
public Entity newContainer(Entity other)(Code)



newContainerEdit
public Edit newContainerEdit(String ref)(Code)



newContainerEdit
public Edit newContainerEdit(Element element)(Code)



newContainerEdit
public Edit newContainerEdit(Entity other)(Code)



newResource
public Entity newResource(Entity container, String id, Object[] others)(Code)



newResource
public Entity newResource(Entity container, Element element)(Code)



newResource
public Entity newResource(Entity container, Entity other)(Code)



newResourceEdit
public Edit newResourceEdit(Entity container, String id, Object[] others)(Code)



newResourceEdit
public Edit newResourceEdit(Entity container, Element element)(Code)



newResourceEdit
public Edit newResourceEdit(Entity container, Entity other)(Code)



newStorage
abstract protected Storage newStorage()(Code)
Construct storage for this service.



newUser
public UserEdit newUser()(Code)



parseEntityReference
public boolean parseEntityReference(String reference, Reference ref)(Code)



removeUser
public void removeUser(UserEdit user) throws UserPermissionException(Code)



searchUsers
public List searchUsers(String criteria, int first, int last)(Code)



securityService
abstract protected SecurityService securityService()(Code)
the SecurityService collaborator.



serverConfigurationService
abstract protected ServerConfigurationService serverConfigurationService()(Code)
the ServerConfigurationService collaborator.



sessionManager
abstract protected SessionManager sessionManager()(Code)
the SessionManager collaborator.



setCacheCleanerMinutes
public void setCacheCleanerMinutes(String time)(Code)
Set the # minutes between cache cleanings.
Parameters:
  time - The # minutes between cache cleanings. (as an integer string).



setCacheMinutes
public void setCacheMinutes(String time)(Code)
Set the # minutes to cache a get.
Parameters:
  time - The # minutes to cache a get (as an integer string).



setCaseSensitiveId
public void setCaseSensitiveId(String value)(Code)
Configuration: case sensitive user eid
Parameters:
  value - The case sensitive user eid.



setProvider
public void setProvider(UserDirectoryProvider provider)(Code)
Configuration: set the user directory provider helper service.
Parameters:
  provider - the user directory provider helper service.



setSeparateIdEid
public void setSeparateIdEid(String value)(Code)
Configuration: to use a separate value for id and eid for each user record, or not.
Parameters:
  value - The separateIdEid setting.



storageFields
public Object[] storageFields(Entity r)(Code)



threadLocalManager
abstract protected ThreadLocalManager threadLocalManager()(Code)
the ThreadLocalManager collaborator.



timeService
abstract protected TimeService timeService()(Code)
the TimeService collaborator.



unlock
protected String unlock(String lock, String resource) throws UserPermissionException(Code)
Check security permission.
Parameters:
  lock - The lock id string.
Parameters:
  resource - The resource reference string, or null if no resource is involved.
exception:
  UserPermissionException - Thrown if the user does not have access The lock id string that succeeded



unlock
protected List unlock(List locks, String resource) throws UserPermissionException(Code)
Check security permission.
Parameters:
  locks - The list of lock strings.
Parameters:
  resource - The resource reference string, or null if no resource is involved.
exception:
  UserPermissionException - Thrown if the user does not have access to either. A list of the lock strings that the user has access to.



unlock2
protected void unlock2(String lock1, String lock2, String resource) throws UserPermissionException(Code)
Check security permission.
Parameters:
  lock1 - The lock id string.
Parameters:
  lock2 - The lock id string.
Parameters:
  resource - The resource reference string, or null if no resource is involved.
exception:
  UserPermissionException - Thrown if the user does not have access to either.



unlockCheck
protected boolean unlockCheck(String lock, String resource)(Code)
Check security permission.
Parameters:
  lock - The lock id string.
Parameters:
  resource - The resource reference string, or null if no resource is involved. true if allowd, false if not



unlockCheck
protected boolean unlockCheck(List locks, String resource)(Code)
Check security permission.
Parameters:
  lock - A list of lock strings to consider.
Parameters:
  resource - The resource reference string, or null if no resource is involved. true if any of these locks are allowed, false if not



unlockCheck2
protected boolean unlockCheck2(String lock1, String lock2, String resource)(Code)
Check security permission.
Parameters:
  lock1 - The lock id string.
Parameters:
  lock2 - The lock id string.
Parameters:
  resource - The resource reference string, or null if no resource is involved. true if either allowed, false if not



userId
protected String userId(String ref)(Code)
Access the user id extracted from a user reference.
Parameters:
  ref - The user reference string. The the user id extracted from a user reference.



userReference
public 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.



willArchiveMerge
public boolean willArchiveMerge()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.