public interface Component extends Service, ComponentTypes
Component
interface providers methods to retrieve metamodel
information of a component element.
A component defines a set of functionality that is deployed together and versioned together. For example, all the interfaces that belong to VMware Content Library are part of a single component. A component element describes a component. A component element contains one or more package elements.
The methods for package elements
are provided by interface Package
.
RESOURCE_TYPE
Modifier and Type | Method and Description |
---|---|
java.lang.String |
fingerprint(java.lang.String componentId)
Retrieves the fingerprint computed from the metamodel metadata of the component
element corresponding to
componentId . |
void |
fingerprint(java.lang.String componentId,
AsyncCallback<java.lang.String> asyncCallback)
Retrieves the fingerprint computed from the metamodel metadata of the component
element corresponding to
componentId . |
void |
fingerprint(java.lang.String componentId,
AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Retrieves the fingerprint computed from the metamodel metadata of the component
element corresponding to
componentId . |
java.lang.String |
fingerprint(java.lang.String componentId,
InvocationConfig invocationConfig)
Retrieves the fingerprint computed from the metamodel metadata of the component
element corresponding to
componentId . |
ComponentData |
get(java.lang.String componentId)
Retrieves metamodel information about the component element corresponding to
componentId . |
void |
get(java.lang.String componentId,
AsyncCallback<ComponentData> asyncCallback)
Retrieves metamodel information about the component element corresponding to
componentId . |
void |
get(java.lang.String componentId,
AsyncCallback<ComponentData> asyncCallback,
InvocationConfig invocationConfig)
Retrieves metamodel information about the component element corresponding to
componentId . |
ComponentData |
get(java.lang.String componentId,
InvocationConfig invocationConfig)
Retrieves metamodel information about the component element corresponding to
componentId . |
java.util.List<java.lang.String> |
list()
Returns the identifiers for the component elements that are registered with the
infrastructure.
|
void |
list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
Returns the identifiers for the component elements that are registered with the
infrastructure.
|
void |
list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback,
InvocationConfig invocationConfig)
Returns the identifiers for the component elements that are registered with the
infrastructure.
|
java.util.List<java.lang.String> |
list(InvocationConfig invocationConfig)
Returns the identifiers for the component elements that are registered with the
infrastructure.
|
java.util.List<java.lang.String> list()
Synchronous method overload. Result of the invocation will be reported as a method return value.
com.vmware.vapi.component
.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.com.vmware.vapi.component
.void list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The list of identifiers for the component elements that are registered with the
infrastructure.
The return value will contain identifiers for the resource type: com.vmware.vapi.component
.
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.
Operation Result:
The list of identifiers for the component elements that are registered with the
infrastructure.
The return value will contain identifiers for the resource type: com.vmware.vapi.component
.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.ComponentData get(java.lang.String componentId)
componentId
.
The ComponentData
contains the metamodel
information about the component and it's fingerprint. It contains information
about all the package elements that are contained in this component element.
Synchronous method overload. Result of the invocation will be reported as a method return value.
componentId
- Identifier of the component element.
The parameter must be an identifier for the resource type: com.vmware.vapi.component
.ComponentData
instance that
corresponds to componentId
.NotFound
- if the component element associated with componentId
is not registered
with the infrastructure.ComponentData get(java.lang.String componentId, InvocationConfig invocationConfig)
componentId
.
The ComponentData
contains the metamodel
information about the component and it's fingerprint. It contains information
about all the package elements that are contained in this component element.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
componentId
- Identifier of the component element.
The parameter must be an identifier for the resource type: com.vmware.vapi.component
.invocationConfig
- Configuration for the method invocation.ComponentData
instance that
corresponds to componentId
.NotFound
- if the component element associated with componentId
is not registered
with the infrastructure.void get(java.lang.String componentId, AsyncCallback<ComponentData> asyncCallback)
componentId
.
The ComponentData
contains the metamodel
information about the component and it's fingerprint. It contains information
about all the package elements that are contained in this component element.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The ComponentData
instance that
corresponds to componentId
.
Operation Errors:
NotFound
- if the component element associated with componentId
is not registered
with the infrastructure.
componentId
- Identifier of the component element.
The parameter must be an identifier for the resource type: com.vmware.vapi.component
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String componentId, AsyncCallback<ComponentData> asyncCallback, InvocationConfig invocationConfig)
componentId
.
The ComponentData
contains the metamodel
information about the component and it's fingerprint. It contains information
about all the package elements that are contained in this component element.
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 ComponentData
instance that
corresponds to componentId
.
Operation Errors:
NotFound
- if the component element associated with componentId
is not registered
with the infrastructure.
componentId
- Identifier of the component element.
The parameter must be an identifier for the resource type: com.vmware.vapi.component
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.java.lang.String fingerprint(java.lang.String componentId)
componentId
.
The fingerprint provides
clients an efficient way to check if the metadata for a particular component
element has been modified on the server. The client can do this by comparing the
result of this operation with the fingerprint returned in the result of get(java.lang.String)
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
componentId
- Identifier of the component element.
The parameter must be an identifier for the resource type: com.vmware.vapi.component
.NotFound
- if the component element associated with componentId
is not registered
with the infrastructure.java.lang.String fingerprint(java.lang.String componentId, InvocationConfig invocationConfig)
componentId
.
The fingerprint provides
clients an efficient way to check if the metadata for a particular component
element has been modified on the server. The client can do this by comparing the
result of this operation with the fingerprint returned in the result of get(java.lang.String)
.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
componentId
- Identifier of the component element.
The parameter must be an identifier for the resource type: com.vmware.vapi.component
.invocationConfig
- Configuration for the method invocation.NotFound
- if the component element associated with componentId
is not registered
with the infrastructure.void fingerprint(java.lang.String componentId, AsyncCallback<java.lang.String> asyncCallback)
componentId
.
The fingerprint provides
clients an efficient way to check if the metadata for a particular component
element has been modified on the server. The client can do this by comparing the
result of this operation with the fingerprint returned in the result of get(java.lang.String)
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The fingerprint computed from the metamodel metadata of the component element.
Operation Errors:
NotFound
- if the component element associated with componentId
is not registered
with the infrastructure.
componentId
- Identifier of the component element.
The parameter must be an identifier for the resource type: com.vmware.vapi.component
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void fingerprint(java.lang.String componentId, AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
componentId
.
The fingerprint provides
clients an efficient way to check if the metadata for a particular component
element has been modified on the server. The client can do this by comparing the
result of this operation with the fingerprint returned in the result of get(java.lang.String)
.
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 fingerprint computed from the metamodel metadata of the component element.
Operation Errors:
NotFound
- if the component element associated with componentId
is not registered
with the infrastructure.
componentId
- Identifier of the component element.
The parameter must be an identifier for the resource type: com.vmware.vapi.component
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.