org.outerj.daisy.repository.commonimpl
Class CommonCollectionManager

java.lang.Object
  extended by org.outerj.daisy.repository.commonimpl.CommonCollectionManager

public class CommonCollectionManager
extends java.lang.Object

This class contains the same methods as the specific CollectionManager implementations, but has extra User arguments.


Constructor Summary
CommonCollectionManager(CollectionStrategy collectionStrategy, CollectionCache cache)
          create a CommonCollectionManager with a specified collectionStrategy.
 
Method Summary
 org.outerj.daisy.repository.DocumentCollection createCollection(java.lang.String name, AuthenticatedUser user)
           
 void deleteCollection(long collectionId, AuthenticatedUser user)
           
 CollectionCache getCache()
           
 org.outerj.daisy.repository.RepositoryListener getCacheListener()
           
 DocumentCollectionImpl getCollection(long collectionId, boolean updateable, AuthenticatedUser user)
           
 DocumentCollectionImpl getCollectionByName(java.lang.String name, boolean updateable, AuthenticatedUser user)
           
 org.outerj.daisy.repository.DocumentCollections getCollections(boolean updateable, AuthenticatedUser user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonCollectionManager

public CommonCollectionManager(CollectionStrategy collectionStrategy,
                               CollectionCache cache)
create a CommonCollectionManager with a specified collectionStrategy.

Method Detail

getCacheListener

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

getCache

public CollectionCache getCache()

createCollection

public org.outerj.daisy.repository.DocumentCollection createCollection(java.lang.String name,
                                                                       AuthenticatedUser user)
                                                                throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getCollection

public DocumentCollectionImpl getCollection(long collectionId,
                                            boolean updateable,
                                            AuthenticatedUser user)
                                     throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

getCollectionByName

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

getCollections

public org.outerj.daisy.repository.DocumentCollections getCollections(boolean updateable,
                                                                      AuthenticatedUser user)
                                                               throws org.outerj.daisy.repository.RepositoryException
Throws:
org.outerj.daisy.repository.RepositoryException

deleteCollection

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


Copyright © -2012 . All Rights Reserved.