public class UpdateSessionStub extends com.vmware.vapi.internal.bindings.Stub implements UpdateSession
UpdateSession
API service.
WARNING: Internal class, subject to change in future versions.
apiProvider, converter, ifaceId, securityContext
RESOURCE_TYPE
Constructor and Description |
---|
UpdateSessionStub(ApiProvider apiProvider,
StubConfigurationBase config) |
UpdateSessionStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
void |
cancel(java.lang.String updateSessionId)
Cancels the update session and sets its state to
UpdateSessionModel.State.CANCELED . |
void |
cancel(java.lang.String updateSessionId,
AsyncCallback<java.lang.Void> asyncCallback)
Cancels the update session and sets its state to
UpdateSessionModel.State.CANCELED . |
void |
cancel(java.lang.String updateSessionId,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Cancels the update session and sets its state to
UpdateSessionModel.State.CANCELED . |
void |
cancel(java.lang.String updateSessionId,
InvocationConfig invocationConfig)
Cancels the update session and sets its state to
UpdateSessionModel.State.CANCELED . |
void |
complete(java.lang.String updateSessionId)
Completes the update session.
|
void |
complete(java.lang.String updateSessionId,
AsyncCallback<java.lang.Void> asyncCallback)
Completes the update session.
|
void |
complete(java.lang.String updateSessionId,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Completes the update session.
|
void |
complete(java.lang.String updateSessionId,
InvocationConfig invocationConfig)
Completes the update session.
|
java.lang.String |
create(java.lang.String clientToken,
UpdateSessionModel createSpec)
Creates a new update session.
|
void |
create(java.lang.String clientToken,
UpdateSessionModel createSpec,
AsyncCallback<java.lang.String> asyncCallback)
Creates a new update session.
|
void |
create(java.lang.String clientToken,
UpdateSessionModel createSpec,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Creates a new update session.
|
java.lang.String |
create(java.lang.String clientToken,
UpdateSessionModel createSpec,
InvocationConfig invocationConfig)
Creates a new update session.
|
void |
delete(java.lang.String updateSessionId)
Deletes an update session.
|
void |
delete(java.lang.String updateSessionId,
AsyncCallback<java.lang.Void> asyncCallback)
Deletes an update session.
|
void |
delete(java.lang.String updateSessionId,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Deletes an update session.
|
void |
delete(java.lang.String updateSessionId,
InvocationConfig invocationConfig)
Deletes an update session.
|
void |
fail(java.lang.String updateSessionId,
java.lang.String clientErrorMessage)
Terminates the update session with a client specified error message.
|
void |
fail(java.lang.String updateSessionId,
java.lang.String clientErrorMessage,
AsyncCallback<java.lang.Void> asyncCallback)
Terminates the update session with a client specified error message.
|
void |
fail(java.lang.String updateSessionId,
java.lang.String clientErrorMessage,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Terminates the update session with a client specified error message.
|
void |
fail(java.lang.String updateSessionId,
java.lang.String clientErrorMessage,
InvocationConfig invocationConfig)
Terminates the update session with a client specified error message.
|
UpdateSessionModel |
get(java.lang.String updateSessionId)
Gets the update session with the specified identifier, including the most
up-to-date status information for the session.
|
void |
get(java.lang.String updateSessionId,
AsyncCallback<UpdateSessionModel> asyncCallback)
Gets the update session with the specified identifier, including the most
up-to-date status information for the session.
|
void |
get(java.lang.String updateSessionId,
AsyncCallback<UpdateSessionModel> asyncCallback,
InvocationConfig invocationConfig)
Gets the update session with the specified identifier, including the most
up-to-date status information for the session.
|
UpdateSessionModel |
get(java.lang.String updateSessionId,
InvocationConfig invocationConfig)
Gets the update session with the specified identifier, including the most
up-to-date status information for the session.
|
void |
keepAlive(java.lang.String updateSessionId,
java.lang.Long clientProgress)
Keeps an update session alive.
|
void |
keepAlive(java.lang.String updateSessionId,
java.lang.Long clientProgress,
AsyncCallback<java.lang.Void> asyncCallback)
Keeps an update session alive.
|
void |
keepAlive(java.lang.String updateSessionId,
java.lang.Long clientProgress,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Keeps an update session alive.
|
void |
keepAlive(java.lang.String updateSessionId,
java.lang.Long clientProgress,
InvocationConfig invocationConfig)
Keeps an update session alive.
|
java.util.List<java.lang.String> |
list(java.lang.String libraryItemId)
Lists the identifiers of the update session created by the calling user.
|
void |
list(java.lang.String libraryItemId,
AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
Lists the identifiers of the update session 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 update session created by the calling user.
|
java.util.List<java.lang.String> |
list(java.lang.String libraryItemId,
InvocationConfig invocationConfig)
Lists the identifiers of the update session created by the calling user.
|
void |
update(java.lang.String updateSessionId,
UpdateSessionModel updateSpec)
Updates the properties of an update session.
|
void |
update(java.lang.String updateSessionId,
UpdateSessionModel updateSpec,
AsyncCallback<java.lang.Void> asyncCallback)
Updates the properties of an update session.
|
void |
update(java.lang.String updateSessionId,
UpdateSessionModel updateSpec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Updates the properties of an update session.
|
void |
update(java.lang.String updateSessionId,
UpdateSessionModel updateSpec,
InvocationConfig invocationConfig)
Updates the properties of an update session.
|
public UpdateSessionStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public UpdateSessionStub(ApiProvider apiProvider, StubConfigurationBase config)
public java.lang.String create(java.lang.String clientToken, UpdateSessionModel createSpec)
UpdateSession
Content Library Service allows only one single update session to be active for a specific library item.
Synchronous method overload. Result of the invocation will be reported as a method return value.
create
in interface UpdateSession
clientToken
- 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 update session to be created.com.vmware.content.library.item.UpdateSession
.public java.lang.String create(java.lang.String clientToken, UpdateSessionModel createSpec, InvocationConfig invocationConfig)
UpdateSession
Content Library Service allows only one single update session to be active for a specific library item.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
create
in interface UpdateSession
clientToken
- 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 update session to be created.invocationConfig
- Configuration for the method invocation.com.vmware.content.library.item.UpdateSession
.public void create(java.lang.String clientToken, UpdateSessionModel createSpec, AsyncCallback<java.lang.String> asyncCallback)
UpdateSession
Content Library Service allows only one single update session to be active for a specific library item.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Identifier of the new update session being created.
The return value will be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.
Operation Errors:
InvalidArgument
- if the session specification is not valid.
InvalidArgument
- if the clientToken
does not conform to the UUID format.
InvalidElementType
- if the update session is being created on a subscribed library item.
NotFound
- if the item targeted for update does not exist.
ResourceBusy
- if there is another update session on the same library item.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.content.library.Item
referenced by the property
UpdateSessionModel.getLibraryItemId()
requires ContentLibrary.UpdateSession
. create
in interface UpdateSession
clientToken
- 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 update session to be created.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void create(java.lang.String clientToken, UpdateSessionModel createSpec, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
UpdateSession
Content Library Service allows only one single update session to be active for a specific library item.
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 update session being created.
The return value will be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.
Operation Errors:
InvalidArgument
- if the session specification is not valid.
InvalidArgument
- if the clientToken
does not conform to the UUID format.
InvalidElementType
- if the update session is being created on a subscribed library item.
NotFound
- if the item targeted for update does not exist.
ResourceBusy
- if there is another update session on the same library item.
Unauthorized
- if you do not have all of the privileges described as follows:
com.vmware.content.library.Item
referenced by the property
UpdateSessionModel.getLibraryItemId()
requires ContentLibrary.UpdateSession
. create
in interface UpdateSession
clientToken
- 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 update session to be created.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public UpdateSessionModel get(java.lang.String updateSessionId)
UpdateSession
Synchronous method overload. Result of the invocation will be reported as a method return value.
get
in interface UpdateSession
updateSessionId
- Identifier of the update session to retrieve.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.UpdateSessionModel
instance with the
given updateSessionId
.public UpdateSessionModel get(java.lang.String updateSessionId, InvocationConfig invocationConfig)
UpdateSession
Synchronous 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 UpdateSession
updateSessionId
- Identifier of the update session to retrieve.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.invocationConfig
- Configuration for the method invocation.UpdateSessionModel
instance with the
given updateSessionId
.public void get(java.lang.String updateSessionId, AsyncCallback<UpdateSessionModel> asyncCallback)
UpdateSession
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The UpdateSessionModel
instance with the
given updateSessionId
.
Operation Errors:
NotFound
- if no update session with the given identifier exists.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. get
in interface UpdateSession
updateSessionId
- Identifier of the update session to retrieve.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void get(java.lang.String updateSessionId, AsyncCallback<UpdateSessionModel> asyncCallback, InvocationConfig invocationConfig)
UpdateSession
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 UpdateSessionModel
instance with the
given updateSessionId
.
Operation Errors:
NotFound
- if no update session with the given identifier exists.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. get
in interface UpdateSession
updateSessionId
- Identifier of the update session to retrieve.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.util.List<java.lang.String> list(java.lang.String libraryItemId)
UpdateSession
Synchronous method overload. Result of the invocation will be reported as a method return value.
list
in interface UpdateSession
libraryItemId
- Optional library item identifier on which to filter results.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.
If not specified the results are not filtered.List
of identifiers of all update sessions created by the
calling user.
The return value will contain identifiers for the resource type: com.vmware.content.library.item.UpdateSession
.public java.util.List<java.lang.String> list(java.lang.String libraryItemId, InvocationConfig invocationConfig)
UpdateSession
Synchronous 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 UpdateSession
libraryItemId
- Optional library item identifier on which to filter results.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.
If not specified the results are not filtered.invocationConfig
- Configuration for the method invocation.List
of identifiers of all update sessions created by the
calling user.
The return value will contain identifiers for the resource type: com.vmware.content.library.item.UpdateSession
.public void list(java.lang.String libraryItemId, AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
UpdateSession
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The List
of identifiers of all update sessions created by the
calling user.
The return value will contain identifiers for the resource type: com.vmware.content.library.item.UpdateSession
.
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.UpdateSession
referenced by the
parameter libraryItemId
requires ContentLibrary.UpdateSession
.
list
in interface UpdateSession
libraryItemId
- Optional library item identifier on which to filter results.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.
If not specified the results are not filtered.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void list(java.lang.String libraryItemId, AsyncCallback<java.util.List<java.lang.String>> asyncCallback, InvocationConfig invocationConfig)
UpdateSession
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 update sessions created by the
calling user.
The return value will contain identifiers for the resource type: com.vmware.content.library.item.UpdateSession
.
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.UpdateSession
referenced by the
parameter libraryItemId
requires ContentLibrary.UpdateSession
.
list
in interface UpdateSession
libraryItemId
- Optional library item identifier on which to filter results.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.
If not specified the results are not filtered.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void complete(java.lang.String updateSessionId)
UpdateSession
This method requires the session to be in the
UpdateSessionModel.State.ACTIVE
state.
Depending on the type of the library item associated with this session,
a type adapter may be invoked to verify the validity of the files uploaded. The
user can explicitly validate the session before completing the session by using
the File.validate(java.lang.String)
method.
Modifications are not visible to other clients unless the session is completed and all necessary files have been received.
Synchronous method overload. Result of the invocation will be reported as a method return value.
complete
in interface UpdateSession
updateSessionId
- Identifier of the update session that should be completed.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.public void complete(java.lang.String updateSessionId, InvocationConfig invocationConfig)
UpdateSession
This method requires the session to be in the
UpdateSessionModel.State.ACTIVE
state.
Depending on the type of the library item associated with this session,
a type adapter may be invoked to verify the validity of the files uploaded. The
user can explicitly validate the session before completing the session by using
the File.validate(java.lang.String)
method.
Modifications are not visible to other clients unless the session is completed and all necessary files have been received.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
complete
in interface UpdateSession
updateSessionId
- Identifier of the update session that should be completed.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.invocationConfig
- Configuration for the method invocation.public void complete(java.lang.String updateSessionId, AsyncCallback<java.lang.Void> asyncCallback)
UpdateSession
This method requires the session to be in the
UpdateSessionModel.State.ACTIVE
state.
Depending on the type of the library item associated with this session,
a type adapter may be invoked to verify the validity of the files uploaded. The
user can explicitly validate the session before completing the session by using
the File.validate(java.lang.String)
method.
Modifications are not visible to other clients unless the session is completed and all necessary files have been received.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if no update session with the given identifier exists.
NotAllowedInCurrentState
- if the update session is not in the UpdateSessionModel.State.ACTIVE
state, or if
some of the files that will be uploaded by the client aren't received correctly.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. complete
in interface UpdateSession
updateSessionId
- Identifier of the update session that should be completed.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void complete(java.lang.String updateSessionId, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
UpdateSession
This method requires the session to be in the
UpdateSessionModel.State.ACTIVE
state.
Depending on the type of the library item associated with this session,
a type adapter may be invoked to verify the validity of the files uploaded. The
user can explicitly validate the session before completing the session by using
the File.validate(java.lang.String)
method.
Modifications are not visible to other clients unless the session is completed and all necessary files have been received.
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 update session with the given identifier exists.
NotAllowedInCurrentState
- if the update session is not in the UpdateSessionModel.State.ACTIVE
state, or if
some of the files that will be uploaded by the client aren't received correctly.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. complete
in interface UpdateSession
updateSessionId
- Identifier of the update session that should be completed.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void keepAlive(java.lang.String updateSessionId, java.lang.Long clientProgress)
UpdateSession
If there is no activity for an update session after a period of time, the update session will expire, then be deleted. The update 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 the update session.
Synchronous method overload. Result of the invocation will be reported as a method return value.
keepAlive
in interface UpdateSession
updateSessionId
- Identifier of the update session whose lifetime should be extended.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.clientProgress
- Optional update to the progress property of the session. If specified, the new
progress should be greater then the current progress. See UpdateSessionModel.getClientProgress()
.
If not specified the progress is not updated.public void keepAlive(java.lang.String updateSessionId, java.lang.Long clientProgress, InvocationConfig invocationConfig)
UpdateSession
If there is no activity for an update session after a period of time, the update session will expire, then be deleted. The update 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 the update 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.
keepAlive
in interface UpdateSession
updateSessionId
- Identifier of the update session whose lifetime should be extended.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.clientProgress
- Optional update to the progress property of the session. If specified, the new
progress should be greater then the current progress. See UpdateSessionModel.getClientProgress()
.
If not specified the progress is not updated.invocationConfig
- Configuration for the method invocation.public void keepAlive(java.lang.String updateSessionId, java.lang.Long clientProgress, AsyncCallback<java.lang.Void> asyncCallback)
UpdateSession
If there is no activity for an update session after a period of time, the update session will expire, then be deleted. The update 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 the update session.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if no update session with the given identifier exists.
NotAllowedInCurrentState
- if the update session is not in the UpdateSessionModel.State.ACTIVE
state.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. keepAlive
in interface UpdateSession
updateSessionId
- Identifier of the update session whose lifetime should be extended.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.clientProgress
- Optional update to the progress property of the session. If specified, the new
progress should be greater then the current progress. See UpdateSessionModel.getClientProgress()
.
If not specified the progress is not updated.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void keepAlive(java.lang.String updateSessionId, java.lang.Long clientProgress, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
UpdateSession
If there is no activity for an update session after a period of time, the update session will expire, then be deleted. The update 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 the update 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 update session with the given identifier exists.
NotAllowedInCurrentState
- if the update session is not in the UpdateSessionModel.State.ACTIVE
state.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. keepAlive
in interface UpdateSession
updateSessionId
- Identifier of the update session whose lifetime should be extended.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.clientProgress
- Optional update to the progress property of the session. If specified, the new
progress should be greater then the current progress. See UpdateSessionModel.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.public void cancel(java.lang.String updateSessionId)
UpdateSession
UpdateSessionModel.State.CANCELED
. This method
will free up any temporary resources currently associated with the session.
This method is not allowed if the session has been already completed.
Cancelling an update session will cancel any in progress transfers (either uploaded by the client or pulled by the server). Any content that has been already received will be scheduled for deletion.
Synchronous method overload. Result of the invocation will be reported as a method return value.
cancel
in interface UpdateSession
updateSessionId
- Identifier of the update session that should be canceled.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.public void cancel(java.lang.String updateSessionId, InvocationConfig invocationConfig)
UpdateSession
UpdateSessionModel.State.CANCELED
. This method
will free up any temporary resources currently associated with the session.
This method is not allowed if the session has been already completed.
Cancelling an update session will cancel any in progress transfers (either uploaded by the client or pulled by the server). Any content that has been already received will be scheduled for deletion.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
cancel
in interface UpdateSession
updateSessionId
- Identifier of the update session that should be canceled.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.invocationConfig
- Configuration for the method invocation.public void cancel(java.lang.String updateSessionId, AsyncCallback<java.lang.Void> asyncCallback)
UpdateSession
UpdateSessionModel.State.CANCELED
. This method
will free up any temporary resources currently associated with the session.
This method is not allowed if the session has been already completed.
Cancelling an update session will cancel any in progress transfers (either uploaded by the client or pulled by the server). Any content that has been already received will be scheduled for deletion.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if no update session with the given identifier exists.
NotAllowedInCurrentState
- if the update session is not in the UpdateSessionModel.State.ACTIVE
state.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. cancel
in interface UpdateSession
updateSessionId
- Identifier of the update session that should be canceled.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void cancel(java.lang.String updateSessionId, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
UpdateSession
UpdateSessionModel.State.CANCELED
. This method
will free up any temporary resources currently associated with the session.
This method is not allowed if the session has been already completed.
Cancelling an update session will cancel any in progress transfers (either uploaded by the client or pulled by the server). Any content that has been already received will be scheduled for deletion.
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 update session with the given identifier exists.
NotAllowedInCurrentState
- if the update session is not in the UpdateSessionModel.State.ACTIVE
state.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. cancel
in interface UpdateSession
updateSessionId
- Identifier of the update session that should be canceled.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void fail(java.lang.String updateSessionId, java.lang.String clientErrorMessage)
UpdateSession
This is useful in transmitting client side failures (for example, not being able to access a file) to the server side.
Synchronous method overload. Result of the invocation will be reported as a method return value.
fail
in interface UpdateSession
updateSessionId
- Identifier of the update session to fail.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.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.public void fail(java.lang.String updateSessionId, java.lang.String clientErrorMessage, InvocationConfig invocationConfig)
UpdateSession
This is useful in transmitting client side failures (for example, not being able to access 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.
fail
in interface UpdateSession
updateSessionId
- Identifier of the update session to fail.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.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.public void fail(java.lang.String updateSessionId, java.lang.String clientErrorMessage, AsyncCallback<java.lang.Void> asyncCallback)
UpdateSession
This is useful in transmitting client side failures (for example, not being able to access 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 update session does not exist.
NotAllowedInCurrentState
- if the update session is not in the UpdateSessionModel.State.ACTIVE
state.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. fail
in interface UpdateSession
updateSessionId
- Identifier of the update session to fail.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.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.public void fail(java.lang.String updateSessionId, java.lang.String clientErrorMessage, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
UpdateSession
This is useful in transmitting client side failures (for example, not being able to access 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 update session does not exist.
NotAllowedInCurrentState
- if the update session is not in the UpdateSessionModel.State.ACTIVE
state.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. fail
in interface UpdateSession
updateSessionId
- Identifier of the update session to fail.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.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.public void delete(java.lang.String updateSessionId)
UpdateSession
Removing an update session leaves any current transfers for that session in an indeterminate state (there is no guarantee that the server will terminate the transfers, or that the transfers can be completed). However there will no longer be a means of inspecting the status of those uploads except by seeing the effect on the library item.
Update sessions for which there is no upload activity or which are complete will automatically be deleted after a period of time.
Synchronous method overload. Result of the invocation will be reported as a method return value.
delete
in interface UpdateSession
updateSessionId
- Identifer of the update session to delete.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.public void delete(java.lang.String updateSessionId, InvocationConfig invocationConfig)
UpdateSession
Removing an update session leaves any current transfers for that session in an indeterminate state (there is no guarantee that the server will terminate the transfers, or that the transfers can be completed). However there will no longer be a means of inspecting the status of those uploads except by seeing the effect on the library item.
Update sessions for which there is no upload activity or which are complete will automatically be 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.
delete
in interface UpdateSession
updateSessionId
- Identifer of the update session to delete.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.invocationConfig
- Configuration for the method invocation.public void delete(java.lang.String updateSessionId, AsyncCallback<java.lang.Void> asyncCallback)
UpdateSession
Removing an update session leaves any current transfers for that session in an indeterminate state (there is no guarantee that the server will terminate the transfers, or that the transfers can be completed). However there will no longer be a means of inspecting the status of those uploads except by seeing the effect on the library item.
Update sessions for which there is no upload activity or which are complete will automatically be 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 update session does not exist.
NotAllowedInCurrentState
- if the update session is in the UpdateSessionModel.State.ACTIVE
state.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. delete
in interface UpdateSession
updateSessionId
- Identifer of the update session to delete.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void delete(java.lang.String updateSessionId, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
UpdateSession
Removing an update session leaves any current transfers for that session in an indeterminate state (there is no guarantee that the server will terminate the transfers, or that the transfers can be completed). However there will no longer be a means of inspecting the status of those uploads except by seeing the effect on the library item.
Update sessions for which there is no upload activity or which are complete will automatically be 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 update session does not exist.
NotAllowedInCurrentState
- if the update session is in the UpdateSessionModel.State.ACTIVE
state.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. delete
in interface UpdateSession
updateSessionId
- Identifer of the update session to delete.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void update(java.lang.String updateSessionId, UpdateSessionModel updateSpec)
UpdateSession
This is an incremental update
to the update session. Any property in the UpdateSessionModel
class that is null
will not be modified.
This method will only update the property UpdateSessionModel.getWarningBehavior()
of the
update session. This will not, for example, update the UpdateSessionModel.getLibraryItemId()
or UpdateSessionModel.getState()
of an update
session.
This method requires the session to be in the UpdateSessionModel.State.ACTIVE
state.
Synchronous method overload. Result of the invocation will be reported as a method return value.
update
in interface UpdateSession
updateSessionId
- Identifer of the update session that should be updated.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.updateSpec
- Specification for the new property values to be set on the update session.public void update(java.lang.String updateSessionId, UpdateSessionModel updateSpec, InvocationConfig invocationConfig)
UpdateSession
This is an incremental update
to the update session. Any property in the UpdateSessionModel
class that is null
will not be modified.
This method will only update the property UpdateSessionModel.getWarningBehavior()
of the
update session. This will not, for example, update the UpdateSessionModel.getLibraryItemId()
or UpdateSessionModel.getState()
of an update
session.
This method requires the session to be in the UpdateSessionModel.State.ACTIVE
state.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
update
in interface UpdateSession
updateSessionId
- Identifer of the update session that should be updated.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.updateSpec
- Specification for the new property values to be set on the update session.invocationConfig
- Configuration for the method invocation.public void update(java.lang.String updateSessionId, UpdateSessionModel updateSpec, AsyncCallback<java.lang.Void> asyncCallback)
UpdateSession
This is an incremental update
to the update session. Any property in the UpdateSessionModel
class that is null
will not be modified.
This method will only update the property UpdateSessionModel.getWarningBehavior()
of the
update session. This will not, for example, update the UpdateSessionModel.getLibraryItemId()
or UpdateSessionModel.getState()
of an update
session.
This method requires the session to be in the UpdateSessionModel.State.ACTIVE
state.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if the update session does not exist.
NotAllowedInCurrentState
- if the update session is not in the UpdateSessionModel.State.ACTIVE
state.
InvalidArgument
- if the update session specification is not valid.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. update
in interface UpdateSession
updateSessionId
- Identifer of the update session that should be updated.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.updateSpec
- Specification for the new property values to be set on the update session.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void update(java.lang.String updateSessionId, UpdateSessionModel updateSpec, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
UpdateSession
This is an incremental update
to the update session. Any property in the UpdateSessionModel
class that is null
will not be modified.
This method will only update the property UpdateSessionModel.getWarningBehavior()
of the
update session. This will not, for example, update the UpdateSessionModel.getLibraryItemId()
or UpdateSessionModel.getState()
of an update
session.
This method requires the session to be in the UpdateSessionModel.State.ACTIVE
state.
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 update session does not exist.
NotAllowedInCurrentState
- if the update session is not in the UpdateSessionModel.State.ACTIVE
state.
InvalidArgument
- if the update session specification is not valid.
Unauthorized
- if you do not have all of the privileges described as follows:
System.Anonymous
. update
in interface UpdateSession
updateSessionId
- Identifer of the update session that should be updated.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.updateSpec
- Specification for the new property values to be set on the update session.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.