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| Modifier and Type | Method and Description |
|---|---|
FileTypes.Info |
get(String libraryItemId,
String name)
Retrieves the information for a single file in a library item by its name.
|
void |
get(String libraryItemId,
String name,
AsyncCallback<FileTypes.Info> asyncCallback)
Retrieves the information for a single file in a library item by its name.
|
void |
get(String libraryItemId,
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(String libraryItemId,
String name,
InvocationConfig invocationConfig)
Retrieves the information for a single file in a library item by its name.
|
List<FileTypes.Info> |
list(String libraryItemId)
Lists all of the files that are stored within a given library item.
|
void |
list(String libraryItemId,
AsyncCallback<List<FileTypes.Info>> asyncCallback)
Lists all of the files that are stored within a given library item.
|
void |
list(String libraryItemId,
AsyncCallback<List<FileTypes.Info>> asyncCallback,
InvocationConfig invocationConfig)
Lists all of the files that are stored within a given library item.
|
List<FileTypes.Info> |
list(String libraryItemId,
InvocationConfig invocationConfig)
Lists all of the files that are stored within a given library item.
|
FileTypes.Info get(String libraryItemId, 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(String libraryItemId, 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(String libraryItemId, String name, AsyncCallback<FileTypes.Info> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation 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(String libraryItemId, 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.
Operation 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.List<FileTypes.Info> list(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. List<FileTypes.Info> list(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(String libraryItemId, AsyncCallback<List<FileTypes.Info>> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation 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(String libraryItemId, AsyncCallback<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.
Operation 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.Copyright © 2016. All Rights Reserved.