|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BookInstance
| Method Summary | |
|---|---|
void |
addPublication(PublicationInfo publicationInfo)
|
boolean |
canManage()
Returns true if the user can perform management operations on this book instance. |
boolean |
exists(java.lang.String path)
|
BookAcl |
getAcl()
|
long |
getContentLength(java.lang.String path)
|
java.lang.String[] |
getDescendantPaths(java.lang.String path)
|
long |
getLastModified(java.lang.String path)
|
BookInstanceMetaData |
getMetaData()
Note: while this returns a mutable object, it is a clone of the original and any changed performed on it will not have effect. |
java.lang.String |
getName()
|
PublicationsInfo |
getPublicationsInfo()
|
java.io.InputStream |
getResource(java.lang.String path)
Returns a stream for the given resource. |
java.io.OutputStream |
getResourceOutputStream(java.lang.String path)
Get an output stream to store a resource in the book instance. |
org.outerx.daisy.x10Bookstoremeta.ResourcePropertiesDocument |
getResourceProperties(java.lang.String path)
Returns null if not available. |
java.net.URI |
getResourceURI(java.lang.String path)
Returns a Java URI that can be used to retrieve the resource. |
void |
lock()
|
boolean |
rename(java.lang.String path,
java.lang.String newName)
|
void |
setAcl(BookAcl bookAcl)
|
void |
setMetaData(BookInstanceMetaData metaData)
|
void |
setPublications(PublicationsInfo publicationsInfo)
|
void |
storeResource(java.lang.String path,
java.io.InputStream is)
Stores a resource under the given path. |
void |
storeResourceProperties(java.lang.String path,
org.outerx.daisy.x10Bookstoremeta.ResourcePropertiesDocument resourcePropertiesDocument)
|
void |
unlock()
|
| Method Detail |
|---|
java.lang.String getName()
java.io.InputStream getResource(java.lang.String path)
Throws a BookResourceNotFoundException if the path does not exist.
It is the callers' responsibility to close this stream!
org.outerx.daisy.x10Bookstoremeta.ResourcePropertiesDocument getResourceProperties(java.lang.String path)
void storeResource(java.lang.String path,
java.io.InputStream is)
The implementation of this method is required to close the input stream, even if an exception occurs.
void storeResourceProperties(java.lang.String path,
org.outerx.daisy.x10Bookstoremeta.ResourcePropertiesDocument resourcePropertiesDocument)
java.io.OutputStream getResourceOutputStream(java.lang.String path)
throws java.io.IOException
This will return a buffered stream if necessary, no need to wrap it into a BufferedOutputStream yourself.
It is the callers' responsibility to close this stream!
java.io.IOException
boolean rename(java.lang.String path,
java.lang.String newName)
boolean exists(java.lang.String path)
long getLastModified(java.lang.String path)
long getContentLength(java.lang.String path)
void lock()
void unlock()
BookAcl getAcl()
void setAcl(BookAcl bookAcl)
boolean canManage()
PublicationsInfo getPublicationsInfo()
void addPublication(PublicationInfo publicationInfo)
void setPublications(PublicationsInfo publicationsInfo)
java.net.URI getResourceURI(java.lang.String path)
BookInstanceMetaData getMetaData()
void setMetaData(BookInstanceMetaData metaData)
java.lang.String[] getDescendantPaths(java.lang.String path)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||