FileTypes.EndpointType, FileTypes.Info, FileTypes.PrepareStatus| Constructor and Description |
|---|
FileStub(ApiProvider apiProvider,
StubConfigurationBase config) |
FileStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
| Modifier and Type | Method and Description |
|---|---|
FileTypes.Info |
get(java.lang.String downloadSessionId,
java.lang.String fileName)
Retrieves file download information for a specific file.
|
void |
get(java.lang.String downloadSessionId,
java.lang.String fileName,
AsyncCallback<FileTypes.Info> asyncCallback)
Retrieves file download information for a specific file.
|
void |
get(java.lang.String downloadSessionId,
java.lang.String fileName,
AsyncCallback<FileTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Retrieves file download information for a specific file.
|
FileTypes.Info |
get(java.lang.String downloadSessionId,
java.lang.String fileName,
InvocationConfig invocationConfig)
Retrieves file download information for a specific file.
|
java.util.List<FileTypes.Info> |
list(java.lang.String downloadSessionId)
Lists the information of all the files in the library item associated with the
download session.
|
void |
list(java.lang.String downloadSessionId,
AsyncCallback<java.util.List<FileTypes.Info>> asyncCallback)
Lists the information of all the files in the library item associated with the
download session.
|
void |
list(java.lang.String downloadSessionId,
AsyncCallback<java.util.List<FileTypes.Info>> asyncCallback,
InvocationConfig invocationConfig)
Lists the information of all the files in the library item associated with the
download session.
|
java.util.List<FileTypes.Info> |
list(java.lang.String downloadSessionId,
InvocationConfig invocationConfig)
Lists the information of all the files in the library item associated with the
download session.
|
FileTypes.Info |
prepare(java.lang.String downloadSessionId,
java.lang.String fileName,
FileTypes.EndpointType endpointType)
Requests a file to be prepared for download.
|
void |
prepare(java.lang.String downloadSessionId,
java.lang.String fileName,
FileTypes.EndpointType endpointType,
AsyncCallback<FileTypes.Info> asyncCallback)
Requests a file to be prepared for download.
|
void |
prepare(java.lang.String downloadSessionId,
java.lang.String fileName,
FileTypes.EndpointType endpointType,
AsyncCallback<FileTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Requests a file to be prepared for download.
|
FileTypes.Info |
prepare(java.lang.String downloadSessionId,
java.lang.String fileName,
FileTypes.EndpointType endpointType,
InvocationConfig invocationConfig)
Requests a file to be prepared for download.
|
public FileStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public FileStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.util.List<FileTypes.Info> list(java.lang.String downloadSessionId)
FileSynchronous method overload. Result of the invocation will be reported as a method return value.
list in interface FiledownloadSessionId - Identifier of the download session.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession.List of FileTypes.Info instances.public java.util.List<FileTypes.Info> list(java.lang.String downloadSessionId, InvocationConfig invocationConfig)
FileSynchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
list in interface FiledownloadSessionId - Identifier of the download session.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession.invocationConfig - Configuration for the method invocation.List of FileTypes.Info instances.public void list(java.lang.String downloadSessionId,
AsyncCallback<java.util.List<FileTypes.Info>> asyncCallback)
FileAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Result:
The List of FileTypes.Info instances.
Operation Errors:
NotFound - if the download session associated with downloadSessionId doesn't 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 in interface FiledownloadSessionId - Identifier of the download session.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void list(java.lang.String downloadSessionId,
AsyncCallback<java.util.List<FileTypes.Info>> asyncCallback,
InvocationConfig invocationConfig)
FileAsynchronous 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 FileTypes.Info instances.
Operation Errors:
NotFound - if the download session associated with downloadSessionId doesn't 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 in interface FiledownloadSessionId - Identifier of the download session.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.public FileTypes.Info prepare(java.lang.String downloadSessionId, java.lang.String fileName, FileTypes.EndpointType endpointType)
FileSynchronous method overload. Result of the invocation will be reported as a method return value.
prepare in interface FiledownloadSessionId - Identifier of the download session.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession.fileName - Name of the file requested for download.endpointType - Endpoint type request, one of HTTPS, DIRECT. This will determine the type of the
FileTypes.Info.getDownloadEndpoint()
that is generated when the file is prepared. The FileTypes.EndpointType.DIRECT
is only available to users who have the ContentLibrary.ReadStorage privilege.
If not specified the default is FileTypes.EndpointType.HTTPS.public FileTypes.Info prepare(java.lang.String downloadSessionId, java.lang.String fileName, FileTypes.EndpointType endpointType, InvocationConfig invocationConfig)
FileSynchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
prepare in interface FiledownloadSessionId - Identifier of the download session.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession.fileName - Name of the file requested for download.endpointType - Endpoint type request, one of HTTPS, DIRECT. This will determine the type of the
FileTypes.Info.getDownloadEndpoint()
that is generated when the file is prepared. The FileTypes.EndpointType.DIRECT
is only available to users who have the ContentLibrary.ReadStorage privilege.
If not specified the default is FileTypes.EndpointType.HTTPS.invocationConfig - Configuration for the method invocation.public void prepare(java.lang.String downloadSessionId,
java.lang.String fileName,
FileTypes.EndpointType endpointType,
AsyncCallback<FileTypes.Info> asyncCallback)
FileAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Result:
File information containing the status of the request and the download link to
the file.
Operation Errors:
NotFound - if the download session does not exist.
InvalidArgument - if there is no file with the specified fileName.
Unauthorized - if the the download session wasn't created with the ContentLibrary.ReadStorage
privilege and the caller requested a FileTypes.EndpointType.DIRECT
endpoint type.
prepare in interface FiledownloadSessionId - Identifier of the download session.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession.fileName - Name of the file requested for download.endpointType - Endpoint type request, one of HTTPS, DIRECT. This will determine the type of the
FileTypes.Info.getDownloadEndpoint()
that is generated when the file is prepared. The FileTypes.EndpointType.DIRECT
is only available to users who have the ContentLibrary.ReadStorage privilege.
If not specified the default is FileTypes.EndpointType.HTTPS.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void prepare(java.lang.String downloadSessionId,
java.lang.String fileName,
FileTypes.EndpointType endpointType,
AsyncCallback<FileTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
FileAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Operation Result:
File information containing the status of the request and the download link to
the file.
Operation Errors:
NotFound - if the download session does not exist.
InvalidArgument - if there is no file with the specified fileName.
Unauthorized - if the the download session wasn't created with the ContentLibrary.ReadStorage
privilege and the caller requested a FileTypes.EndpointType.DIRECT
endpoint type.
prepare in interface FiledownloadSessionId - Identifier of the download session.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession.fileName - Name of the file requested for download.endpointType - Endpoint type request, one of HTTPS, DIRECT. This will determine the type of the
FileTypes.Info.getDownloadEndpoint()
that is generated when the file is prepared. The FileTypes.EndpointType.DIRECT
is only available to users who have the ContentLibrary.ReadStorage privilege.
If not specified the default is FileTypes.EndpointType.HTTPS.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.public FileTypes.Info get(java.lang.String downloadSessionId, java.lang.String fileName)
FileSynchronous method overload. Result of the invocation will be reported as a method return value.
get in interface FiledownloadSessionId - Identifier of the download session.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession.fileName - Name of the file requested.FileTypes.Info
instance containing the status of the file and its download link if available.public FileTypes.Info get(java.lang.String downloadSessionId, java.lang.String fileName, InvocationConfig invocationConfig)
FileSynchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
get in interface FiledownloadSessionId - Identifier of the download session.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession.fileName - Name of the file requested.invocationConfig - Configuration for the method invocation.FileTypes.Info
instance containing the status of the file and its download link if available.public void get(java.lang.String downloadSessionId,
java.lang.String fileName,
AsyncCallback<FileTypes.Info> asyncCallback)
FileAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Result:
The FileTypes.Info
instance containing the status of the file and its download link if available.
Operation Errors:
NotFound - if the download session associated with downloadSessionId does not
exist.
InvalidArgument - if there is no file with the specified fileName.
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. get in interface FiledownloadSessionId - Identifier of the download session.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession.fileName - Name of the file requested.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String downloadSessionId,
java.lang.String fileName,
AsyncCallback<FileTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
FileAsynchronous 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
instance containing the status of the file and its download link if available.
Operation Errors:
NotFound - if the download session associated with downloadSessionId does not
exist.
InvalidArgument - if there is no file with the specified fileName.
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. get in interface FiledownloadSessionId - Identifier of the download session.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession.fileName - Name of the file requested.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.