1 16 package org.outerj.daisy.repository.commonimpl; 17 18 import org.outerj.daisy.repository.RepositoryException; 19 20 import java.util.Collection ; 21 22 public interface CollectionStrategy { 23 27 public void store(DocumentCollectionImpl collection) throws RepositoryException; 28 29 36 public DocumentCollectionImpl loadCollection(long collectionId, AuthenticatedUser user) throws RepositoryException; 37 38 public DocumentCollectionImpl loadCollectionByName(String name, AuthenticatedUser user) throws RepositoryException; 39 40 45 public Collection loadCollections(AuthenticatedUser user) throws RepositoryException; 46 47 53 public void deleteCollection(long collectionId, AuthenticatedUser user) throws RepositoryException; 54 } 55 | Popular Tags |