| 1 16 package org.outerj.daisy.books.store; 17 18 import org.outerx.daisy.x10Bookstoremeta.ResourcePropertiesDocument; 19 20 import java.io.InputStream ; 21 import java.io.OutputStream ; 22 import java.io.IOException ; 23 import java.net.URI ; 24 25 public interface BookInstance { 26 String getName(); 27 28 35 InputStream getResource(String path); 36 37 40 ResourcePropertiesDocument getResourceProperties(String path); 41 42 48 void storeResource(String path, InputStream is); 49 50 void storeResourceProperties(String path, ResourcePropertiesDocument resourcePropertiesDocument); 51 52 60 OutputStream getResourceOutputStream(String path) throws IOException ; 61 62 boolean rename(String path, String newName); 63 64 boolean exists(String path); 65 66 long getLastModified(String path); 67 68 long getContentLength(String path); 69 70 void lock(); 71 72 void unlock(); 73 74 BookAcl getAcl(); 75 76 void setAcl(BookAcl bookAcl); 77 78 81 boolean canManage(); 82 83 PublicationsInfo getPublicationsInfo(); 84 85 void addPublication(PublicationInfo publicationInfo); 86 87 void setPublications(PublicationsInfo publicationsInfo); 88 89 92 URI getResourceURI(String path); 93 94 98 BookInstanceMetaData getMetaData(); 99 100 void setMetaData(BookInstanceMetaData metaData); 101 102 String [] getDescendantPaths(String path); 103 } 104 | Popular Tags |