|
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.SimpleAssertion
oracle.wsm.policy.model.impl.CompositeAssertion
public abstract class CompositeAssertion
CompositeAssertion abstract class implements few method which are common to composite assertions. A composite assertion as some terms (if any) and implicit logic that whether all (or any) of its terms should be statisfied.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface oracle.wsm.policy.model.IAssertion |
---|
IAssertion.AssertionTypes |
Field Summary |
---|
Fields inherited from interface oracle.wsm.policy.model.ISimpleAssertion |
---|
attachToAttrQName, categoryAttrQName, descAttrQName, enforcedAttrQName, NameAttrQName, optionalAttrQName, silentAttrQName, StageAttrQName, statusAttrQName |
Constructor Summary | |
---|---|
protected |
CompositeAssertion(QName qname) |
Method Summary | |
---|---|
void |
addAssertion(IAssertion assertion) Adds an assertion as one of its terms |
void |
addAssertion(int index, IAssertion ia) |
void |
addAssertions(List<IAssertion> assertions) Adds set of assertions as its terms |
void |
advertiseOracleWSPolicy(AdvertisementContext context) Generate advertizable Oracle WS Policy with Oracle extensions |
void |
advertiseWSPolicy(AdvertisementContext context) Generate interoperable WS-Policy with no Oracle Extensions. |
void |
clearAssertions() |
boolean |
equals(Object obj) Compares the Assertionlist of two policies .It ignores the order of the Assertions. |
IAssertion |
getAssertion(int index) |
List<IAssertion> |
getAssertions() |
IAssertion[] |
getAssertionsArray() |
List<IAssertion> |
getAssertionsByQName(QName qname) |
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. |
int |
hashCode() Returns an integer value which is uniquely identifies an object of this class. |
IAssertion |
intersect(IAssertion assertion, IIntersectionContext context) Returns an assertion which is the equivalent of intersect of self and argument. |
boolean |
isEmpty() Returns true if no terms exist or false otherwise |
boolean |
isIdentical(Object obj) It is same as equals method except it emphasizes on the order, while equlas doesn't. |
boolean |
isOptional() Returns true if the Assertion is optional. |
IAssertion |
merge(IAssertion assertion) Returns the equivalent of merge of self and argument. |
IAssertion |
normalize() Normalizes the assertion and returns the normalized Assertion |
boolean |
removeAssertion(IAssertion assertion) |
void |
removeAssertion(int index) |
void |
removeAssertions(List<IAssertion> assertionsList) |
void |
setAssertions(List<IAssertion> assertions) |
void |
setNormalized(boolean value) WARNING: Do not call this method. |
void |
setOptional(boolean isOptional) Specifies if the Assertion is optional. |
int |
size() |
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 |
Methods inherited from interface oracle.wsm.policy.model.IAssertion |
---|
addAttribute, createInstance, getAssertionType, getAttribute, getAttributes, getDigest, getParent, getQName, getStringForMatching, hasParent, intersect, isNormalized, merge, normalize, removeAttribute, setAttributes, setParent |
Constructor Detail |
---|
protected CompositeAssertion(QName qname)
Method Detail |
---|
public void validate(IValidationContext context)
IAssertion
validate
in interface IAssertion
validate
in class SimpleAssertion
public void addAssertion(IAssertion assertion)
addAssertion
in interface ICompositeAssertion
assertion
- the assertion that should be added as its termpublic void addAssertions(List<IAssertion> assertions)
addAssertions
in interface ICompositeAssertion
assertions
- the set of assertions that should be added as its termspublic List<IAssertion> getAssertions()
getAssertions
in interface ICompositeAssertion
public boolean isEmpty()
isEmpty
in interface ICompositeAssertion
public boolean removeAssertion(IAssertion assertion)
removeAssertion
in interface ICompositeAssertion
public int size()
size
in interface ICompositeAssertion
public IAssertion normalize()
IAssertion
normalize
in interface IAssertion
normalize
in class SimpleAssertion
public IAssertion intersect(IAssertion assertion, IIntersectionContext context) throws UnsupportedOperationException
IAssertion
intersect
in interface IAssertion
intersect
in class SimpleAssertion
assertion
- the assertion to intersect withcontext
- - The intersection context is passed to capture the running context of the intersection and to accumulate intersection failuresUnsupportedOperationException
public IAssertion merge(IAssertion assertion) throws UnsupportedOperationException
IAssertion
merge
in interface IAssertion
merge
in class SimpleAssertion
assertion
- the argument to merge withUnsupportedOperationException
public void setNormalized(boolean value)
IAssertion
setNormalized
in interface IAssertion
setNormalized
in class SimpleAssertion
public void removeAssertions(List<IAssertion> assertionsList)
removeAssertions
in interface ICompositeAssertion
public IAssertion getAssertion(int index)
getAssertion
in interface ICompositeAssertion
public IAssertion[] getAssertionsArray()
getAssertionsArray
in interface ICompositeAssertion
public void removeAssertion(int index)
public void clearAssertions()
clearAssertions
in interface ICompositeAssertion
public void addAssertion(int index, IAssertion ia)
addAssertion
in interface ICompositeAssertion
public List<IAssertion> getAssertionsByQName(QName qname)
getAssertionsByQName
in interface ICompositeAssertion
public boolean isOptional()
IAssertion
isOptional
in interface IAssertion
isOptional
in class SimpleAssertion
public void setOptional(boolean isOptional)
IAssertion
setOptional
in interface IAssertion
setOptional
in class SimpleAssertion
public void setAssertions(List<IAssertion> assertions)
setAssertions
in interface ICompositeAssertion
public boolean equals(Object obj)
equals
in class SimpleAssertion
public boolean isIdentical(Object obj)
isIdentical
in interface IAssertion
isIdentical
in class SimpleAssertion
public String toString()
toString
in class SimpleAssertion
public int hashCode()
hashCode
in class SimpleAssertion
public void advertiseOracleWSPolicy(AdvertisementContext context) throws AdvertisementException
advertiseOracleWSPolicy
in interface IAssertionAdvertiser
advertiseOracleWSPolicy
in class SimpleAssertion
context
-AdvertisementException
public void advertiseWSPolicy(AdvertisementContext context) throws AdvertisementException
advertiseWSPolicy
in interface IAssertionAdvertiser
advertiseWSPolicy
in class SimpleAssertion
config
-policyAttachment
-AdvertisementException
public String getDigest(List<String> namespaces, List<QName> qnames, boolean inclusionOrExclusionCriteria)
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
getDigest
in class SimpleAssertion
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 calculation
|
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 |