org.outerj.daisy.repository.commonimpl
Class CollectionCache

java.lang.Object
  extended by org.outerj.daisy.repository.commonimpl.CollectionCache
All Implemented Interfaces:
org.outerj.daisy.repository.RepositoryListener

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


Constructor Summary
CollectionCache(CollectionStrategy collectionStrategy, AuthenticatedUser systemUser)
           
 
Method Summary
 void assureCacheLoaded()
           
 DocumentCollectionImpl getCollection(long id)
           
 DocumentCollectionImpl getCollectionByName(java.lang.String name)
           
 org.outerj.daisy.repository.DocumentCollections getCollections()
           
 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

CollectionCache

public CollectionCache(CollectionStrategy collectionStrategy,
                       AuthenticatedUser systemUser)
Method Detail

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

assureCacheLoaded

public void assureCacheLoaded()
                       throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getCollection

public DocumentCollectionImpl getCollection(long id)
                                     throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getCollectionByName

public DocumentCollectionImpl getCollectionByName(java.lang.String name)
                                           throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getCollections

public org.outerj.daisy.repository.DocumentCollections getCollections()
                                                               throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException


Copyright © -2012 . All Rights Reserved.