public class LibraryStub extends com.vmware.vapi.internal.bindings.Stub implements Library
Library
API service.
WARNING: Internal class, subject to change in future versions.
LibraryTypes.FindSpecapiProvider, converter, ifaceId, retryPolicy, securityContext_VAPI_SERVICE_ID, RESOURCE_TYPE| Constructor and Description |
|---|
LibraryStub(ApiProvider apiProvider,
StubConfigurationBase config) |
LibraryStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
find(LibraryTypes.FindSpec spec)
Returns a list of all the visible (as determined by authorization policy)
libraries matching the requested
LibraryTypes.FindSpec. |
void |
find(LibraryTypes.FindSpec spec,
AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
Returns a list of all the visible (as determined by authorization policy)
libraries matching the requested
LibraryTypes.FindSpec. |
void |
find(LibraryTypes.FindSpec spec,
AsyncCallback<java.util.List<java.lang.String>> asyncCallback,
InvocationConfig invocationConfig)
Returns a list of all the visible (as determined by authorization policy)
libraries matching the requested
LibraryTypes.FindSpec. |
java.util.List<java.lang.String> |
find(LibraryTypes.FindSpec spec,
InvocationConfig invocationConfig)
Returns a list of all the visible (as determined by authorization policy)
libraries matching the requested
LibraryTypes.FindSpec. |
LibraryModel |
get(java.lang.String libraryId)
Returns a given
LibraryModel. |
void |
get(java.lang.String libraryId,
AsyncCallback<LibraryModel> asyncCallback)
Returns a given
LibraryModel. |
void |
get(java.lang.String libraryId,
AsyncCallback<LibraryModel> asyncCallback,
InvocationConfig invocationConfig)
Returns a given
LibraryModel. |
LibraryModel |
get(java.lang.String libraryId,
InvocationConfig invocationConfig)
Returns a given
LibraryModel. |
java.util.List<java.lang.String> |
list()
Returns the identifiers of all libraries of any type in the Content Library.
|
void |
list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
Returns the identifiers of all libraries of any type in the Content Library.
|
void |
list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback,
InvocationConfig invocationConfig)
Returns the identifiers of all libraries of any type in the Content Library.
|
java.util.List<java.lang.String> |
list(InvocationConfig invocationConfig)
Returns the identifiers of all libraries of any type in the Content Library.
|
void |
update(java.lang.String libraryId,
LibraryModel updateSpec)
Updates the properties of a library.
|
void |
update(java.lang.String libraryId,
LibraryModel updateSpec,
AsyncCallback<java.lang.Void> asyncCallback)
Updates the properties of a library.
|
void |
update(java.lang.String libraryId,
LibraryModel updateSpec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Updates the properties of a library.
|
void |
update(java.lang.String libraryId,
LibraryModel updateSpec,
InvocationConfig invocationConfig)
Updates the properties of a library.
|
public LibraryStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public LibraryStub(ApiProvider apiProvider, StubConfigurationBase config)
public LibraryModel get(java.lang.String libraryId)
LibraryLibraryModel.
Synchronous method overload. Result of the invocation will be reported as a method return value.
get in interface LibrarylibraryId - Identifier of the library to return.
The parameter must be an identifier for the resource type: com.vmware.content.Library.LibraryModel instance with the specified libraryId.public LibraryModel get(java.lang.String libraryId, InvocationConfig invocationConfig)
LibraryLibraryModel.
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 LibrarylibraryId - Identifier of the library to return.
The parameter must be an identifier for the resource type: com.vmware.content.Library.invocationConfig - Configuration for the method invocation.LibraryModel instance with the specified libraryId.public void get(java.lang.String libraryId,
AsyncCallback<LibraryModel> asyncCallback)
LibraryLibraryModel.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Invocation Result:
The LibraryModel instance with the specified libraryId.
Operation Errors:
NotFound - if the specified library does not exist.
Unauthorized - if you do not have all of the privileges described as follows:
com.vmware.content.Library referenced by the parameter libraryId requires System.Read. public void get(java.lang.String libraryId,
AsyncCallback<LibraryModel> asyncCallback,
InvocationConfig invocationConfig)
LibraryLibraryModel.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Invocation Result:
The LibraryModel instance with the specified libraryId.
Operation Errors:
NotFound - if the specified library does not exist.
Unauthorized - if you do not have all of the privileges described as follows:
com.vmware.content.Library referenced by the parameter libraryId requires System.Read. get in interface LibrarylibraryId - Identifier of the library to return.
The parameter must be an identifier for the resource type: com.vmware.content.Library.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()
LibrarySynchronous method overload. Result of the invocation will be reported as a method return value.
public java.util.List<java.lang.String> list(InvocationConfig invocationConfig)
LibrarySynchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
public void list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
LibraryAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Invocation Result:
The List of all identifiers of all libraries in the Content
Library.
The return value will contain identifiers for the resource type: com.vmware.content.Library.
Operation Errors:
Unauthorized - if you do not have all of the privileges described as follows:
System.Read. public void list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback, InvocationConfig invocationConfig)
LibraryAsynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Invocation Result:
The List of all identifiers of all libraries in the Content
Library.
The return value will contain identifiers for the resource type: com.vmware.content.Library.
Operation Errors:
Unauthorized - if you do not have all of the privileges described as follows:
System.Read. public java.util.List<java.lang.String> find(LibraryTypes.FindSpec spec)
LibraryLibraryTypes.FindSpec.
Synchronous method overload. Result of the invocation will be reported as a method return value.
public java.util.List<java.lang.String> find(LibraryTypes.FindSpec spec, InvocationConfig invocationConfig)
LibraryLibraryTypes.FindSpec.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig to specify configuration for this particular invocation.
find in interface Libraryspec - Specification describing what properties to filter on.invocationConfig - Configuration for the method invocation.List of identifiers of all the visible libraries matching
the given spec.
The return value will contain identifiers for the resource type: com.vmware.content.Library.public void find(LibraryTypes.FindSpec spec, AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
LibraryLibraryTypes.FindSpec.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Invocation Result:
The List of identifiers of all the visible libraries matching
the given spec.
The return value will contain identifiers for the resource type: com.vmware.content.Library.
Operation Errors:
InvalidArgument - if no properties are specified in the spec.
Unauthorized - if you do not have all of the privileges described as follows:
System.Read. public void find(LibraryTypes.FindSpec spec, AsyncCallback<java.util.List<java.lang.String>> asyncCallback, InvocationConfig invocationConfig)
LibraryLibraryTypes.FindSpec.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Use invocationConfig to specify configuration for this particular invocation.
Invocation Result:
The List of identifiers of all the visible libraries matching
the given spec.
The return value will contain identifiers for the resource type: com.vmware.content.Library.
Operation Errors:
InvalidArgument - if no properties are specified in the spec.
Unauthorized - if you do not have all of the privileges described as follows:
System.Read. public void update(java.lang.String libraryId,
LibraryModel updateSpec)
Library This is an incremental update to the
library. Any property in the LibraryModel class that
is null will not be modified.
This method will only update the
common properties for all library types. This will not, for example, update the
LibraryModel.getPublishInfo() of a local library, nor
the LibraryModel.getSubscriptionInfo() of a subscribed
library. Specific properties are updated in LocalLibrary.update(java.lang.String, com.vmware.content.LibraryModel) and SubscribedLibrary.update(java.lang.String, com.vmware.content.LibraryModel).
Synchronous method overload. Result of the invocation will be reported as a method return value.
public void update(java.lang.String libraryId,
LibraryModel updateSpec,
InvocationConfig invocationConfig)
Library This is an incremental update to the
library. Any property in the LibraryModel class that
is null will not be modified.
This method will only update the
common properties for all library types. This will not, for example, update the
LibraryModel.getPublishInfo() of a local library, nor
the LibraryModel.getSubscriptionInfo() of a subscribed
library. Specific properties are updated in LocalLibrary.update(java.lang.String, com.vmware.content.LibraryModel) and SubscribedLibrary.update(java.lang.String, com.vmware.content.LibraryModel).
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 LibrarylibraryId - Identifier of the library to update.
The parameter must be an identifier for the resource type: com.vmware.content.Library.updateSpec - Specification of the new property values to set on the library.invocationConfig - Configuration for the method invocation.public void update(java.lang.String libraryId,
LibraryModel updateSpec,
AsyncCallback<java.lang.Void> asyncCallback)
Library This is an incremental update to the
library. Any property in the LibraryModel class that
is null will not be modified.
This method will only update the
common properties for all library types. This will not, for example, update the
LibraryModel.getPublishInfo() of a local library, nor
the LibraryModel.getSubscriptionInfo() of a subscribed
library. Specific properties are updated in LocalLibrary.update(java.lang.String, com.vmware.content.LibraryModel) and SubscribedLibrary.update(java.lang.String, com.vmware.content.LibraryModel).
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback.
Operation Errors:
NotFound - if the library associated with libraryId does not exist.
InvalidArgument - if the updateSpec is not valid.
InvalidArgument - if the LibraryModel.getVersion() of updateSpec
is not equal to the current version of the library.
Unauthorized - if you do not have all of the privileges described as follows:
com.vmware.content.Library referenced by the parameter libraryId requires ContentLibrary.UpdateLibrary. update in interface LibrarylibraryId - Identifier of the library to update.
The parameter must be an identifier for the resource type: com.vmware.content.Library.updateSpec - Specification of the new property values to set on the library.asyncCallback - Receives the status (progress, result or error) of the operation invocation.public void update(java.lang.String libraryId,
LibraryModel updateSpec,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Library This is an incremental update to the
library. Any property in the LibraryModel class that
is null will not be modified.
This method will only update the
common properties for all library types. This will not, for example, update the
LibraryModel.getPublishInfo() of a local library, nor
the LibraryModel.getSubscriptionInfo() of a subscribed
library. Specific properties are updated in LocalLibrary.update(java.lang.String, com.vmware.content.LibraryModel) and SubscribedLibrary.update(java.lang.String, com.vmware.content.LibraryModel).
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 library associated with libraryId does not exist.
InvalidArgument - if the updateSpec is not valid.
InvalidArgument - if the LibraryModel.getVersion() of updateSpec
is not equal to the current version of the library.
Unauthorized - if you do not have all of the privileges described as follows:
com.vmware.content.Library referenced by the parameter libraryId requires ContentLibrary.UpdateLibrary. update in interface LibrarylibraryId - Identifier of the library to update.
The parameter must be an identifier for the resource type: com.vmware.content.Library.updateSpec - Specification of the new property values to set on the library.asyncCallback - Receives the status (progress, result or error) of the operation invocation.invocationConfig - Configuration for the method invocation.