public interface Package extends Service, PackageTypes
Package
interface provides methods to retrieve authentication
information of a package element.
A package element is said to contain authentication information if there is a default authentication assigned to all service elements contained in the package element or if one of the service element contained in this package element has authentication information.
RESOURCE_TYPE
Modifier and Type | Method and Description |
---|---|
PackageInfo |
get(java.lang.String packageId)
Retrieves authentication information about the package element corresponding to
packageId . |
void |
get(java.lang.String packageId,
AsyncCallback<PackageInfo> asyncCallback)
Retrieves authentication information about the package element corresponding to
packageId . |
void |
get(java.lang.String packageId,
AsyncCallback<PackageInfo> asyncCallback,
InvocationConfig invocationConfig)
Retrieves authentication information about the package element corresponding to
packageId . |
PackageInfo |
get(java.lang.String packageId,
InvocationConfig invocationConfig)
Retrieves authentication information about the package element corresponding to
packageId . |
java.util.List<java.lang.String> |
list()
Returns the identifiers for the package elements that have authentication
information.
|
void |
list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
Returns the identifiers for the package elements that have authentication
information.
|
void |
list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback,
InvocationConfig invocationConfig)
Returns the identifiers for the package elements that have authentication
information.
|
java.util.List<java.lang.String> |
list(InvocationConfig invocationConfig)
Returns the identifiers for the package 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.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
.
Operation Result:
The list of identifiers for the package elements that have authentication
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.
Operation Result:
The list of identifiers for the package elements that have authentication
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
authentication 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
authentication 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
.
Operation Result:
The PackageInfo
instance that
corresponds to packageId
Operation Errors:
NotFound
- if the package element associated with packageId
does not have any
authentication 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.
Operation Result:
The PackageInfo
instance that
corresponds to packageId
Operation Errors:
NotFound
- if the package element associated with packageId
does not have any
authentication 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.