public interface Service extends Service, ServiceTypes
Service
interface provides methods to retrieve authentication
information of a service element.
A service element is said to contain authentication information if there is a default authentication assigned to all operation elements contained in a service element or if one of the operation elements contained in this service element has authentication information.
RESOURCE_TYPE
Modifier and Type | Method and Description |
---|---|
ServiceInfo |
get(java.lang.String serviceId)
Retrieves authentication information about the service element corresponding to
serviceId . |
void |
get(java.lang.String serviceId,
AsyncCallback<ServiceInfo> asyncCallback)
Retrieves authentication information about the service element corresponding to
serviceId . |
void |
get(java.lang.String serviceId,
AsyncCallback<ServiceInfo> asyncCallback,
InvocationConfig invocationConfig)
Retrieves authentication information about the service element corresponding to
serviceId . |
ServiceInfo |
get(java.lang.String serviceId,
InvocationConfig invocationConfig)
Retrieves authentication information about the service element corresponding to
serviceId . |
java.util.List<java.lang.String> |
list()
Returns the identifiers for the service elements that have authentication
information.
|
void |
list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
Returns the identifiers for the service elements that have authentication
information.
|
void |
list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback,
InvocationConfig invocationConfig)
Returns the identifiers for the service elements that have authentication
information.
|
java.util.List<java.lang.String> |
list(InvocationConfig invocationConfig)
Returns the identifiers for the service elements that have authentication
information.
|
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.service
.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.service
.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 service elements that have authentication
information.
The return value will contain identifiers for the resource type: com.vmware.vapi.service
.
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 service elements that have authentication
information.
The return value will contain identifiers for the resource type: com.vmware.vapi.service
.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.ServiceInfo get(java.lang.String serviceId)
serviceId
.
Synchronous method overload. Result of the invocation will be reported as a method return value.
serviceId
- Identifier of the service element.
The parameter must be an identifier for the resource type: com.vmware.vapi.service
.ServiceInfo
instance that
corresponds to serviceId
NotFound
- if the service element associated with serviceId
does not have any
authentication information.ServiceInfo get(java.lang.String serviceId, InvocationConfig invocationConfig)
serviceId
.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
serviceId
- Identifier of the service element.
The parameter must be an identifier for the resource type: com.vmware.vapi.service
.invocationConfig
- Configuration for the method invocation.ServiceInfo
instance that
corresponds to serviceId
NotFound
- if the service element associated with serviceId
does not have any
authentication information.void get(java.lang.String serviceId, AsyncCallback<ServiceInfo> asyncCallback)
serviceId
.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The ServiceInfo
instance that
corresponds to serviceId
Operation Errors:
NotFound
- if the service element associated with serviceId
does not have any
authentication information.
serviceId
- Identifier of the service element.
The parameter must be an identifier for the resource type: com.vmware.vapi.service
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String serviceId, AsyncCallback<ServiceInfo> asyncCallback, InvocationConfig invocationConfig)
serviceId
.
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 ServiceInfo
instance that
corresponds to serviceId
Operation Errors:
NotFound
- if the service element associated with serviceId
does not have any
authentication information.
serviceId
- Identifier of the service element.
The parameter must be an identifier for the resource type: com.vmware.vapi.service
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.