Skip navigation links

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

E10689-01


oracle.wsm.policyaccess.impl
Class PolicyAccessSubject

java.lang.Object
  extended by oracle.wsm.policyaccess.impl.PolicyAccessSubject

All Implemented Interfaces:
IPolicyAccessSubject

public class PolicyAccessSubject
extends Object
implements IPolicyAccessSubject

Constructor Summary
PolicyAccessSubject(Element element, IPolicySubject polSubject)
           
PolicyAccessSubject(Element element, IPolicySubject polSubject, IPolicySet polSet)
           

 

Method Summary
 boolean equals(Object obj)
           
 Element getElement()
          The Element must follow the following schema:
It can either be a <binding.ws> element as defined in SCA or a SCA component element <component>.
 IPolicySet getPolicySet()
          Returns the policySet that is set using setPolicySet
 IPolicySubject getPolicySubject()
          Returns the PolicySubject that captures the topology path representation of the element.
 int hashCode()
           
 void setElement(Element element)
          The Element must follow the following schema:
It can either be a <binding.ws> element as defined in SCA or a SCA component element <component>.
 void setPolicySet(IPolicySet policySet)
          The PolicySet currently being used by the runtime or null if this is the initial call for this policy subject.
 void setPolicySubject(IPolicySubject polSubj)
          Used to passing the topology path representation of the element NOTE: policySubject.getResourcePattern() should return resource patterns of the form: "/{ias}/{oc4j}/{app}/WEBs|EJBs/{module}/WEBSERVICEs/{service}/PORTs/{port}"
 String toString()
           

 

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

 

Constructor Detail

PolicyAccessSubject

public PolicyAccessSubject(Element element,
                           IPolicySubject polSubject)

PolicyAccessSubject

public PolicyAccessSubject(Element element,
                           IPolicySubject polSubject,
                           IPolicySet polSet)

Method Detail

getElement

public Element getElement()
The Element must follow the following schema:
It can either be a <binding.ws> element as defined in SCA or a SCA component element <component>. All other elements will be ignored.
For the <binding.ws> - the port is required attribute.
The element should look as follows:
<binding.ws port=&quote;...&quote;>
<!- Note A use-case for enabling/disabling Policy References has been identified ->
<wsp:PolicyReference URI=&quote;security/mypolicy&quote; orawsp:status=&quote;enabled&quote;..../>
<wsp:PolicyReference URI =&quote;wsrm/mypolicy&quote; .../>
...
</binding.ws>
This will apply for both Services (EntryPoints) and Reference (ExternalServices).
In case of Fabric the other element that can be passed in is SCA Component. Only the child of the component Element will be looked at for are wsp:PolicyReference elements.
<component name=&quote;componentName&quote; ...>
<wsp:PolicyReference URI=&quote;management/Logging_Policy&quote; orawsp:status=&quote;enabled&quote; .../>
....
</component>
All other elements will be ignored.
Specified by:
getElement in interface IPolicyAccessSubject
Returns:
Element

setElement

public void setElement(Element element)
The Element must follow the following schema:
It can either be a <binding.ws> element as defined in SCA or a SCA component element <component>. All other elements will be ignored.
For the <binding.ws> - the port is required attribute.
The element should look as follows:
<binding.ws port=&quote;...&quote;>
<!- Note A use-case for enabling/disabling Policy References has been identified ->
<wsp:PolicyReference URI=&quote;security/mypolicy&quote; orawsp:status=&quote;enabled&quote;..../>
<wsp:PolicyReference URI =&quote;wsrm/mypolicy&quote; .../>
...
</binding.ws>
This will apply for both Services (EntryPoints) and Reference (ExternalServices).
In case of Fabric the other element that can be passed in is SCA Component. Only the child of the component Element will be looked at for are wsp:PolicyReference elements.
<component name=&quote;componentName&quote; ...>
<wsp:PolicyReference URI=&quote;management/Logging_Policy&quote; orawsp:status=&quote;enabled&quote; .../>
....
</component>
All other elements will be ignored.
Specified by:
setElement in interface IPolicyAccessSubject
Parameters:
element - - Should not be null.

getPolicySubject

public IPolicySubject getPolicySubject()
Returns the PolicySubject that captures the topology path representation of the element. NOTE: policySubject.getResourcePattern() should return resource patterns of the form: "/{ias}/{oc4j}/{app}/WEBs|EJBs/{module}/WEBSERVICEs/{service}/PORTs/{port}"
Specified by:
getPolicySubject in interface IPolicyAccessSubject
Returns:
IPolicySubject

setPolicySubject

public void setPolicySubject(IPolicySubject polSubj)
Used to passing the topology path representation of the element NOTE: policySubject.getResourcePattern() should return resource patterns of the form: "/{ias}/{oc4j}/{app}/WEBs|EJBs/{module}/WEBSERVICEs/{service}/PORTs/{port}"
Specified by:
setPolicySubject in interface IPolicyAccessSubject
Parameters:
polSubject - - should not be null

getPolicySet

public IPolicySet getPolicySet()
Returns the policySet that is set using setPolicySet
Specified by:
getPolicySet in interface IPolicyAccessSubject
Returns:
IPolicySet

setPolicySet

public void setPolicySet(IPolicySet policySet)
The PolicySet currently being used by the runtime or null if this is the initial call for this policy subject.
Specified by:
setPolicySet in interface IPolicyAccessSubject
Parameters:
policySet -

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

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.