public interface ContentReferenceHandler
ContentReference objects.| Modifier and Type | Method and Description |
|---|---|
ContentReference |
createContentReference(String fileName,
String mediaType)
Creates a content reference of the given file name and media type.
|
void |
delete(ContentReference contentReference)
Deletes the given content reference
|
InputStream |
getInputStream(ContentReference contentReference,
boolean waitForAvailability)
Gets an input stream for the given content reference
|
boolean |
isAvailable()
Determines whether or not the handler is currently available, i.e.
|
boolean |
isContentReferenceSupported(ContentReference contentReference)
Determines whether the given content reference is supported by the handler
|
long |
putInputStream(InputStream sourceInputStream,
ContentReference targetContentReference)
Writes the given source input stream into the given target content reference.
|
boolean isContentReferenceSupported(ContentReference contentReference)
contentReference - ContentReference createContentReference(String fileName, String mediaType) throws ContentIOException
fileName - mediaType - ContentIOExceptionInputStream getInputStream(ContentReference contentReference, boolean waitForAvailability) throws ContentIOException, InterruptedException
contentReference - waitForAvailability - whether or not to check and wait for availabilityContentIOExceptionInterruptedExceptionlong putInputStream(InputStream sourceInputStream, ContentReference targetContentReference) throws ContentIOException
Implementations should close both streams.
sourceInputStream - targetContentReference - ContentIOExceptionvoid delete(ContentReference contentReference) throws ContentIOException
contentReference - ContentIOExceptionboolean isAvailable()
Copyright © 2014 Alfresco Software. All rights reserved.