|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IStorageAdapter
Common interface to all Storage providers.
Method Summary | |
---|---|
void |
copyItem(java.lang.String sourcePath,
java.lang.String destinationPath,
java.util.Map<java.lang.Object,java.lang.Object> options)
Copies an item from one location to another location. |
void |
deleteItem(java.lang.String path,
java.util.Map<java.lang.Object,java.lang.Object> options)
Deletes an item from the storage provider. |
void |
deleteMetadata(java.lang.String path,
java.util.Map<java.lang.Object,java.lang.Object> options)
Deletes metadata associated with an item. |
IItem |
fetchItem(java.lang.String path,
java.util.Map<java.lang.Object,java.lang.Object> options)
Fetches an item from the storage provider. |
java.util.Map<java.lang.String,java.lang.String> |
fetchMetadata(java.lang.String path,
java.util.Map<java.lang.Object,java.lang.Object> options)
Fetches the metadata of an item. |
java.util.List<java.lang.String> |
listItems(java.lang.String path,
java.util.Map<java.lang.Object,java.lang.Object> options)
Lists the items at the given path. |
void |
moveItem(java.lang.String sourcePath,
java.lang.String destinationPath,
java.util.Map<java.lang.Object,java.lang.Object> options)
Moves an item from one location to another location. |
void |
renameItem(java.lang.String path,
java.lang.String name,
java.util.Map<java.lang.Object,java.lang.Object> options)
Renames an item. |
boolean |
storeItem(java.lang.String destinationPath,
IItem item,
java.util.Map<java.lang.String,java.lang.String> metadata,
java.util.Map<java.lang.Object,java.lang.Object> options)
Stores an item with the storage provider. |
void |
storeMetadata(java.lang.String destinationPath,
java.util.Map<java.lang.String,java.lang.String> metadata,
java.util.Map<java.lang.Object,java.lang.Object> options)
Stores metadata for an item. |
Method Detail |
---|
IItem fetchItem(java.lang.String path, java.util.Map<java.lang.Object,java.lang.Object> options)
path
- is the path to the item to fetchoptions
- are provider-specific options for fetching the item
boolean storeItem(java.lang.String destinationPath, IItem item, java.util.Map<java.lang.String,java.lang.String> metadata, java.util.Map<java.lang.Object,java.lang.Object> options)
destinationPath
- is the path to store the item atitem
- is the content to store on the providermetadata
- is metadata to associate with the itemoptions
- are provider-specific options for storing the item
void deleteItem(java.lang.String path, java.util.Map<java.lang.Object,java.lang.Object> options)
path
- is the path to the item to deleteoptions
- are provider-specific options for deleting the itemvoid copyItem(java.lang.String sourcePath, java.lang.String destinationPath, java.util.Map<java.lang.Object,java.lang.Object> options)
sourcePath
- is the path to the item to copydestinationPath
- is the destination path for the item's copyoptions
- are provider-specific options for copying the itemvoid moveItem(java.lang.String sourcePath, java.lang.String destinationPath, java.util.Map<java.lang.Object,java.lang.Object> options)
sourcePath
- is the path to the item to movedestinationPath
- is the item's new destinationoptions
- are provider specific-options for moving the itemvoid renameItem(java.lang.String path, java.lang.String name, java.util.Map<java.lang.Object,java.lang.Object> options)
path
- is the path to the item to renamename
- is the new name of the itemoptions
- are provider-specific options for renaming the itemjava.util.List<java.lang.String> listItems(java.lang.String path, java.util.Map<java.lang.Object,java.lang.Object> options)
path
- identifies the directory to list the contents ofoptions
- are provider-specific options for listing the contents
java.util.Map<java.lang.String,java.lang.String> fetchMetadata(java.lang.String path, java.util.Map<java.lang.Object,java.lang.Object> options)
path
- identifies the item to fetch the metadata foroptions
- are provider-specific options for fetching the metadata
void storeMetadata(java.lang.String destinationPath, java.util.Map<java.lang.String,java.lang.String> metadata, java.util.Map<java.lang.Object,java.lang.Object> options)
destinationPath
- identifies the item to associate with the metadatametadata
- are the key/value pairs composing the item's metadataoptions
- are provider-specific options for storing the metadatavoid deleteMetadata(java.lang.String path, java.util.Map<java.lang.Object,java.lang.Object> options)
path
- identifies the item to delete the metadata fromoptions
- are provider-specific options for deleting the metadata
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |