|
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.NestedAssertion
public class NestedAssertion
NestedAssertion wraps an assertion which is indivisible. Such assertion require domain specific knowledge for further processing. Hence this class seperates that domain specific knowledge from generic framework.
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 |
NestedAssertion() |
|
NestedAssertion(QName qname) |
|
NestedAssertion(QName qname, Object value) |
|
NestedAssertion(QName qname, String advertVersion) |
Method Summary | |
---|---|
void |
addAssertion(IAssertion ia) Helper method same as doing getPolicy().addAssertion(ia) |
void |
addAssertions(List<IAssertion> assertionsList) Helper method same as doing getPolicy().addAssertions(assertionsList) |
void |
advertiseOracleWSPolicy(AdvertisementContext context) Generate advertizable Oracle WS Policy with Oracle extensions |
void |
advertiseWSPolicy(AdvertisementContext context) Generate interoperable WS-Policy with no Oracle Extensions. |
protected void |
checkAndAddAssertion(IAssertion assertionToAdd) |
protected void |
checkAndSetAssertion(IAssertion assertionToSet) |
IAssertion |
createInstance(QName qname) Creates the appropriate assertion instance NOTE: The base implementation must be overriden by the subclasses! |
IAssertion |
createInstance(QName qname, boolean setExtensions) |
boolean |
equals(Object obj) Compares the Assertionlist of two policies .It ignores the order of the Assertions. |
List<IAssertion> |
getAssertions() Helper method - same as doing getPolicy().getAssertions() |
List<IAssertion> |
getAssertionsByQName(QName qname) Helper method - same as doing getPolicy().getAssertionsByQName() |
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. |
IPolicy |
getPolicy() A NestedAssertion always contains a 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. |
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. |
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) |
protected void |
setAssertions(List<IAssertion> assertions) |
void |
setNormalized(boolean flag) WARNING: Do not call this method. |
void |
setPolicy(IPolicy policy) Set the nested Policy expression! |
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, getAssertionType, getAttribute, getAttributes, getDigest, getParent, getQName, getStringForMatching, hasParent, isNormalized, isOptional, removeAttribute, setAttributes, setOptional, setParent |
Methods inherited from interface oracle.wsm.policy.model.ISimpleOracleAssertion |
---|
getAttachTo, getBindings, getCategory, getDescription, getDescription, getGuard, getName, hasBindings, hasGuard, isEnforced, isSilent, removeBindings, removeGuard, setAttachTo, setBindings, setCategory, setDescription, setEnforced, setGuard, setName, setSilent |
Constructor Detail |
---|
protected NestedAssertion()
public NestedAssertion(QName qname)
public NestedAssertion(QName qname, String advertVersion)
public NestedAssertion(QName qname, Object value)
Method Detail |
---|
public void validate(IValidationContext context)
IAssertion
validate
in interface IAssertion
validate
in class SimpleAssertion
public IAssertion intersect(IAssertion assertion, IPolicyRegistry reg, IIntersectionContext context)
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 failurespublic 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, IPolicyRegistry reg)
IAssertion
merge
in interface IAssertion
merge
in class SimpleAssertion
assertion
- the assertion to merge withreg
- the policy registry that should be used to resolve external policy referencespublic IAssertion merge(IAssertion assertion)
IAssertion
merge
in interface IAssertion
merge
in class SimpleAssertion
assertion
- the argument to merge withpublic IAssertion normalize()
IAssertion
normalize
in interface IAssertion
normalize
in class SimpleAssertion
public IAssertion normalize(IPolicyRegistry reg)
normalize
in interface IAssertion
normalize
in class SimpleAssertion
public void setNormalized(boolean flag)
IAssertion
setNormalized
in interface IAssertion
setNormalized
in class SimpleAssertion
protected void checkAndAddAssertion(IAssertion assertionToAdd)
protected void checkAndSetAssertion(IAssertion assertionToSet)
public List<IAssertion> getAssertionsByQName(QName qname)
INestedAssertion
getAssertionsByQName
in interface INestedAssertion
public IPolicy getPolicy()
INestedAssertion
getPolicy
in interface INestedAssertion
public void setPolicy(IPolicy policy)
INestedAssertion
setPolicy
in interface INestedAssertion
public List<IAssertion> getAssertions()
INestedAssertion
getAssertions
in interface INestedAssertion
protected void setAssertions(List<IAssertion> assertions)
public void addAssertion(IAssertion ia)
INestedAssertion
addAssertion
in interface INestedAssertion
public void addAssertions(List<IAssertion> assertionsList)
INestedAssertion
addAssertions
in interface INestedAssertion
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 IAssertion createInstance(QName qname)
IAssertion
createInstance
in interface IAssertion
createInstance
in class SimpleAssertion
public IAssertion createInstance(QName qname, boolean setExtensions)
createInstance
in class SimpleAssertion
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 |