public interface Storage extends Service, StorageTypes
Storage
is a resource that represents a specific instance of a file
stored on a storage backing. Unlike File
, which is abstract, storage represents
concrete files on the various storage backings. A file is only represented once
in File
, but will be represented
multiple times (once for each storage backing) in Storage
. The Storage
interface provides information on the storage backing and the specific
location of the file in that backing to privileged users who want direct access
to the file on the storage medium.StorageTypes.Info
_VAPI_SERVICE_ID
Modifier and Type | Method and Description |
---|---|
java.util.List<StorageTypes.Info> |
get(java.lang.String libraryItemId,
java.lang.String fileName)
Retrieves the storage information for a specific file in a library item.
|
void |
get(java.lang.String libraryItemId,
java.lang.String fileName,
AsyncCallback<java.util.List<StorageTypes.Info>> asyncCallback)
Retrieves the storage information for a specific file in a library item.
|
void |
get(java.lang.String libraryItemId,
java.lang.String fileName,
AsyncCallback<java.util.List<StorageTypes.Info>> asyncCallback,
InvocationConfig invocationConfig)
Retrieves the storage information for a specific file in a library item.
|
java.util.List<StorageTypes.Info> |
get(java.lang.String libraryItemId,
java.lang.String fileName,
InvocationConfig invocationConfig)
Retrieves the storage information for a specific file in a library item.
|
java.util.List<StorageTypes.Info> |
list(java.lang.String libraryItemId)
Lists all storage items for a given library item.
|
void |
list(java.lang.String libraryItemId,
AsyncCallback<java.util.List<StorageTypes.Info>> asyncCallback)
Lists all storage items for a given library item.
|
void |
list(java.lang.String libraryItemId,
AsyncCallback<java.util.List<StorageTypes.Info>> asyncCallback,
InvocationConfig invocationConfig)
Lists all storage items for a given library item.
|
java.util.List<StorageTypes.Info> |
list(java.lang.String libraryItemId,
InvocationConfig invocationConfig)
Lists all storage items for a given library item.
|
java.util.List<StorageTypes.Info> get(java.lang.String libraryItemId, java.lang.String fileName)
Synchronous method overload. Result of the invocation will be reported as a method return value.
libraryItemId
- Identifier of the library item whose storage information should be retrieved.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.fileName
- Name of the file for which the storage information should be listed.List
of all the storage items for the given file within
the given library item.NotFound
- if the specified library item does not exist.NotFound
- if the specified file does not exist in the given library item.Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.content.library.Item
referenced by the parameter
libraryItemId
requires ContentLibrary.ReadStorage
. java.util.List<StorageTypes.Info> get(java.lang.String libraryItemId, java.lang.String fileName, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
libraryItemId
- Identifier of the library item whose storage information should be retrieved.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.fileName
- Name of the file for which the storage information should be listed.invocationConfig
- Configuration for the method invocation.List
of all the storage items for the given file within
the given library item.NotFound
- if the specified library item does not exist.NotFound
- if the specified file does not exist in the given library item.Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.content.library.Item
referenced by the parameter
libraryItemId
requires ContentLibrary.ReadStorage
. void get(java.lang.String libraryItemId, java.lang.String fileName, AsyncCallback<java.util.List<StorageTypes.Info>> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
The List
of all the storage items for the given file within
the given library item.
Operation Errors:
NotFound
- if the specified library item does not exist.
NotFound
- if the specified file does not exist in the given library item.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.content.library.Item
referenced by the parameter
libraryItemId
requires ContentLibrary.ReadStorage
. libraryItemId
- Identifier of the library item whose storage information should be retrieved.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.fileName
- Name of the file for which the storage information should be listed.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String libraryItemId, java.lang.String fileName, AsyncCallback<java.util.List<StorageTypes.Info>> asyncCallback, InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
The List
of all the storage items for the given file within
the given library item.
Operation Errors:
NotFound
- if the specified library item does not exist.
NotFound
- if the specified file does not exist in the given library item.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.content.library.Item
referenced by the parameter
libraryItemId
requires ContentLibrary.ReadStorage
. libraryItemId
- Identifier of the library item whose storage information should be retrieved.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.fileName
- Name of the file for which the storage information should be listed.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.java.util.List<StorageTypes.Info> list(java.lang.String libraryItemId)
Synchronous method overload. Result of the invocation will be reported as a method return value.
libraryItemId
- Identifier of the library item whose storage information should be listed.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.List
of all storage items for a given library item.NotFound
- if the specified library item does not exist.Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.content.library.Item
referenced by the parameter
libraryItemId
requires ContentLibrary.ReadStorage
. java.util.List<StorageTypes.Info> list(java.lang.String libraryItemId, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
libraryItemId
- Identifier of the library item whose storage information should be listed.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.invocationConfig
- Configuration for the method invocation.List
of all storage items for a given library item.NotFound
- if the specified library item does not exist.Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.content.library.Item
referenced by the parameter
libraryItemId
requires ContentLibrary.ReadStorage
. void list(java.lang.String libraryItemId, AsyncCallback<java.util.List<StorageTypes.Info>> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
The List
of all storage items for a given library item.
Operation Errors:
NotFound
- if the specified library item does not exist.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.content.library.Item
referenced by the parameter
libraryItemId
requires ContentLibrary.ReadStorage
. libraryItemId
- Identifier of the library item whose storage information should be listed.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(java.lang.String libraryItemId, AsyncCallback<java.util.List<StorageTypes.Info>> asyncCallback, InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
The List
of all storage items for a given library item.
Operation Errors:
NotFound
- if the specified library item does not exist.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.content.library.Item
referenced by the parameter
libraryItemId
requires ContentLibrary.ReadStorage
. libraryItemId
- Identifier of the library item whose storage information should be listed.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.