public interface Source extends Service, SourceTypes
Source
interface provides methods to manage the sources of privilege
metadata information.
The interface definition language infrastructure provides tools to generate various kinds of metadata in JSON format from the interface definition files and additional properties files. One of the generated files contains privilege information. The generated file can be registered as a source of metadata.
The privilege file contains all the data present in the interface definition files. Each privilege file contains data about one component element. When a privilege file is added as a source, each source contributes only one component element's metadata.
Privilege metadata
can also be discovered from a remote server that supports the privilege metadata
interfaces (see com.vmware.vapi.metadata.privilege
). Since multiple
components can be registered with a single metadata server, when a remote server
is registered as a source, that source can contribute more than one
component.
SourceTypes.CreateSpec, SourceTypes.Info
RESOURCE_TYPE
Modifier and Type | Method and Description |
---|---|
void |
create(String sourceId,
SourceTypes.CreateSpec spec)
Creates a new metadata source.
|
void |
create(String sourceId,
SourceTypes.CreateSpec spec,
AsyncCallback<Void> asyncCallback)
Creates a new metadata source.
|
void |
create(String sourceId,
SourceTypes.CreateSpec spec,
AsyncCallback<Void> asyncCallback,
InvocationConfig invocationConfig)
Creates a new metadata source.
|
void |
create(String sourceId,
SourceTypes.CreateSpec spec,
InvocationConfig invocationConfig)
Creates a new metadata source.
|
void |
delete(String sourceId)
Deletes an existing privilege metadata source from the infrastructure.
|
void |
delete(String sourceId,
AsyncCallback<Void> asyncCallback)
Deletes an existing privilege metadata source from the infrastructure.
|
void |
delete(String sourceId,
AsyncCallback<Void> asyncCallback,
InvocationConfig invocationConfig)
Deletes an existing privilege metadata source from the infrastructure.
|
void |
delete(String sourceId,
InvocationConfig invocationConfig)
Deletes an existing privilege metadata source from the infrastructure.
|
String |
fingerprint(String sourceId)
Returns the aggregate fingerprint of metadata from all the metadata sources or
from a particular metadata source if
sourceId is specified. |
void |
fingerprint(String sourceId,
AsyncCallback<String> asyncCallback)
Returns the aggregate fingerprint of metadata from all the metadata sources or
from a particular metadata source if
sourceId is specified. |
void |
fingerprint(String sourceId,
AsyncCallback<String> asyncCallback,
InvocationConfig invocationConfig)
Returns the aggregate fingerprint of metadata from all the metadata sources or
from a particular metadata source if
sourceId is specified. |
String |
fingerprint(String sourceId,
InvocationConfig invocationConfig)
Returns the aggregate fingerprint of metadata from all the metadata sources or
from a particular metadata source if
sourceId is specified. |
SourceTypes.Info |
get(String sourceId)
Retrieves information about the metadata source corresponding to
sourceId . |
void |
get(String sourceId,
AsyncCallback<SourceTypes.Info> asyncCallback)
Retrieves information about the metadata source corresponding to
sourceId . |
void |
get(String sourceId,
AsyncCallback<SourceTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Retrieves information about the metadata source corresponding to
sourceId . |
SourceTypes.Info |
get(String sourceId,
InvocationConfig invocationConfig)
Retrieves information about the metadata source corresponding to
sourceId . |
List<String> |
list()
Returns the identifiers of the metadata sources currently registered with the
infrastructure.
|
void |
list(AsyncCallback<List<String>> asyncCallback)
Returns the identifiers of the metadata sources currently registered with the
infrastructure.
|
void |
list(AsyncCallback<List<String>> asyncCallback,
InvocationConfig invocationConfig)
Returns the identifiers of the metadata sources currently registered with the
infrastructure.
|
List<String> |
list(InvocationConfig invocationConfig)
Returns the identifiers of the metadata sources currently registered with the
infrastructure.
|
void |
reload(String sourceId)
Reloads the privilege metadata from all the metadata sources or of a particular
metadata source if
sourceId is specified. |
void |
reload(String sourceId,
AsyncCallback<Void> asyncCallback)
Reloads the privilege metadata from all the metadata sources or of a particular
metadata source if
sourceId is specified. |
void |
reload(String sourceId,
AsyncCallback<Void> asyncCallback,
InvocationConfig invocationConfig)
Reloads the privilege metadata from all the metadata sources or of a particular
metadata source if
sourceId is specified. |
void |
reload(String sourceId,
InvocationConfig invocationConfig)
Reloads the privilege metadata from all the metadata sources or of a particular
metadata source if
sourceId is specified. |
void create(String sourceId, SourceTypes.CreateSpec spec)
com.vmware.vapi.metadata.privilege
package.
Synchronous method overload. Result of the invocation will be reported as a method return value.
sourceId
- metadata source identifier.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.privilege.source
.spec
- create specification.AlreadyExists
- if the metadata source identifier is already registered with the infrastructure.InvalidArgument
- if the type of the source specified in CreateSpec#type
is invalid.InvalidArgument
- if the file specified in CreateSpec#filepath
is not a valid JSON file or
if the format of the privilege metadata in the JSON file is invalid.InvalidArgument
- if the URI specified in CreateSpec#address
is unreachable or if there is
a transport protocol or message protocol mismatch between the client and the
server or if the remote server do not have interfaces present in com.vmware.vapi.metadata.privilege
package.NotFound
- if the file specified in CreateSpec#filepath
does not exist.void create(String sourceId, SourceTypes.CreateSpec spec, InvocationConfig invocationConfig)
com.vmware.vapi.metadata.privilege
package.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
sourceId
- metadata source identifier.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.privilege.source
.spec
- create specification.invocationConfig
- Configuration for the method invocation.AlreadyExists
- if the metadata source identifier is already registered with the infrastructure.InvalidArgument
- if the type of the source specified in CreateSpec#type
is invalid.InvalidArgument
- if the file specified in CreateSpec#filepath
is not a valid JSON file or
if the format of the privilege metadata in the JSON file is invalid.InvalidArgument
- if the URI specified in CreateSpec#address
is unreachable or if there is
a transport protocol or message protocol mismatch between the client and the
server or if the remote server do not have interfaces present in com.vmware.vapi.metadata.privilege
package.NotFound
- if the file specified in CreateSpec#filepath
does not exist.void create(String sourceId, SourceTypes.CreateSpec spec, AsyncCallback<Void> asyncCallback)
com.vmware.vapi.metadata.privilege
package.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
AlreadyExists
- if the metadata source identifier is already registered with the infrastructure.
InvalidArgument
- if the type of the source specified in CreateSpec#type
is invalid.
InvalidArgument
- if the file specified in CreateSpec#filepath
is not a valid JSON file or
if the format of the privilege metadata in the JSON file is invalid.
InvalidArgument
- if the URI specified in CreateSpec#address
is unreachable or if there is
a transport protocol or message protocol mismatch between the client and the
server or if the remote server do not have interfaces present in com.vmware.vapi.metadata.privilege
package.
NotFound
- if the file specified in CreateSpec#filepath
does not exist.
sourceId
- metadata source identifier.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.privilege.source
.spec
- create specification.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void create(String sourceId, SourceTypes.CreateSpec spec, AsyncCallback<Void> asyncCallback, InvocationConfig invocationConfig)
com.vmware.vapi.metadata.privilege
package.
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:
AlreadyExists
- if the metadata source identifier is already registered with the infrastructure.
InvalidArgument
- if the type of the source specified in CreateSpec#type
is invalid.
InvalidArgument
- if the file specified in CreateSpec#filepath
is not a valid JSON file or
if the format of the privilege metadata in the JSON file is invalid.
InvalidArgument
- if the URI specified in CreateSpec#address
is unreachable or if there is
a transport protocol or message protocol mismatch between the client and the
server or if the remote server do not have interfaces present in com.vmware.vapi.metadata.privilege
package.
NotFound
- if the file specified in CreateSpec#filepath
does not exist.
sourceId
- metadata source identifier.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.privilege.source
.spec
- create specification.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void delete(String sourceId)
Synchronous method overload. Result of the invocation will be reported as a method return value.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.privilege.source
.NotFound
- if the metadata source associated with sourceId
is not found.void delete(String sourceId, 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.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.privilege.source
.invocationConfig
- Configuration for the method invocation.NotFound
- if the metadata source associated with sourceId
is not found.void delete(String sourceId, AsyncCallback<Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if the metadata source associated with sourceId
is not found.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.privilege.source
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void delete(String sourceId, AsyncCallback<Void> 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 Errors:
NotFound
- if the metadata source associated with sourceId
is not found.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.privilege.source
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.SourceTypes.Info get(String sourceId)
sourceId
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.privilege.source
.SourceTypes.Info
instance that
corresponds to sourceId
NotFound
- if the metadata source associated with sourceId
is not found.SourceTypes.Info get(String sourceId, InvocationConfig invocationConfig)
sourceId
.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.privilege.source
.invocationConfig
- Configuration for the method invocation.SourceTypes.Info
instance that
corresponds to sourceId
NotFound
- if the metadata source associated with sourceId
is not found.void get(String sourceId, AsyncCallback<SourceTypes.Info> asyncCallback)
sourceId
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The SourceTypes.Info
instance that
corresponds to sourceId
Operation Errors:
NotFound
- if the metadata source associated with sourceId
is not found.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.privilege.source
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(String sourceId, AsyncCallback<SourceTypes.Info> asyncCallback, InvocationConfig invocationConfig)
sourceId
.
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 SourceTypes.Info
instance that
corresponds to sourceId
Operation Errors:
NotFound
- if the metadata source associated with sourceId
is not found.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.privilege.source
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.List<String> list()
Synchronous method overload. Result of the invocation will be reported as a method return value.
com.vmware.vapi.metadata.privilege.source
.List<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.metadata.privilege.source
.void list(AsyncCallback<List<String>> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The list of identifiers for metadata sources currently registered.
The return value will contain identifiers for the resource type: com.vmware.vapi.metadata.privilege.source
.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(AsyncCallback<List<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 metadata sources currently registered.
The return value will contain identifiers for the resource type: com.vmware.vapi.metadata.privilege.source
.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void reload(String sourceId)
sourceId
is specified.
Synchronous method overload. Result of the invocation will be reported as a method return value.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.privilege.source
.
If unspecified, all the metadata sources are reloaded.NotFound
- if the metadata source associated with sourceId
is not found.void reload(String sourceId, InvocationConfig invocationConfig)
sourceId
is specified.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.privilege.source
.
If unspecified, all the metadata sources are reloaded.invocationConfig
- Configuration for the method invocation.NotFound
- if the metadata source associated with sourceId
is not found.void reload(String sourceId, AsyncCallback<Void> asyncCallback)
sourceId
is specified.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if the metadata source associated with sourceId
is not found.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.privilege.source
.
If unspecified, all the metadata sources are reloaded.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void reload(String sourceId, AsyncCallback<Void> asyncCallback, InvocationConfig invocationConfig)
sourceId
is specified.
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 metadata source associated with sourceId
is not found.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.privilege.source
.
If unspecified, all the metadata sources are reloaded.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.String fingerprint(String sourceId)
sourceId
is specified.
Synchronous method overload. Result of the invocation will be reported as a method return value.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.privilege.source
.
If unspecified, the fingerprint of all the metadata sources is returned.NotFound
- if the metadata source associated with sourceId
is not found.String fingerprint(String sourceId, InvocationConfig invocationConfig)
sourceId
is specified.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.privilege.source
.
If unspecified, the fingerprint of all the metadata sources is returned.invocationConfig
- Configuration for the method invocation.NotFound
- if the metadata source associated with sourceId
is not found.void fingerprint(String sourceId, AsyncCallback<String> asyncCallback)
sourceId
is specified.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Aggregate fingerprint of all the metadata sources or of a particular metadata
source.
Operation Errors:
NotFound
- if the metadata source associated with sourceId
is not found.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.privilege.source
.
If unspecified, the fingerprint of all the metadata sources is returned.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void fingerprint(String sourceId, AsyncCallback<String> asyncCallback, InvocationConfig invocationConfig)
sourceId
is specified.
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:
Aggregate fingerprint of all the metadata sources or of a particular metadata
source.
Operation Errors:
NotFound
- if the metadata source associated with sourceId
is not found.
sourceId
- Identifier of the metadata source.
The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.privilege.source
.
If unspecified, the fingerprint of all the metadata sources is returned.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.Copyright © 2015. All Rights Reserved.