public class UpdateSessionStub extends com.vmware.vapi.internal.bindings.Stub implements UpdateSession
UpdateSession
API service.
WARNING: Internal API, subject to change in future versions.
RESOURCE_TYPE| Constructor and Description |
|---|
UpdateSessionStub(ApiProvider apiProvider,
StubConfigurationBase config) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(String updateSessionId)
Cancels the update session and deletes it.
|
void |
cancel(String updateSessionId,
AsyncCallback<Void> asyncCallback)
Cancels the update session and deletes it.
|
void |
cancel(String updateSessionId,
AsyncCallback<Void> asyncCallback,
InvocationConfig invocationConfig)
Cancels the update session and deletes it.
|
void |
cancel(String updateSessionId,
InvocationConfig invocationConfig)
Cancels the update session and deletes it.
|
void |
complete(String updateSessionId)
Completes the update session.
|
void |
complete(String updateSessionId,
AsyncCallback<Void> asyncCallback)
Completes the update session.
|
void |
complete(String updateSessionId,
AsyncCallback<Void> asyncCallback,
InvocationConfig invocationConfig)
Completes the update session.
|
void |
complete(String updateSessionId,
InvocationConfig invocationConfig)
Completes the update session.
|
String |
create(String clientToken,
UpdateSessionModel createSpec)
Creates a new update session.
|
void |
create(String clientToken,
UpdateSessionModel createSpec,
AsyncCallback<String> asyncCallback)
Creates a new update session.
|
void |
create(String clientToken,
UpdateSessionModel createSpec,
AsyncCallback<String> asyncCallback,
InvocationConfig invocationConfig)
Creates a new update session.
|
String |
create(String clientToken,
UpdateSessionModel createSpec,
InvocationConfig invocationConfig)
Creates a new update session.
|
void |
delete(String updateSessionId)
Deletes an update session.
|
void |
delete(String updateSessionId,
AsyncCallback<Void> asyncCallback)
Deletes an update session.
|
void |
delete(String updateSessionId,
AsyncCallback<Void> asyncCallback,
InvocationConfig invocationConfig)
Deletes an update session.
|
void |
delete(String updateSessionId,
InvocationConfig invocationConfig)
Deletes an update session.
|
void |
fail(String updateSessionId,
String clientErrorMessage)
Terminates the update session with a client specified error message.
|
void |
fail(String updateSessionId,
String clientErrorMessage,
AsyncCallback<Void> asyncCallback)
Terminates the update session with a client specified error message.
|
void |
fail(String updateSessionId,
String clientErrorMessage,
AsyncCallback<Void> asyncCallback,
InvocationConfig invocationConfig)
Terminates the update session with a client specified error message.
|
void |
fail(String updateSessionId,
String clientErrorMessage,
InvocationConfig invocationConfig)
Terminates the update session with a client specified error message.
|
UpdateSessionModel |
get(String updateSessionId)
Gets the update session with the specified identifier, including the most
up-to-date status information for the session.
|
void |
get(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(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(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(String updateSessionId,
Long clientProgress)
Keeps an update session alive.
|
void |
keepAlive(String updateSessionId,
Long clientProgress,
AsyncCallback<Void> asyncCallback)
Keeps an update session alive.
|
void |
keepAlive(String updateSessionId,
Long clientProgress,
AsyncCallback<Void> asyncCallback,
InvocationConfig invocationConfig)
Keeps an update session alive.
|
void |
keepAlive(String updateSessionId,
Long clientProgress,
InvocationConfig invocationConfig)
Keeps an update session alive.
|
List<String> |
list(String libraryItemId)
Lists the identifiers of the update session created by the calling user.
|
void |
list(String libraryItemId,
AsyncCallback<List<String>> asyncCallback)
Lists the identifiers of the update session created by the calling user.
|
void |
list(String libraryItemId,
AsyncCallback<List<String>> asyncCallback,
InvocationConfig invocationConfig)
Lists the identifiers of the update session created by the calling user.
|
List<String> |
list(String libraryItemId,
InvocationConfig invocationConfig)
Lists the identifiers of the update session created by the calling user.
|
public UpdateSessionStub(ApiProvider apiProvider, StubConfigurationBase config)
public String create(String clientToken, UpdateSessionModel createSpec)
UpdateSessionContent 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 UpdateSessionclientToken - 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 String create(String clientToken, UpdateSessionModel createSpec, InvocationConfig invocationConfig)
UpdateSessionContent 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 UpdateSessionclientToken - 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(String clientToken, UpdateSessionModel createSpec, AsyncCallback<String> asyncCallback)
UpdateSessionContent 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 UpdateSessionclientToken - 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(String clientToken, UpdateSessionModel createSpec, AsyncCallback<String> asyncCallback, InvocationConfig invocationConfig)
UpdateSessionContent 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 UpdateSessionclientToken - 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(String updateSessionId)
UpdateSessionSynchronous method overload. Result of the invocation will be reported as a method return value.
get in interface UpdateSessionupdateSessionId - 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(String updateSessionId, InvocationConfig invocationConfig)
UpdateSessionSynchronous 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 UpdateSessionupdateSessionId - 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(String updateSessionId, AsyncCallback<UpdateSessionModel> asyncCallback)
UpdateSessionAsynchronous 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 UpdateSessionupdateSessionId - 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(String updateSessionId, AsyncCallback<UpdateSessionModel> asyncCallback, InvocationConfig invocationConfig)
UpdateSessionAsynchronous 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 UpdateSessionupdateSessionId - 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 List<String> list(String libraryItemId)
UpdateSessionSynchronous method overload. Result of the invocation will be reported as a method return value.
list in interface UpdateSessionlibraryItemId - 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 List<String> list(String libraryItemId, InvocationConfig invocationConfig)
UpdateSessionSynchronous 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 UpdateSessionlibraryItemId - 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(String libraryItemId, AsyncCallback<List<String>> asyncCallback)
UpdateSessionAsynchronous 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 UpdateSessionlibraryItemId - 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(String libraryItemId, AsyncCallback<List<String>> asyncCallback, InvocationConfig invocationConfig)
UpdateSessionAsynchronous 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 UpdateSessionlibraryItemId - 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(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 UpdateSessionupdateSessionId - 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(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 UpdateSessionupdateSessionId - 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(String updateSessionId, AsyncCallback<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 UpdateSessionupdateSessionId - 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(String updateSessionId, AsyncCallback<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 UpdateSessionupdateSessionId - 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(String updateSessionId, Long clientProgress)
UpdateSessionIf 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 UpdateSessionupdateSessionId - 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(String updateSessionId, Long clientProgress, InvocationConfig invocationConfig)
UpdateSessionIf 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 UpdateSessionupdateSessionId - 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(String updateSessionId, Long clientProgress, AsyncCallback<Void> asyncCallback)
UpdateSessionIf 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 UpdateSessionupdateSessionId - 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(String updateSessionId, Long clientProgress, AsyncCallback<Void> asyncCallback, InvocationConfig invocationConfig)
UpdateSessionIf 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 UpdateSessionupdateSessionId - 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(String updateSessionId)
UpdateSessionThis 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 UpdateSessionupdateSessionId - 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(String updateSessionId, InvocationConfig invocationConfig)
UpdateSessionThis 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 UpdateSessionupdateSessionId - 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(String updateSessionId, AsyncCallback<Void> asyncCallback)
UpdateSessionThis 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 UpdateSessionupdateSessionId - 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(String updateSessionId, AsyncCallback<Void> asyncCallback, InvocationConfig invocationConfig)
UpdateSessionThis 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 UpdateSessionupdateSessionId - 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(String updateSessionId, String clientErrorMessage)
UpdateSessionThis 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 UpdateSessionupdateSessionId - 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(String updateSessionId, String clientErrorMessage, InvocationConfig invocationConfig)
UpdateSessionThis 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 UpdateSessionupdateSessionId - 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(String updateSessionId, String clientErrorMessage, AsyncCallback<Void> asyncCallback)
UpdateSessionThis 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 UpdateSessionupdateSessionId - 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(String updateSessionId, String clientErrorMessage, AsyncCallback<Void> asyncCallback, InvocationConfig invocationConfig)
UpdateSessionThis 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 UpdateSessionupdateSessionId - 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(String updateSessionId)
UpdateSessionRemoving 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 UpdateSessionupdateSessionId - 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(String updateSessionId, InvocationConfig invocationConfig)
UpdateSessionRemoving 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 UpdateSessionupdateSessionId - 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(String updateSessionId, AsyncCallback<Void> asyncCallback)
UpdateSessionRemoving 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 UpdateSessionupdateSessionId - 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(String updateSessionId, AsyncCallback<Void> asyncCallback, InvocationConfig invocationConfig)
UpdateSessionRemoving 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 UpdateSessionupdateSessionId - 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.Copyright © 2016. All Rights Reserved.