Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager
11g (11.1.1)

E10689-01


oracle.wsm.policymanager.client
Class PolicyServiceDelegate

java.lang.Object
  extended by oracle.wsm.policymanager.client.PolicyServiceDelegate

All Implemented Interfaces:
IPolicyService

public class PolicyServiceDelegate
extends Object
implements IPolicyService

Constructor Summary
PolicyServiceDelegate(IStringPolicyService strPolAccessService)
           

 

Method Summary
 IPolicyCompatibilityResult checkCompatibility(String wsdlDefintion, IPolicySubject polSubject, List<IPolicyReference> polRefs)
          Checks if the client side policies attached to a SCA Composite Reference/binding is compatible with the Server Side Policies.
 Map<String,List<IPolicy>> getCompatibleClientPolicies(String wsdlDefinition, QName serviceName, String portName)
          Given a WSDL that contains service side policies, returns the compatible client side policies.
 List<IPolicy> getCompatibleClientPolicies(String wsdlDefinition, QName serviceName, String portName, String category)
          Given a WSDL that contains service side policies, returns the compatible client side policies for a particular category.
 Subject getSubject()
           
 void setSubject(Subject subject)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

PolicyServiceDelegate

public PolicyServiceDelegate(IStringPolicyService strPolAccessService)

Method Detail

checkCompatibility

public IPolicyCompatibilityResult checkCompatibility(String wsdlDefintion,
                                                     IPolicySubject polSubject,
                                                     List<IPolicyReference> polRefs)
                                              throws PolicyManagerException
Checks if the client side policies attached to a SCA Composite Reference/binding is compatible with the Server Side Policies. The causes for the Policy Incompatibility are returned via the IPolicyCompatibilityResult object.
Specified by:
checkCompatibility in interface IPolicyService
polSubject - - The Client PolicySubject that has policy references to the client side Policies. Note: the subjectType must be set otherwise the API will throw a PolicyManagerException with the appropriate error code
polRefs - - List of Policy References attached to the Policy Subject
Returns:
IPolicyCompatibilityResult true indicates the client side policies are compatible with server side policies
Throws:
PolicyManagerException - - if subjectType is not specified on IPolicySubject if Policy References are invalid

getCompatibleClientPolicies

public Map<String,List<IPolicy>> getCompatibleClientPolicies(String wsdlDefinition,
                                                             QName serviceName,
                                                             String portName)
                                                      throws PolicyManagerException
Given a WSDL that contains service side policies, returns the compatible client side policies. NOTE: The API returns Policies that are most likely to be compatible. However it does not guarantee that the policies will be totally compatible
Specified by:
getCompatibleClientPolicies in interface IPolicyService
Returns:
Map<String, List>IPolicy>> the key is the policy category and the value is the client compatible policies
Throws:
PolicyManagerException - PolicyManagerException.ERROR_READING_WSDL is thrown if the wsdl cannot be parsed

getCompatibleClientPolicies

public List<IPolicy> getCompatibleClientPolicies(String wsdlDefinition,
                                                 QName serviceName,
                                                 String portName,
                                                 String category)
                                          throws PolicyManagerException
Given a WSDL that contains service side policies, returns the compatible client side policies for a particular category. if category is null, then all client compatible policies across all categories are returned. NOTE: The API returns Policies that are most likely to be compatible. However it does not guarantee that the policies will be totally compatible
Specified by:
getCompatibleClientPolicies in interface IPolicyService
Returns:
Map<String, Set>IPolicy>> the key is the policy category and the value is the client compatible policies
Throws:
PolicyManagerException - PolicyManagerException.ERROR_READING_WSDL is thrown if the wsdl cannot be parsed

getSubject

public Subject getSubject()

setSubject

public void setSubject(Subject subject)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager
11g (11.1.1)

E10689-01


Copyright © 2007, 2009, Oracle and/or its affiliates. All rights reserved.