org.outerj.daisy.repository.commonimpl.variant
Class VariantCache

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

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


Constructor Summary
VariantCache(VariantStrategy variantStrategy, AuthenticatedUser cacheUser)
           
 
Method Summary
 org.outerj.daisy.repository.variant.Branch getBranch(long id)
           
 org.outerj.daisy.repository.variant.Branch getBranchByName(java.lang.String name)
           
 org.outerj.daisy.repository.variant.Branches getBranches()
           
 org.outerj.daisy.repository.variant.Language getLanguage(long id)
           
 org.outerj.daisy.repository.variant.Language getLanguageByName(java.lang.String name)
           
 org.outerj.daisy.repository.variant.Languages getLanguages()
           
 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

VariantCache

public VariantCache(VariantStrategy variantStrategy,
                    AuthenticatedUser cacheUser)
Method Detail

getBranch

public org.outerj.daisy.repository.variant.Branch getBranch(long id)
                                                     throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getBranchByName

public org.outerj.daisy.repository.variant.Branch getBranchByName(java.lang.String name)
                                                           throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getBranches

public org.outerj.daisy.repository.variant.Branches getBranches()
                                                         throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getLanguage

public org.outerj.daisy.repository.variant.Language getLanguage(long id)
                                                         throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getLanguageByName

public org.outerj.daisy.repository.variant.Language getLanguageByName(java.lang.String name)
                                                               throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getLanguages

public org.outerj.daisy.repository.variant.Languages getLanguages()
                                                           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.