|
Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager 11g (11.1.1) E10689-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.wsm.policy.model.impl.PolicyReference
public class PolicyReference
PolicyReference class has implicit reference to a external policy. It acts as wrapper to external policies in the standard policy framework.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface oracle.wsm.policy.model.IPolicyReference |
---|
IPolicyReference.STATUS |
Nested classes/interfaces inherited from interface oracle.wsm.policy.model.IAssertion |
---|
IAssertion.AssertionTypes |
Field Summary |
---|
Fields inherited from interface oracle.wsm.policy.model.IPolicyReference |
---|
DISABLED, ENABLED, statusAttrQName |
Constructor Summary | |
---|---|
PolicyReference(QName policyRefQName) |
|
PolicyReference(QName policyRefQName, String policyURIString) |
|
PolicyReference(QName policyRefQName, String policyURIString, long version) |
|
PolicyReference(String policyURIString) |
|
PolicyReference(String policyURIString, long version) |
Method Summary | |
---|---|
void |
addAttribute(QName qname, String value) |
void |
advertiseOracleWSPolicy(AdvertisementContext context) Generate advertizable Oracle WS Policy with Oracle extensions |
void |
advertiseWSPolicy(AdvertisementContext context) Generate interoperable WS-Policy with no Oracle Extensions. |
IAssertion |
createInstance(QName qname) Creates the appropriate assertion instance NOTE: The base implementation must be overriden by the subclasses! |
boolean |
equals(Object obj) Compares the Assertionlist of two policies .It ignores the order of the Assertions. |
int |
getAssertionType() Returns the type of the assertion. |
String |
getAttribute(QName qname) |
Map<QName,String> |
getAttributes() |
String |
getCategory() Return the category of the PolicyReference. |
String |
getDigest() Create a unique string representation that identifies this policy uniquely independent of the order of the assertions to enable a fast path intersection with another policy |
String |
getDigest(List<String> namespaces, List<QName> qnames, boolean inclusionOrExclusionCriteria) Create a unique string representation that identifies this policy uniquely independent of the order of the assertions to enable a fast path intersection with another policy. |
Set<IOverrideProperty> |
getOverrideProperties() Return the set of override properties that apply for this policy reference. |
IAssertion |
getParent() Returns the parent of self or null if a parent non-exists |
String |
getPolicyURI() |
long |
getPolicyVersion() |
QName |
getQName() |
IPolicyReference.STATUS |
getStatus() Return the status of the PolicyReference - it is enabled by default |
String |
getStringForMatching() The String to be used in the matching algorithim (used for intersection, merge, etc). |
int |
hashCode() Returns an integer value which is uniquely identifies an object of this class. |
boolean |
hasParent() Returns ture if the assertion has a parent |
IAssertion |
intersect(IAssertion assertion, IIntersectionContext context) Returns an assertion which is the equivalent of intersect of self and argument. |
IAssertion |
intersect(IAssertion assertion, IPolicyRegistry reg, IIntersectionContext context) Returns an assertion which is equivalent of intersect of self and argument. |
boolean |
isIdentical(Object obj) It is same as equals method except it emphasizes on the order, while equlas doesn't. |
boolean |
isLocalReference() If the URI starts with "#" then it is a local or intra document link! |
boolean |
isNormalized() Returns true if the Assertion has been normalized. |
boolean |
isOptional() Returns true if the Assertion is optional. |
IAssertion |
merge(IAssertion assertion) Returns the equivalent of merge of self and argument. |
IAssertion |
merge(IAssertion assertion, IPolicyRegistry reg) Returns the equivalent of merge of self and argument. |
IAssertion |
normalize() Normalizes the assertion and returns the normalized Assertion |
IAssertion |
normalize(IPolicyRegistry reg) |
void |
removeAttribute(QName qname) |
protected void |
setAttribute(QName idAttr, String attrValue) |
void |
setAttributes(Map<QName,String> attributes) |
void |
setCategory(String category) Set the category of the PolicyReference. |
void |
setNormalized(boolean flag) WARNING: Do not call this method. |
void |
setOptional(boolean isOptional) Specifies if the Assertion is optional. |
void |
setOverrideProperties(Set<IOverrideProperty> overrideProps) Set the set of override properties for the Policy Reference. |
void |
setParent(IAssertion parent) Set the parent to argument |
void |
setStatus(IPolicyReference.STATUS status) Set the status of the PolicyReference - it is enabled by default |
String |
toString() Returns the assertion list of a policy as a string |
void |
validate(IValidationContext context) Validate this assertion If any errors are found, they are added to the passed Validation Context object |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PolicyReference(String policyURIString)
public PolicyReference(String policyURIString, long version)
public PolicyReference(QName policyRefQName)
public PolicyReference(QName policyRefQName, String policyURIString)
public PolicyReference(QName policyRefQName, String policyURIString, long version)
Method Detail |
---|
public String getPolicyURI()
getPolicyURI
in interface IPolicyReference
public IAssertion normalize()
IAssertion
normalize
in interface IAssertion
public IAssertion normalize(IPolicyRegistry reg)
normalize
in interface IAssertion
public IAssertion intersect(IAssertion assertion, IIntersectionContext context)
IAssertion
intersect
in interface IAssertion
assertion
- the assertion to intersect withcontext
- - The intersection context is passed to capture the running context of the intersection and to accumulate intersection failurespublic IAssertion intersect(IAssertion assertion, IPolicyRegistry reg, IIntersectionContext context) throws UnsupportedOperationException
IAssertion
intersect
in interface IAssertion
assertion
- the assertion to intersect withcontext
- - The intersection context is passed to capture the running context of the intersection and to accumulate intersection failuresUnsupportedOperationException
- if the operation is not meaningfulpublic IAssertion merge(IAssertion assertion, IPolicyRegistry reg) throws UnsupportedOperationException
IAssertion
merge
in interface IAssertion
assertion
- the assertion to merge withreg
- the policy registry that should be used to resolve external policy referencesUnsupportedOperationException
- if the merge is not meaningfulpublic IAssertion merge(IAssertion assertion)
IAssertion
merge
in interface IAssertion
assertion
- the argument to merge withpublic boolean isNormalized()
IAssertion
isNormalized
in interface IAssertion
public void setNormalized(boolean flag)
IAssertion
setNormalized
in interface IAssertion
public String getStringForMatching()
IAssertion
getStringForMatching
in interface IAssertion
public QName getQName()
getQName
in interface IAssertion
public void setParent(IAssertion parent)
IAssertion
setParent
in interface IAssertion
parent
- the parent that should be parent of selfpublic IAssertion getParent()
IAssertion
getParent
in interface IAssertion
public boolean hasParent()
IAssertion
hasParent
in interface IAssertion
public void setAttributes(Map<QName,String> attributes)
setAttributes
in interface IAssertion
public Map<QName,String> getAttributes()
getAttributes
in interface IAssertion
public void addAttribute(QName qname, String value)
addAttribute
in interface IAssertion
public String getAttribute(QName qname)
getAttribute
in interface IAssertion
public void removeAttribute(QName qname)
removeAttribute
in interface IAssertion
public int getAssertionType()
IAssertion
getAssertionType
in interface IAssertion
public boolean isOptional()
IAssertion
isOptional
in interface IAssertion
public void setOptional(boolean isOptional)
IAssertion
setOptional
in interface IAssertion
public long getPolicyVersion()
getPolicyVersion
in interface IPolicyReference
public IPolicyReference.STATUS getStatus()
IPolicyReference
getStatus
in interface IPolicyReference
public void setStatus(IPolicyReference.STATUS status)
IPolicyReference
setStatus
in interface IPolicyReference
public boolean equals(Object obj)
equals
in class Object
public boolean isIdentical(Object obj)
isIdentical
in interface IAssertion
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public IAssertion createInstance(QName qname)
IAssertion
createInstance
in interface IAssertion
public String getCategory()
IPolicyReference
getCategory
in interface IPolicyReference
public void setCategory(String category)
IPolicyReference
setCategory
in interface IPolicyReference
protected void setAttribute(QName idAttr, String attrValue)
public void validate(IValidationContext context)
IAssertion
validate
in interface IAssertion
public void advertiseWSPolicy(AdvertisementContext context) throws AdvertisementException
IAssertionAdvertiser
advertiseWSPolicy
in interface IAssertionAdvertiser
context
-AdvertisementException
public void advertiseOracleWSPolicy(AdvertisementContext context) throws AdvertisementException
IAssertionAdvertiser
advertiseOracleWSPolicy
in interface IAssertionAdvertiser
context
-AdvertisementException
public boolean isLocalReference()
IPolicyReference
isLocalReference
in interface IPolicyReference
public String getDigest()
IAssertion
getDigest
in interface IAssertion
public String getDigest(List<String> namespaces, List<QName> qnames, boolean inclusionOrExclusionCriteria)
IAssertion
inclusionOrExclusionCriteria
is true then:namespaces
is empty and qnames
is empty then it is equivalent to calling getDigest()
if inclusionOrExclusionCriteria
is false then:getDigest
in interface IAssertion
namespaces
- - list of strings that define the namespaces to be include or excluded in digest calculationqnames
- - list of qnames that define the qnames to be included or excluded in digest calculationinclusionOrExclusionCriteria
- - whether the list of namespaces or qnames should be included or excluded in the digest calculationpublic Set<IOverrideProperty> getOverrideProperties()
IPolicyReference
getOverrideProperties
in interface IPolicyReference
public void setOverrideProperties(Set<IOverrideProperty> overrideProps)
IPolicyReference
setOverrideProperties
in interface IPolicyReference
|
Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager 11g (11.1.1) E10689-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |