public interface File extends Service, FileTypes
File
interface can be used to query for information on the files
within a library item. Files are objects which are added to a library item
through the UpdateSession
and File
interfaces.FileTypes.ChecksumAlgorithm, FileTypes.ChecksumInfo, FileTypes.Info
_VAPI_SERVICE_ID
Modifier and Type | Method and Description |
---|---|
FileTypes.Info |
get(java.lang.String libraryItemId,
java.lang.String name)
Retrieves the information for a single file in a library item by its name.
|
void |
get(java.lang.String libraryItemId,
java.lang.String name,
AsyncCallback<FileTypes.Info> asyncCallback)
Retrieves the information for a single file in a library item by its name.
|
void |
get(java.lang.String libraryItemId,
java.lang.String name,
AsyncCallback<FileTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Retrieves the information for a single file in a library item by its name.
|
FileTypes.Info |
get(java.lang.String libraryItemId,
java.lang.String name,
InvocationConfig invocationConfig)
Retrieves the information for a single file in a library item by its name.
|
java.util.List<FileTypes.Info> |
list(java.lang.String libraryItemId)
Lists all of the files that are stored within a given library item.
|
void |
list(java.lang.String libraryItemId,
AsyncCallback<java.util.List<FileTypes.Info>> asyncCallback)
Lists all of the files that are stored within a given library item.
|
void |
list(java.lang.String libraryItemId,
AsyncCallback<java.util.List<FileTypes.Info>> asyncCallback,
InvocationConfig invocationConfig)
Lists all of the files that are stored within a given library item.
|
java.util.List<FileTypes.Info> |
list(java.lang.String libraryItemId,
InvocationConfig invocationConfig)
Lists all of the files that are stored within a given library item.
|
FileTypes.Info get(java.lang.String libraryItemId, java.lang.String name)
Synchronous method overload. Result of the invocation will be reported as a method return value.
libraryItemId
- Identifier of the library item whose file information should be returned.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.name
- Name of the file in the library item whose information should be returned.FileTypes.Info
object with
information on the specified file.NotFound
- if libraryItemId
refers to a library item that does not exist.NotFound
- if name
refers to a file that does not exist in the 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 System.Read
. FileTypes.Info get(java.lang.String libraryItemId, java.lang.String name, 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 file information should be returned.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.name
- Name of the file in the library item whose information should be returned.invocationConfig
- Configuration for the method invocation.FileTypes.Info
object with
information on the specified file.NotFound
- if libraryItemId
refers to a library item that does not exist.NotFound
- if name
refers to a file that does not exist in the 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 System.Read
. void get(java.lang.String libraryItemId, java.lang.String name, AsyncCallback<FileTypes.Info> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
The FileTypes.Info
object with
information on the specified file.
Operation Errors:
NotFound
- if libraryItemId
refers to a library item that does not exist.
NotFound
- if name
refers to a file that does not exist in the 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 System.Read
. libraryItemId
- Identifier of the library item whose file information should be returned.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.name
- Name of the file in the library item whose information should be returned.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String libraryItemId, java.lang.String name, AsyncCallback<FileTypes.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 FileTypes.Info
object with
information on the specified file.
Operation Errors:
NotFound
- if libraryItemId
refers to a library item that does not exist.
NotFound
- if name
refers to a file that does not exist in the 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 System.Read
. libraryItemId
- Identifier of the library item whose file information should be returned.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.name
- Name of the file in the library item whose information should be returned.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.java.util.List<FileTypes.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 files should be listed.
The parameter must be an identifier for the resource type: com.vmware.content.library.Item
.List
of all of the files that are stored within the given
library item.NotFound
- if libraryItemId
refers to a library item that 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 System.Read
. java.util.List<FileTypes.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 files 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 of the files that are stored within the given
library item.NotFound
- if libraryItemId
refers to a library item that 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 System.Read
. void list(java.lang.String libraryItemId, AsyncCallback<java.util.List<FileTypes.Info>> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
The List
of all of the files that are stored within the given
library item.
Operation Errors:
NotFound
- if libraryItemId
refers to a library item that 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 System.Read
. libraryItemId
- Identifier of the library item whose files 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<FileTypes.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 of the files that are stored within the given
library item.
Operation Errors:
NotFound
- if libraryItemId
refers to a library item that 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 System.Read
. libraryItemId
- Identifier of the library item whose files 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.