1 15 package org.openedit.repository; 16 17 import java.util.List ; 18 19 20 21 27 public interface Repository 28 { 29 32 ContentItem get( String inPath ) throws RepositoryException; 33 ContentItem getStub( String inPath ) throws RepositoryException; 34 35 boolean doesExist( String inPath) throws RepositoryException; 36 37 void put( ContentItem inContent ) throws RepositoryException; 38 39 void copy( ContentItem inSource, ContentItem inDestination ) throws RepositoryException; 40 41 void move( ContentItem inSource, ContentItem inDestination ) throws RepositoryException; 42 43 void remove( ContentItem inPath ) throws RepositoryException; 44 45 48 List getVersions( String inPath ) throws RepositoryException; 49 50 public ContentItem getLastVersion(String inPath) throws RepositoryException; 51 52 List getChildrenNames(String inParent) throws RepositoryException; 53 void deleteOldVersions(String inPath) throws RepositoryException; 54 } 55 | Popular Tags |