public interface Library extends Service, LibraryTypes
Library
interface provides methods to manage and find LibraryModel
entities.
The Library
interface
provides support for generic functionality which can be applied equally to all
types of libraries. The functionality provided by this interface will not affect
the properties specific to the type of library. See also LocalLibrary
and SubscribedLibrary
.
LibraryTypes.FindSpec
_VAPI_SERVICE_ID, RESOURCE_TYPE
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.
|
LibraryModel get(java.lang.String libraryId)
LibraryModel
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
libraryId
- 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
.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
. LibraryModel get(java.lang.String libraryId, InvocationConfig invocationConfig)
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.
libraryId
- 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
.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
. void get(java.lang.String libraryId, AsyncCallback<LibraryModel> asyncCallback)
LibraryModel
.
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
. libraryId
- 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.void get(java.lang.String libraryId, AsyncCallback<LibraryModel> asyncCallback, InvocationConfig invocationConfig)
LibraryModel
.
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
. libraryId
- 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.java.util.List<java.lang.String> list()
Synchronous method overload. Result of the invocation will be reported as a method return value.
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
.Unauthorized
- if you do not have all of the privileges described as follows: System.Read
. java.util.List<java.lang.String> list(InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
invocationConfig
- Configuration for the method invocation.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
.Unauthorized
- if you do not have all of the privileges described as follows: System.Read
. void list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
Asynchronous 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
. asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback, InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
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
. asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.java.util.List<java.lang.String> find(LibraryTypes.FindSpec spec)
LibraryTypes.FindSpec
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
spec
- Specification describing what properties to filter on.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
.InvalidArgument
- if no properties are specified in the spec
.Unauthorized
- if you do not have all of the privileges described as follows: System.Read
. java.util.List<java.lang.String> find(LibraryTypes.FindSpec spec, InvocationConfig invocationConfig)
LibraryTypes.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.
spec
- 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
.InvalidArgument
- if no properties are specified in the spec
.Unauthorized
- if you do not have all of the privileges described as follows: System.Read
. void find(LibraryTypes.FindSpec spec, AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
LibraryTypes.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
. spec
- Specification describing what properties to filter on.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void find(LibraryTypes.FindSpec spec, AsyncCallback<java.util.List<java.lang.String>> asyncCallback, InvocationConfig invocationConfig)
LibraryTypes.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
. spec
- Specification describing what properties to filter on.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void update(java.lang.String libraryId, LibraryModel updateSpec)
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.
libraryId
- 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.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
. void update(java.lang.String libraryId, LibraryModel updateSpec, InvocationConfig invocationConfig)
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.
libraryId
- 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.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
. void update(java.lang.String libraryId, LibraryModel updateSpec, AsyncCallback<java.lang.Void> asyncCallback)
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
. libraryId
- 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.void update(java.lang.String libraryId, LibraryModel updateSpec, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
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
. libraryId
- 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.