Skip navigation links

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

E10689-01


oracle.wsm.policymanager.impl
Class PolicyService

java.lang.Object
  extended by oracle.wsm.policymanager.impl.PolicyService

All Implemented Interfaces:
IStringPolicyService, IPolicyService
Direct Known Subclasses:
PolicyService

public class PolicyService
extends Object
implements IPolicyService, IStringPolicyService

Constructor Summary
PolicyService()
           
PolicyService(MDSConfig config)
          Use this constructor for programmatic initialization of MDS

 

Method Summary
 IPolicyCompatibilityResult checkCompatibility(String wsdlDefinition, 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.
 IPolicyCompatibilityResult checkCompatibilityString(String wsdlDefinition, String polSubjectStr, List<String> polRefStrs)
          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 oracle extensions (ORAWSDL) including oracle policies, returns the compatible client side policies.
 List<IPolicy> getCompatibleClientPolicies(String wsdlDefinition, QName serviceName, String portName, String category)
          Given a WSDL that contains oracle extensions (ORAWSDL) including oracle policies, returns the compatible client side policies for a particular category.
 Map<String,List<String>> getCompatibleClientPoliciesAsString(String wsdlDefinition, QName serviceName, String portName)
          Given a WSDL that contains oracle extensions (ORAWSDL) including oracle policies, returns the compatible client side policies.
 List<String> getCompatibleClientPoliciesAsString(String wsdlDefinition, QName serviceName, String portName, String category)
          Given a WSDL that contains oracle extensions (ORAWSDL) including oracle policies, returns the compatible client side policies for a particular category.
protected  String getCreator()
           

 

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

 

Constructor Detail

PolicyService

public PolicyService()

PolicyService

public PolicyService(MDSConfig config)
Use this constructor for programmatic initialization of MDS
Parameters:
config - MDS configuration information

Method Detail

getCreator

protected String getCreator()

checkCompatibility

public IPolicyCompatibilityResult checkCompatibility(String wsdlDefinition,
                                                     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
Parameters:
wsdlDefinition - the String representation of a WSDL Definition object
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 oracle extensions (ORAWSDL) including oracle policies, returns the compatible client side policies. WARNING: This API should not be used for scenarios where the WSDL contains standard policies and assertions. If used the API will throw an Exception with error code PolicyManagerException.EXPECTED_ORAWSDL
Specified by:
getCompatibleClientPolicies in interface IPolicyService
Parameters:
wsdlDefinition -
serviceName -
portName -
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 PolicyManagerException.EXPECTED_ORAWSDL is thrown if the WSDL is not ORAWSDL.

getCompatibleClientPolicies

public List<IPolicy> getCompatibleClientPolicies(String wsdlDefinition,
                                                 QName serviceName,
                                                 String portName,
                                                 String category)
                                          throws PolicyManagerException
Given a WSDL that contains oracle extensions (ORAWSDL) including oracle 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. WARNING: This API should not be used for scenarios where the WSDL contains standard policies and assertions. If used the API will throw an Exception with error code PolicyManagerException.EXPECTED_ORAWSDL
Specified by:
getCompatibleClientPolicies in interface IPolicyService
Parameters:
wsdlDefinition -
serviceName -
portName -
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 PolicyManagerException.EXPECTED_ORAWSDL is thrown if the WSDL is not ORAWSDL.

checkCompatibilityString

public IPolicyCompatibilityResult checkCompatibilityString(String wsdlDefinition,
                                                           String polSubjectStr,
                                                           List<String> polRefStrs)
                                                    throws PolicyManagerException
Description copied from interface: IStringPolicyService
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:
checkCompatibilityString in interface IStringPolicyService
Parameters:
wsdlDefinition - the String representation of a WSDL Definition object
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

getCompatibleClientPoliciesAsString

public Map<String,List<String>> getCompatibleClientPoliciesAsString(String wsdlDefinition,
                                                                    QName serviceName,
                                                                    String portName)
                                                             throws PolicyManagerException
Description copied from interface: IStringPolicyService
Given a WSDL that contains oracle extensions (ORAWSDL) including oracle policies, returns the compatible client side policies. WARNING: This API should not be used for scenarios where the WSDL contains standard policies and assertions. If used the API will throw an Exception with error code PolicyManagerException.EXPECTED_ORAWSDL 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:
getCompatibleClientPoliciesAsString in interface IStringPolicyService
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 PolicyManagerException.EXPECTED_ORAWSDL is thrown if the WSDL is not ORAWSDL.

getCompatibleClientPoliciesAsString

public List<String> getCompatibleClientPoliciesAsString(String wsdlDefinition,
                                                        QName serviceName,
                                                        String portName,
                                                        String category)
                                                 throws PolicyManagerException
Description copied from interface: IStringPolicyService
Given a WSDL that contains oracle extensions (ORAWSDL) including oracle 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. WARNING: This API should not be used for scenarios where the WSDL contains standard policies and assertions. If used the API will throw an Exception with error code PolicyManagerException.EXPECTED_ORAWSDL 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:
getCompatibleClientPoliciesAsString in interface IStringPolicyService
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 PolicyManagerException.EXPECTED_ORAWSDL is thrown if the WSDL is not ORAWSDL.

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.