org.outerj.daisy.repository.commonimpl.user
Class CommonUserManager

java.lang.Object
  extended by org.outerj.daisy.repository.commonimpl.user.CommonUserManager

public class CommonUserManager
extends java.lang.Object


Constructor Summary
CommonUserManager(UserManagementStrategy userManagementStrategy, UserCache userCache)
           
 
Method Summary
 org.outerj.daisy.repository.user.Role createRole(java.lang.String roleName, AuthenticatedUser user)
           
 org.outerj.daisy.repository.user.User createUser(java.lang.String login, AuthenticatedUser user)
           
 void deleteRole(long roleId, AuthenticatedUser user)
           
 void deleteUser(long userId, AuthenticatedUser user)
           
 org.outerj.daisy.repository.user.AuthenticationSchemeInfos getAuthenticationSchemes(AuthenticatedUser user)
           
 org.outerj.daisy.repository.RepositoryListener getCacheListener()
           
 org.outerx.daisy.x10.PublicUserInfoDocument getPublicUserInfo(long userId)
           
 org.outerx.daisy.x10.PublicUserInfosDocument getPublicUserInfos(AuthenticatedUser user)
           
 org.outerj.daisy.repository.user.Role getRole(long roleId, boolean updateable, AuthenticatedUser user)
           
 org.outerj.daisy.repository.user.Role getRole(java.lang.String name, boolean updateable, AuthenticatedUser user)
           
 java.lang.String getRoleDisplayName(long roleId)
           
 org.outerj.daisy.repository.user.Roles getRoles(AuthenticatedUser user)
           
 org.outerj.daisy.repository.user.User getUser(long userId, boolean updateable, AuthenticatedUser user)
           
 org.outerj.daisy.repository.user.User getUser(java.lang.String login, boolean updateable, AuthenticatedUser user)
           
 java.lang.String getUserDisplayName(long userId)
           
 long getUserId(java.lang.String login)
           
 long[] getUserIds(AuthenticatedUser user)
           
 java.lang.String getUserLogin(long userId)
           
 org.outerj.daisy.repository.user.Users getUsers(AuthenticatedUser user)
           
 org.outerj.daisy.repository.user.Users getUsersByEmail(java.lang.String email, AuthenticatedUser user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonUserManager

public CommonUserManager(UserManagementStrategy userManagementStrategy,
                         UserCache userCache)
Method Detail

getCacheListener

public org.outerj.daisy.repository.RepositoryListener getCacheListener()

getUsers

public org.outerj.daisy.repository.user.Users getUsers(AuthenticatedUser user)
                                                throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getUserIds

public long[] getUserIds(AuthenticatedUser user)
                  throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getPublicUserInfo

public org.outerx.daisy.x10.PublicUserInfoDocument getPublicUserInfo(long userId)
                                                              throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getPublicUserInfos

public org.outerx.daisy.x10.PublicUserInfosDocument getPublicUserInfos(AuthenticatedUser user)
                                                                throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getRoles

public org.outerj.daisy.repository.user.Roles getRoles(AuthenticatedUser user)
                                                throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

createUser

public org.outerj.daisy.repository.user.User createUser(java.lang.String login,
                                                        AuthenticatedUser user)

deleteUser

public void deleteUser(long userId,
                       AuthenticatedUser user)
                throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

createRole

public org.outerj.daisy.repository.user.Role createRole(java.lang.String roleName,
                                                        AuthenticatedUser user)

deleteRole

public void deleteRole(long roleId,
                       AuthenticatedUser user)
                throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getUser

public org.outerj.daisy.repository.user.User getUser(java.lang.String login,
                                                     boolean updateable,
                                                     AuthenticatedUser user)
                                              throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getRole

public org.outerj.daisy.repository.user.Role getRole(java.lang.String name,
                                                     boolean updateable,
                                                     AuthenticatedUser user)
                                              throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getUser

public org.outerj.daisy.repository.user.User getUser(long userId,
                                                     boolean updateable,
                                                     AuthenticatedUser user)
                                              throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getRole

public org.outerj.daisy.repository.user.Role getRole(long roleId,
                                                     boolean updateable,
                                                     AuthenticatedUser user)
                                              throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getUserDisplayName

public java.lang.String getUserDisplayName(long userId)
                                    throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getUserLogin

public java.lang.String getUserLogin(long userId)
                              throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getUserId

public long getUserId(java.lang.String login)
               throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getRoleDisplayName

public java.lang.String getRoleDisplayName(long roleId)
                                    throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getUsersByEmail

public org.outerj.daisy.repository.user.Users getUsersByEmail(java.lang.String email,
                                                              AuthenticatedUser user)
                                                       throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getAuthenticationSchemes

public org.outerj.daisy.repository.user.AuthenticationSchemeInfos getAuthenticationSchemes(AuthenticatedUser user)
                                                                                    throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException


Copyright © -2012 . All Rights Reserved.