public interface DownloadSession extends Service, DownloadSessionTypes
DownloadSession
interface manipulates download sessions, which are
used to download content from the Content Library Service.
A download session is an object that tracks the download of content (that is, downloading content from the Content Library Service) and acts as a lease to keep the download links available.
The File
interface provides access
to the download links.
RESOURCE_TYPE
Modifier and Type | Method and Description |
---|---|
void |
cancel(java.lang.String downloadSessionId)
Cancels the download session.
|
void |
cancel(java.lang.String downloadSessionId,
AsyncCallback<java.lang.Void> asyncCallback)
Cancels the download session.
|
void |
cancel(java.lang.String downloadSessionId,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Cancels the download session.
|
void |
cancel(java.lang.String downloadSessionId,
InvocationConfig invocationConfig)
Cancels the download session.
|
java.lang.String |
create(java.lang.String clientToken,
DownloadSessionModel createSpec)
Creates a new download session.
|
void |
create(java.lang.String clientToken,
DownloadSessionModel createSpec,
AsyncCallback<java.lang.String> asyncCallback)
Creates a new download session.
|
void |
create(java.lang.String clientToken,
DownloadSessionModel createSpec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Creates a new download session.
|
java.lang.String |
create(java.lang.String clientToken,
DownloadSessionModel createSpec,
InvocationConfig invocationConfig)
Creates a new download session.
|
void |
delete(java.lang.String downloadSessionId)
Deletes a download session.
|
void |
delete(java.lang.String downloadSessionId,
AsyncCallback<java.lang.Void> asyncCallback)
Deletes a download session.
|
void |
delete(java.lang.String downloadSessionId,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Deletes a download session.
|
void |
delete(java.lang.String downloadSessionId,
InvocationConfig invocationConfig)
Deletes a download session.
|
void |
fail(java.lang.String downloadSessionId,
java.lang.String clientErrorMessage)
Terminates the download session with a client specified error message.
|
void |
fail(java.lang.String downloadSessionId,
java.lang.String clientErrorMessage,
AsyncCallback<java.lang.Void> asyncCallback)
Terminates the download session with a client specified error message.
|
void |
fail(java.lang.String downloadSessionId,
java.lang.String clientErrorMessage,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Terminates the download session with a client specified error message.
|
void |
fail(java.lang.String downloadSessionId,
java.lang.String clientErrorMessage,
InvocationConfig invocationConfig)
Terminates the download session with a client specified error message.
|
DownloadSessionModel |
get(java.lang.String downloadSessionId)
Gets the download session with the specified identifier, including the most
up-to-date status information for the session.
|
void |
get(java.lang.String downloadSessionId,
AsyncCallback<DownloadSessionModel> asyncCallback)
Gets the download session with the specified identifier, including the most
up-to-date status information for the session.
|
void |
get(java.lang.String downloadSessionId,
AsyncCallback<DownloadSessionModel> asyncCallback,
InvocationConfig invocationConfig)
Gets the download session with the specified identifier, including the most
up-to-date status information for the session.
|
DownloadSessionModel |
get(java.lang.String downloadSessionId,
InvocationConfig invocationConfig)
Gets the download session with the specified identifier, including the most
up-to-date status information for the session.
|
void |
keepAlive(java.lang.String downloadSessionId,
java.lang.Long progress)
Keeps a download session alive.
|
void |
keepAlive(java.lang.String downloadSessionId,
java.lang.Long progress,
AsyncCallback<java.lang.Void> asyncCallback)
Keeps a download session alive.
|
void |
keepAlive(java.lang.String downloadSessionId,
java.lang.Long progress,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Keeps a download session alive.
|
void |
keepAlive(java.lang.String downloadSessionId,
java.lang.Long progress,
InvocationConfig invocationConfig)
Keeps a download session alive.
|
java.util.List<java.lang.String> |
list(java.lang.String libraryItemId)
Lists the identifiers of the download sessions created by the calling user.
|
void |
list(java.lang.String libraryItemId,
AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
Lists the identifiers of the download sessions created by the calling user.
|
void |
list(java.lang.String libraryItemId,
AsyncCallback<java.util.List<java.lang.String>> asyncCallback,
InvocationConfig invocationConfig)
Lists the identifiers of the download sessions created by the calling user.
|
java.util.List<java.lang.String> |
list(java.lang.String libraryItemId,
InvocationConfig invocationConfig)
Lists the identifiers of the download sessions created by the calling user.
|
java.lang.String create(java.lang.String clientToken, DownloadSessionModel createSpec)
Synchronous method overload. Result of the invocation will be reported as a method return value.
clientToken
- A unique token generated by the client for each creation request. The token
should be a universally unique identifier (UUID), for example: b8a2a2e3-2314-43cd-a871-6ede0f429751
. This token can be used to guarantee
idempotent creation.
If not specified creation is not idempotent.createSpec
- Specification for the new download session to be created.com.vmware.content.library.item.DownloadSession
.InvalidArgument
- if the session specification is not valid.InvalidArgument
- format.NotFound
- if the library item targeted by the download does not exist.Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.content.library.Item
referenced by the property
DownloadSessionModel.getLibraryItemId()
requires ContentLibrary.DownloadSession
. java.lang.String create(java.lang.String clientToken, DownloadSessionModel createSpec, 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.
clientToken
- A unique token generated by the client for each creation request. The token
should be a universally unique identifier (UUID), for example: b8a2a2e3-2314-43cd-a871-6ede0f429751
. This token can be used to guarantee
idempotent creation.
If not specified creation is not idempotent.createSpec
- Specification for the new download session to be created.invocationConfig
- Configuration for the method invocation.com.vmware.content.library.item.DownloadSession
.InvalidArgument
- if the session specification is not valid.InvalidArgument
- format.NotFound
- if the library item targeted by the download does not exist.Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.content.library.Item
referenced by the property
DownloadSessionModel.getLibraryItemId()
requires ContentLibrary.DownloadSession
. void create(java.lang.String clientToken, DownloadSessionModel createSpec, AsyncCallback<java.lang.String> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Identifier of the new download session being created.
The return value will be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.
Operation Errors:
InvalidArgument
- if the session specification is not valid.
InvalidArgument
- format.
NotFound
- if the library item targeted by the download does not exist.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.content.library.Item
referenced by the property
DownloadSessionModel.getLibraryItemId()
requires ContentLibrary.DownloadSession
. clientToken
- A unique token generated by the client for each creation request. The token
should be a universally unique identifier (UUID), for example: b8a2a2e3-2314-43cd-a871-6ede0f429751
. This token can be used to guarantee
idempotent creation.
If not specified creation is not idempotent.createSpec
- Specification for the new download session to be created.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void create(java.lang.String clientToken, DownloadSessionModel createSpec, AsyncCallback<java.lang.String> 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:
Identifier of the new download session being created.
The return value will be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.
Operation Errors:
InvalidArgument
- if the session specification is not valid.
InvalidArgument
- format.
NotFound
- if the library item targeted by the download does not exist.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.content.library.Item
referenced by the property
DownloadSessionModel.getLibraryItemId()
requires ContentLibrary.DownloadSession
. clientToken
- A unique token generated by the client for each creation request. The token
should be a universally unique identifier (UUID), for example: b8a2a2e3-2314-43cd-a871-6ede0f429751
. This token can be used to guarantee
idempotent creation.
If not specified creation is not idempotent.createSpec
- Specification for the new download session to be created.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.DownloadSessionModel get(java.lang.String downloadSessionId)
Synchronous method overload. Result of the invocation will be reported as a method return value.
downloadSessionId
- Identifier of the download session to retrieve.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.DownloadSessionModel
instance with
the given downloadSessionId
.NotFound
- if no download session with the given downloadSessionId
exists.Unauthorized
- if you do not have all of the privileges described as follows: System.Anonymous
. DownloadSessionModel get(java.lang.String downloadSessionId, 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.
downloadSessionId
- Identifier of the download session to retrieve.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.invocationConfig
- Configuration for the method invocation.DownloadSessionModel
instance with
the given downloadSessionId
.NotFound
- if no download session with the given downloadSessionId
exists.Unauthorized
- if you do not have all of the privileges described as follows: System.Anonymous
. void get(java.lang.String downloadSessionId, AsyncCallback<DownloadSessionModel> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The DownloadSessionModel
instance with
the given downloadSessionId
.
Operation Errors:
NotFound
- if no download session with the given downloadSessionId
exists.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. downloadSessionId
- Identifier of the download session to retrieve.
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.void get(java.lang.String downloadSessionId, AsyncCallback<DownloadSessionModel> 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 DownloadSessionModel
instance with
the given downloadSessionId
.
Operation Errors:
NotFound
- if no download session with the given downloadSessionId
exists.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. downloadSessionId
- Identifier of the download session to retrieve.
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.java.util.List<java.lang.String> list(java.lang.String libraryItemId)
Synchronous method overload. Result of the invocation will be reported as a method return value.
libraryItemId
- Library item identifier on which to filter results.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.
If not specified all download session identifiers are listed.List
of identifiers of all download sessions created by
the calling user.
The return value will contain identifiers for the resource type: com.vmware.content.library.item.DownloadSession
.NotFound
- if a library item identifier is given for an item which does not exist.Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.content.library.item.DownloadSession
referenced by
the parameter libraryItemId
requires ContentLibrary.DownloadSession
. java.util.List<java.lang.String> 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
- Library item identifier on which to filter results.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.
If not specified all download session identifiers are listed.invocationConfig
- Configuration for the method invocation.List
of identifiers of all download sessions created by
the calling user.
The return value will contain identifiers for the resource type: com.vmware.content.library.item.DownloadSession
.NotFound
- if a library item identifier is given for an item which does not exist.Unauthorized
- if you do not have all of the privileges described as follows: com.vmware.content.library.item.DownloadSession
referenced by
the parameter libraryItemId
requires ContentLibrary.DownloadSession
. void list(java.lang.String libraryItemId, AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The List
of identifiers of all download sessions created by
the calling user.
The return value will contain identifiers for the resource type: com.vmware.content.library.item.DownloadSession
.
Operation Errors:
NotFound
- if a library item identifier is given for an item which does not exist.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.content.library.item.DownloadSession
referenced by
the parameter libraryItemId
requires ContentLibrary.DownloadSession
. libraryItemId
- Library item identifier on which to filter results.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.
If not specified all download session identifiers are listed.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(java.lang.String libraryItemId, AsyncCallback<java.util.List<java.lang.String>> 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 identifiers of all download sessions created by
the calling user.
The return value will contain identifiers for the resource type: com.vmware.content.library.item.DownloadSession
.
Operation Errors:
NotFound
- if a library item identifier is given for an item which does not exist.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.content.library.item.DownloadSession
referenced by
the parameter libraryItemId
requires ContentLibrary.DownloadSession
. libraryItemId
- Library item identifier on which to filter results.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.
If not specified all download session identifiers are listed.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void keepAlive(java.lang.String downloadSessionId, java.lang.Long progress)
DownloadSessionModel.State.ACTIVE
state.
If there is no activity for a download session for a certain period of time, the download session will expire. The download session expiration timeout is configurable in the Content Library Service system configuration. The default is five minutes. Invoking this method enables a client to specifically extend the lifetime of an active download session.
Synchronous method overload. Result of the invocation will be reported as a method return value.
downloadSessionId
- Identifier of the download session whose lifetime should be extended.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.progress
- Optional update to the progress property of the session. If specified, the new
progress should be greater then the current progress. See DownloadSessionModel.getClientProgress()
.
If not specified the progress is not updated.NotFound
- if no download session with the given identifier exists.NotAllowedInCurrentState
- if the download session is not in the DownloadSessionModel.State.ACTIVE
state.Unauthorized
- if you do not have all of the privileges described as follows: System.Anonymous
. void keepAlive(java.lang.String downloadSessionId, java.lang.Long progress, InvocationConfig invocationConfig)
DownloadSessionModel.State.ACTIVE
state.
If there is no activity for a download session for a certain period of time, the download session will expire. The download session expiration timeout is configurable in the Content Library Service system configuration. The default is five minutes. Invoking this method enables a client to specifically extend the lifetime of an active download session.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
downloadSessionId
- Identifier of the download session whose lifetime should be extended.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.progress
- Optional update to the progress property of the session. If specified, the new
progress should be greater then the current progress. See DownloadSessionModel.getClientProgress()
.
If not specified the progress is not updated.invocationConfig
- Configuration for the method invocation.NotFound
- if no download session with the given identifier exists.NotAllowedInCurrentState
- if the download session is not in the DownloadSessionModel.State.ACTIVE
state.Unauthorized
- if you do not have all of the privileges described as follows: System.Anonymous
. void keepAlive(java.lang.String downloadSessionId, java.lang.Long progress, AsyncCallback<java.lang.Void> asyncCallback)
DownloadSessionModel.State.ACTIVE
state.
If there is no activity for a download session for a certain period of time, the download session will expire. The download session expiration timeout is configurable in the Content Library Service system configuration. The default is five minutes. Invoking this method enables a client to specifically extend the lifetime of an active download session.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if no download session with the given identifier exists.
NotAllowedInCurrentState
- if the download session is not in the DownloadSessionModel.State.ACTIVE
state.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. downloadSessionId
- Identifier of the download session whose lifetime should be extended.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.progress
- Optional update to the progress property of the session. If specified, the new
progress should be greater then the current progress. See DownloadSessionModel.getClientProgress()
.
If not specified the progress is not updated.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void keepAlive(java.lang.String downloadSessionId, java.lang.Long progress, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
DownloadSessionModel.State.ACTIVE
state.
If there is no activity for a download session for a certain period of time, the download session will expire. The download session expiration timeout is configurable in the Content Library Service system configuration. The default is five minutes. Invoking this method enables a client to specifically extend the lifetime of an active download session.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
NotFound
- if no download session with the given identifier exists.
NotAllowedInCurrentState
- if the download session is not in the DownloadSessionModel.State.ACTIVE
state.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. downloadSessionId
- Identifier of the download session whose lifetime should be extended.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.progress
- Optional update to the progress property of the session. If specified, the new
progress should be greater then the current progress. See DownloadSessionModel.getClientProgress()
.
If not specified the progress is not updated.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void cancel(java.lang.String downloadSessionId)
Synchronous method overload. Result of the invocation will be reported as a method return value.
downloadSessionId
- Identifer of the download session that should be canceled.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.NotFound
- if no download session with the given identifier exists.NotAllowedInCurrentState
- if the download session is not in the DownloadSessionModel.State.ACTIVE
state.Unauthorized
- if you do not have all of the privileges described as follows: System.Anonymous
. void cancel(java.lang.String downloadSessionId, 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.
downloadSessionId
- Identifer of the download session that should be canceled.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.invocationConfig
- Configuration for the method invocation.NotFound
- if no download session with the given identifier exists.NotAllowedInCurrentState
- if the download session is not in the DownloadSessionModel.State.ACTIVE
state.Unauthorized
- if you do not have all of the privileges described as follows: System.Anonymous
. void cancel(java.lang.String downloadSessionId, AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if no download session with the given identifier exists.
NotAllowedInCurrentState
- if the download session is not in the DownloadSessionModel.State.ACTIVE
state.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. downloadSessionId
- Identifer of the download session that should be canceled.
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.void cancel(java.lang.String downloadSessionId, AsyncCallback<java.lang.Void> 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 Errors:
NotFound
- if no download session with the given identifier exists.
NotAllowedInCurrentState
- if the download session is not in the DownloadSessionModel.State.ACTIVE
state.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. downloadSessionId
- Identifer of the download session that should be canceled.
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.void delete(java.lang.String downloadSessionId)
Removing a download session leaves any current transfers for that session in an indeterminate state (there is no guarantee that the transfers will be able to complete). However there will no longer be a means of inspecting the status of those downloads except by seeing the effect on the library item.
Download sessions for which there is no download activity or which are complete will automatically be expired and then deleted after a period of time.
Synchronous method overload. Result of the invocation will be reported as a method return value.
downloadSessionId
- Identifier of the download session to be deleted.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.NotFound
- if the download session does not exist.Unauthorized
- if you do not have all of the privileges described as follows: System.Anonymous
. void delete(java.lang.String downloadSessionId, InvocationConfig invocationConfig)
Removing a download session leaves any current transfers for that session in an indeterminate state (there is no guarantee that the transfers will be able to complete). However there will no longer be a means of inspecting the status of those downloads except by seeing the effect on the library item.
Download sessions for which there is no download activity or which are complete will automatically be expired and then deleted after a period of time.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
downloadSessionId
- Identifier of the download session to be deleted.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.invocationConfig
- Configuration for the method invocation.NotFound
- if the download session does not exist.Unauthorized
- if you do not have all of the privileges described as follows: System.Anonymous
. void delete(java.lang.String downloadSessionId, AsyncCallback<java.lang.Void> asyncCallback)
Removing a download session leaves any current transfers for that session in an indeterminate state (there is no guarantee that the transfers will be able to complete). However there will no longer be a means of inspecting the status of those downloads except by seeing the effect on the library item.
Download sessions for which there is no download activity or which are complete will automatically be expired and then deleted after a period of time.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if the download session does not exist.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. downloadSessionId
- Identifier of the download session to be deleted.
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.void delete(java.lang.String downloadSessionId, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Removing a download session leaves any current transfers for that session in an indeterminate state (there is no guarantee that the transfers will be able to complete). However there will no longer be a means of inspecting the status of those downloads except by seeing the effect on the library item.
Download sessions for which there is no download activity or which are complete will automatically be expired and then deleted after a period of time.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
NotFound
- if the download session does not exist.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. downloadSessionId
- Identifier of the download session to be deleted.
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.void fail(java.lang.String downloadSessionId, java.lang.String clientErrorMessage)
This is useful in transmitting client side failures (for example, not being able to download a file) to the server side.
Synchronous method overload. Result of the invocation will be reported as a method return value.
downloadSessionId
- Identifier of the download session to fail.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.clientErrorMessage
- Client side error message. This can be useful in providing some extra details
about the client side failure. Note that the message won't be translated to the
user's locale.NotFound
- if the download session does not exist.NotAllowedInCurrentState
- if the download session is not in the DownloadSessionModel.State.ACTIVE
state.Unauthorized
- if you do not have all of the privileges described as follows: System.Anonymous
. void fail(java.lang.String downloadSessionId, java.lang.String clientErrorMessage, InvocationConfig invocationConfig)
This is useful in transmitting client side failures (for example, not being able to download a file) to the server side.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
downloadSessionId
- Identifier of the download session to fail.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.clientErrorMessage
- Client side error message. This can be useful in providing some extra details
about the client side failure. Note that the message won't be translated to the
user's locale.invocationConfig
- Configuration for the method invocation.NotFound
- if the download session does not exist.NotAllowedInCurrentState
- if the download session is not in the DownloadSessionModel.State.ACTIVE
state.Unauthorized
- if you do not have all of the privileges described as follows: System.Anonymous
. void fail(java.lang.String downloadSessionId, java.lang.String clientErrorMessage, AsyncCallback<java.lang.Void> asyncCallback)
This is useful in transmitting client side failures (for example, not being able to download a file) to the server side.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if the download session does not exist.
NotAllowedInCurrentState
- if the download session is not in the DownloadSessionModel.State.ACTIVE
state.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. downloadSessionId
- Identifier of the download session to fail.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.clientErrorMessage
- Client side error message. This can be useful in providing some extra details
about the client side failure. Note that the message won't be translated to the
user's locale.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void fail(java.lang.String downloadSessionId, java.lang.String clientErrorMessage, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
This is useful in transmitting client side failures (for example, not being able to download a file) to the server side.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
NotFound
- if the download session does not exist.
NotAllowedInCurrentState
- if the download session is not in the DownloadSessionModel.State.ACTIVE
state.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. downloadSessionId
- Identifier of the download session to fail.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.clientErrorMessage
- Client side error message. This can be useful in providing some extra details
about the client side failure. Note that the message won't be translated to the
user's locale.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.