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

java.lang.Object
  extended byorg.outerj.daisy.repository.commonimpl.user.UserCache
All Implemented Interfaces:
org.outerj.daisy.repository.RepositoryListener

public class UserCache
extends java.lang.Object
implements org.outerj.daisy.repository.RepositoryListener


Constructor Summary
UserCache(UserManagementStrategy userManagementStrategy, AuthenticatedUser systemUser)
           
 
Method Summary
 RoleImpl getRole(long roleId)
           
 RoleImpl getRole(java.lang.String roleName)
           
 UserImpl getUser(long userId)
           
 UserImpl getUser(java.lang.String login)
           
 void repositoryEvent(org.outerj.daisy.repository.RepositoryEventType eventType, long id, long updateCount)
           
 void variantEvent(org.outerj.daisy.repository.DocumentVariantEventType eventType, long documentId, long branchId, long languageId, long updateCount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserCache

public UserCache(UserManagementStrategy userManagementStrategy,
                 AuthenticatedUser systemUser)
Method Detail

getUser

public UserImpl getUser(long userId)
                 throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getUser

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

getRole

public RoleImpl getRole(long roleId)
                 throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getRole

public RoleImpl getRole(java.lang.String roleName)
                 throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

repositoryEvent

public void repositoryEvent(org.outerj.daisy.repository.RepositoryEventType eventType,
                            long id,
                            long updateCount)
Specified by:
repositoryEvent in interface org.outerj.daisy.repository.RepositoryListener

variantEvent

public void variantEvent(org.outerj.daisy.repository.DocumentVariantEventType eventType,
                         long documentId,
                         long branchId,
                         long languageId,
                         long updateCount)
Specified by:
variantEvent in interface org.outerj.daisy.repository.RepositoryListener


Copyright © -2005 . All Rights Reserved.