Skip navigation links

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

E10689-01


oracle.wsm.policymanager.internal
Interface IStringPolicyService

All Known Subinterfaces:
IStringPolicyServiceLocal, IStringPolicyServiceRemote
All Known Implementing Classes:
PolicyService, PolicyService

public interface IStringPolicyService

The Policy Service provides Policy based services like Policy Compatibility checking, etc

Author:
pyamuna

Method Summary
 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<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.

 

Method Detail

checkCompatibilityString

IPolicyCompatibilityResult checkCompatibilityString(String wsdlDefinition,
                                                    String polSubjectStr,
                                                    List<String> polRefStrs)
                                                    throws PolicyManagerException,
                                                           RemoteException
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.
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
RemoteException

getCompatibleClientPoliciesAsString

Map<String,List<String>> getCompatibleClientPoliciesAsString(String wsdlDefinition,
                                                             QName serviceName,
                                                             String portName)
                                                             throws PolicyManagerException,
                                                                    RemoteException
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.
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.
RemoteException

getCompatibleClientPoliciesAsString

List<String> getCompatibleClientPoliciesAsString(String wsdlDefinition,
                                                 QName serviceName,
                                                 String portName,
                                                 String category)
                                                 throws PolicyManagerException,
                                                        RemoteException
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
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.
RemoteException

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.