Skip navigation links

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

E10689-01


oracle.wsm.policymanager
Interface IPolicyService

All Known Subinterfaces:
IPolicyServiceLocal, IPolicyServiceRemote
All Known Implementing Classes:
PolicyService, PolicyService, PolicyServiceDelegate

public interface IPolicyService

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

Author:
pyamuna

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.

 

Method Detail

checkCompatibility

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

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
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

getCompatibleClientPolicies

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
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

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.