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

java.lang.Object
  extended by org.outerj.daisy.repository.commonimpl.variant.CommonVariantManager

public class CommonVariantManager
extends java.lang.Object


Constructor Summary
CommonVariantManager(VariantStrategy strategy, VariantCache cache)
           
 
Method Summary
 org.outerj.daisy.repository.variant.Branch createBranch(java.lang.String name, AuthenticatedUser user)
           
 org.outerj.daisy.repository.variant.Language createLanguage(java.lang.String name, AuthenticatedUser user)
           
 void deleteBranch(long id, AuthenticatedUser user)
           
 void deleteLanguage(long id, AuthenticatedUser user)
           
 org.outerj.daisy.repository.variant.Branches getAllBranches(boolean updateable, AuthenticatedUser user)
           
 org.outerj.daisy.repository.variant.Languages getAllLanguages(boolean updateable, AuthenticatedUser user)
           
 org.outerj.daisy.repository.variant.Branch getBranch(long id, boolean updateable, AuthenticatedUser user)
           
 org.outerj.daisy.repository.variant.Branch getBranch(java.lang.String branch, boolean updateable, AuthenticatedUser user)
           
 org.outerj.daisy.repository.variant.Branch getBranchByName(java.lang.String name, boolean updateable, AuthenticatedUser user)
           
 org.outerj.daisy.repository.RepositoryListener getCacheListener()
           
 org.outerj.daisy.repository.variant.Language getLanguage(long id, boolean updateable, AuthenticatedUser user)
           
 org.outerj.daisy.repository.variant.Language getLanguage(java.lang.String language, boolean updateable, AuthenticatedUser user)
           
 org.outerj.daisy.repository.variant.Language getLanguageByName(java.lang.String name, boolean updateable, AuthenticatedUser user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonVariantManager

public CommonVariantManager(VariantStrategy strategy,
                            VariantCache cache)
Method Detail

getCacheListener

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

createBranch

public org.outerj.daisy.repository.variant.Branch createBranch(java.lang.String name,
                                                               AuthenticatedUser user)

getBranch

public org.outerj.daisy.repository.variant.Branch getBranch(long id,
                                                            boolean updateable,
                                                            AuthenticatedUser user)
                                                     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,
                                                                  boolean updateable,
                                                                  AuthenticatedUser user)
                                                           throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getBranch

public org.outerj.daisy.repository.variant.Branch getBranch(java.lang.String branch,
                                                            boolean updateable,
                                                            AuthenticatedUser user)
                                                     throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getAllBranches

public org.outerj.daisy.repository.variant.Branches getAllBranches(boolean updateable,
                                                                   AuthenticatedUser user)
                                                            throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

deleteBranch

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

createLanguage

public org.outerj.daisy.repository.variant.Language createLanguage(java.lang.String name,
                                                                   AuthenticatedUser user)

getLanguage

public org.outerj.daisy.repository.variant.Language getLanguage(long id,
                                                                boolean updateable,
                                                                AuthenticatedUser user)
                                                         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,
                                                                      boolean updateable,
                                                                      AuthenticatedUser user)
                                                               throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getLanguage

public org.outerj.daisy.repository.variant.Language getLanguage(java.lang.String language,
                                                                boolean updateable,
                                                                AuthenticatedUser user)
                                                         throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getAllLanguages

public org.outerj.daisy.repository.variant.Languages getAllLanguages(boolean updateable,
                                                                     AuthenticatedUser user)
                                                              throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

deleteLanguage

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


Copyright © -2012 . All Rights Reserved.