com.ibm.twss.spm.admin.policy
Class PolicyAdministrationInterfaceProxy

java.lang.Object
  extended by com.ibm.twss.spm.admin.policy.PolicyAdministrationInterfaceProxy
All Implemented Interfaces:
PolicyAdministrationInterface, java.rmi.Remote

public class PolicyAdministrationInterfaceProxy
extends java.lang.Object
implements PolicyAdministrationInterface


Constructor Summary
PolicyAdministrationInterfaceProxy()
           
 
Method Summary
 CreatePoliciesResponse createPolicies(CreatePoliciesRequest request)
          Attempts to create one or more service policy attribute/value pairs in a single batch operation.
 java.lang.String getEndpoint()
           
 GetInheritedPoliciesResponse getInheritedPolicies(GetInheritedPoliciesRequest request)
          Get all scoped policy values that are included in the specified scope or higher scopes per service policy manager hierarchical resolution.
 PolicyAdministrationInterface getPolicyAdministrationInterface()
           
 GetResolvedPoliciesResponse getResolvedPolicies(GetResolvedPoliciesRequest request)
          Performs hierarchical resolution to determine the set of policies visible at the provided (requester, service, operation) scope tuple.
 GetScopedPoliciesResponse getScopedPolicies(GetScopedPoliciesRequest request)
          Retrieves the scoped policy attribute/value pairs that have been defined only at the specified policy scope.
 RemovePoliciesResponse removePolicies(RemovePoliciesRequest request)
          Removes one or more policy attributes from a specified (requester, service, operation) scope tuple in a batch operation.
 void setEndpoint(java.lang.String endpoint)
           
 UpdatePoliciesResponse updatePolicies(UpdatePoliciesRequest request)
          Updates one or more policy attribute/value pairs in a batch operation.
 void useJNDI(boolean useJNDI)
           
 ValidatePolicyValuesResponse validatePolicyValues(ValidatePolicyValuesRequest request)
          Performs validation of one or more policy values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyAdministrationInterfaceProxy

public PolicyAdministrationInterfaceProxy()
Method Detail

useJNDI

public void useJNDI(boolean useJNDI)

getEndpoint

public java.lang.String getEndpoint()

setEndpoint

public void setEndpoint(java.lang.String endpoint)

getPolicyAdministrationInterface

public PolicyAdministrationInterface getPolicyAdministrationInterface()

createPolicies

public CreatePoliciesResponse createPolicies(CreatePoliciesRequest request)
                                      throws java.rmi.RemoteException
Description copied from interface: PolicyAdministrationInterface
Attempts to create one or more service policy attribute/value pairs in a single batch operation. The runtime will iterate through the list of supplied policy pairs and attempt to create them in sequence. Faults will be returned for any failures encountered during iteration. Encountering failures does not necessarily halt the iteration, and the runtime may continue in best effort to create as many of the supplied values as possible.

Create policies operation input parameters. Contains a list of policy attribute/value pairs to create.

Specified by:
createPolicies in interface PolicyAdministrationInterface
Returns:
Create policies operation response result. This response contains a list of any faults that may have occured while creating the supplied policy attribute/value pairs.

Throws:
java.rmi.RemoteException

updatePolicies

public UpdatePoliciesResponse updatePolicies(UpdatePoliciesRequest request)
                                      throws java.rmi.RemoteException
Description copied from interface: PolicyAdministrationInterface
Updates one or more policy attribute/value pairs in a batch operation. The runtime will iterate through the supplied attribute/value pairs, performing the update in sequence. If an error occurs, then it will mark that position in the output fault array with a description of the error. Encountering a fault will not necessarily halt the update iteration.

Only fields that are supplied in the policy data structure are updated. If an optional field is omitted in the request, then the corresponding information is not updated by the runtime.

Update one or more policies in one batch operation. Update policies operation input parameters. Contains a list of policy attribute/value pairs to update.

Specified by:
updatePolicies in interface PolicyAdministrationInterface
Returns:
Update policies operation response result. This response contains a list of any faults that may have occurred while updating the supplied policy attribute/value pairs.

Throws:
java.rmi.RemoteException

removePolicies

public RemovePoliciesResponse removePolicies(RemovePoliciesRequest request)
                                      throws java.rmi.RemoteException
