|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RawFileContentManager
Manager for raw file content
Method Summary | |
---|---|
boolean |
deleteBinaryContent(RawContentLocation location,
BasicStorageHints hints)
Removes the binary content from storage |
boolean |
existsBinaryContent(RawContentLocation location,
BasicStorageHints hints)
Checks whether there is content at this location |
BaseLayerStream |
getBinaryContent(RawContentLocation location,
BasicStorageHints hints)
Opens the content for reading and passes the input stream to the caller |
java.lang.String |
getDataProvider()
|
java.lang.String |
getUniqueStorageLocationIDFor(java.lang.String objectID)
|
boolean |
handles(java.lang.String dataprovider)
Checks whether the RawFileContentManager can handle this data. |
RawContentLocation |
makePermanentLocation(RawContentLocation currentLocation,
BasicStorageHints hints)
Returns a raw location, which can be stored and retrieved later without the need to pass again all the hints. |
RawContentLocation |
saveBinaryContent(java.lang.String uniqueStorageID,
BaseLayerStream binaryFileContent,
BasicStorageHints hints)
Saves the passed binary content in the managed resource. |
boolean |
supportsAppending()
Tells whether this content manager supports appending content in addition to overwriting the content when storing |
Method Detail |
---|
RawContentLocation saveBinaryContent(java.lang.String uniqueStorageID, BaseLayerStream binaryFileContent, BasicStorageHints hints) throws BaseLayerException
binaryFileContent
- the content to storeuniqueStorageID
- a unique ID to as a hint where to store the contenthints
- the hints that should be used
BaseLayerException
- in case of failure of underlying storage systemBaseLayerStream getBinaryContent(RawContentLocation location, BasicStorageHints hints) throws BaseLayerException
location
- the RawContentLocation where the content is accessiblehints
- the hints that should be used
BaseLayerException
- in case of failure of underlying storage systemboolean deleteBinaryContent(RawContentLocation location, BasicStorageHints hints) throws BaseLayerException
location
- the RawContentLocation where the content is accessiblehints
- the hints that should be used
BaseLayerException
- in case of failure of underlying storage systemboolean existsBinaryContent(RawContentLocation location, BasicStorageHints hints) throws BaseLayerException
location
- the RawContentLocation where the content is accessible
BaseLayerException
- in case of failure of underlying storage systemboolean handles(java.lang.String dataprovider)
This means that it can handle the requests for content stored at this dataprovider. In the ideal case, this also checks if it has all required access rights. But this cannot be enforced as a strong requirement before the actual calls take place.
dataprovider
-
java.lang.String getDataProvider()
boolean supportsAppending()
BasicStorageHints#HINT_NAME_APPEND_CONTENT
RawContentLocation makePermanentLocation(RawContentLocation currentLocation, BasicStorageHints hints) throws ValueNotValidException
This is of particular interest for username / password combinations.
currentLocation
- the location, where content can be accessed currently (may
require information from the hints)hints
- hints, that may be needed to request the content
ValueNotValidException
- If some hints was not defined correctly or there is no
possibility to include that in the permanent location.java.lang.String getUniqueStorageLocationIDFor(java.lang.String objectID)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |