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