Description copied from interface: PolicyAdministrationInterface
Removes one or more policy attributes from a specified (requester, service, operation) scope tuple in a batch operation. The runtime will iterate through the supplied list of attributes, performing the removal in sequence. If an error occurs, then it will mark that position in the output fault array with a description of th error. Encountering a fautl will not necessarily halt the removal iteration.

Remove policies operation input parameters. Specifies a policy scope and list of attributes to remove.

Specified by:
removePolicies in interface PolicyAdministrationInterface
Returns:
Remove policies operation response result. This response contains a list of any faults that may have occurred while removing the supplied policy attribute names.

Throws:
java.rmi.RemoteException

getScopedPolicies

public GetScopedPoliciesResponse getScopedPolicies(GetScopedPoliciesRequest request)
                                            throws java.rmi.RemoteException,
                                                   ServicePolicyException
Description copied from interface: PolicyAdministrationInterface
Retrieves the scoped policy attribute/value pairs that have been defined only at the specified policy scope. This operation does not perform any hierarchical resolution, so policies may exist at other scopes.

Get scoped policies operation input parameters. Specifies the (requester, service, operation) scope tuple at which to fetch policies.

Specified by:
getScopedPolicies in interface PolicyAdministrationInterface
Returns:
Get scoped policies operation response result. Returns a list of scoped policies defined at that scope. The list may be empty if no policies are defined.

Throws:
ServicePolicyException - Raised if the provided policy scope is invalid or an internal error occurs.

java.rmi.RemoteException

getResolvedPolicies

public GetResolvedPoliciesResponse getResolvedPolicies(GetResolvedPoliciesRequest request)
                                                throws java.rmi.RemoteException,
                                                       ServicePolicyException
Description copied from interface: PolicyAdministrationInterface
Performs hierarchical resolution to determine the set of policies visible at the provided (requester, service, operation) scope tuple. Scoped policy values that are returned contain the most specific values determined during resolution, with non-overridden values inherited from higher level policy scopes.

Get resolved policies operation input parameters. Specifies the (requester, service, operation) scope tuple at which to fetch policies.

Specified by:
getResolvedPolicies in interface PolicyAdministrationInterface
Returns:
Get resolved policies response result. Returns a list of scoped policies that were resolved hierarchically for the given scope. The list may be empty if no policies could be resolved.

Throws:
ServicePolicyException - Raised if the provided policy scope is invalid or an internal error occurs.

java.rmi.RemoteException

getInheritedPolicies

public GetInheritedPoliciesResponse getInheritedPolicies(GetInheritedPoliciesRequest request)
                                                  throws java.rmi.RemoteException,
                                                         ServicePolicyException
Description copied from interface: PolicyAdministrationInterface
Get all scoped policy values that are included in the specified scope or higher scopes per service policy manager hierarchical resolution. This returns the inheritance chain of policy values, returning from most general to most specific. This list may be empty if no policies can be located for the specific policy name.

Get inherited policies operation input parameters. Specifies the (requester, service, operation) scope tuple and policy name whose scoped policies to fetch.

Specified by:
getInheritedPolicies in interface PolicyAdministrationInterface
Returns:
Get inherited policies response result. Returns a list of scoped policies for the specified scope tuple and policy name. The list may be empty if no policies for the specified policy name can be found.

Throws:
ServicePolicyException - Raised if the provided policy scope is invalid or an internal error occurs.

java.rmi.RemoteException

validatePolicyValues

public ValidatePolicyValuesResponse validatePolicyValues(ValidatePolicyValuesRequest request)
                                                  throws java.rmi.RemoteException,
                                                         ServicePolicyException
Description copied from interface: PolicyAdministrationInterface
Performs validation of one or more policy values. Each policy value has an associated type that's used to look up the validation mask to evaluate against the policy. A list of boolean is returned indicated which values were and were not valid, by position.

Validate policy values operation input parameters. Contains a list of policy values and types.

Specified by:
validatePolicyValues in interface PolicyAdministrationInterface
Returns:
Validate policy values response result. Returns a list of booleans indicating which entries were valid.

Throws:
ServicePolicyException - Raised if the input refers to invalid types or if an internal error occurs.

java.rmi.RemoteException


Copyright © IBM Corp. All Rights Reserved.