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