public interface ContentStorage
Modifier and Type | Method and Description |
---|---|
ContentObject |
createContentObject(InputStream contentStream,
Long lengthHint) |
void |
deleteContentObject(String id)
Deletes the object the given id.
|
ContentObject |
getContentObject(String id) |
ContentObject |
updateContentObject(String id,
InputStream contentStream,
Long lengthHint)
Update the content with the given id to the content present in the given stream.
|
ContentObject createContentObject(InputStream contentStream, Long lengthHint)
lengthHint
- hint about the stream length. If length is unknown, pass in null or a negative number.InputStream
and stores it. Returns a ContentObject
with a unique id generated - which can be
used for reading the content again.ContentObject updateContentObject(String id, InputStream contentStream, Long lengthHint)
lengthHint
- hint about the stream length. If length is unknown, pass in null or a negative number.ContentObject
with a unique id generated - which can br used for reading the content again.ContentStorageException
- When an exception occurred while updating the content and the content
is not updated.ContentObject getContentObject(String id)
ContentObject
with the given id.ContentNotFoundException
- When the content with the given id does not existvoid deleteContentObject(String id)
ContentNotFoundException
- When the content with the given id does not existContentStorageException
- When an error occurred while deleting the content.Copyright © 2014–2015 Alfresco. All rights reserved.