|
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)
IAssertionvalidate in interface IAssertionvalidate in class SimpleAssertion
public IAssertion intersect(IAssertion assertion,
IPolicyRegistry reg,
IIntersectionContext context)
IAssertionintersect in interface IAssertionintersect in class SimpleAssertionassertion - the assertion to intersect withcontext - - The intersection context is passed to capture the running context of the intersection and to accumulate intersection failures
public IAssertion intersect(IAssertion assertion,
IIntersectionContext context)
throws UnsupportedOperationException
IAssertionintersect in interface IAssertionintersect in class SimpleAssertionassertion - 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)
IAssertionmerge in interface IAssertionmerge in class SimpleAssertionassertion - the assertion to merge withreg - the policy registry that should be used to resolve external policy referencespublic IAssertion merge(IAssertion assertion)
IAssertionmerge in interface IAssertionmerge in class SimpleAssertionassertion - the argument to merge withpublic IAssertion normalize()
IAssertionnormalize in interface IAssertionnormalize in class SimpleAssertionpublic IAssertion normalize(IPolicyRegistry reg)
normalize in interface IAssertionnormalize in class SimpleAssertionpublic void setNormalized(boolean flag)
IAssertionsetNormalized in interface IAssertionsetNormalized in class SimpleAssertionprotected void checkAndAddAssertion(IAssertion assertionToAdd)
protected void checkAndSetAssertion(IAssertion assertionToSet)
public List<IAssertion> getAssertionsByQName(QName qname)
INestedAssertiongetAssertionsByQName in interface INestedAssertionpublic IPolicy getPolicy()
INestedAssertiongetPolicy in interface INestedAssertionpublic void setPolicy(IPolicy policy)
INestedAssertionsetPolicy in interface INestedAssertionpublic List<IAssertion> getAssertions()
INestedAssertiongetAssertions in interface INestedAssertionprotected void setAssertions(List<IAssertion> assertions)
public void addAssertion(IAssertion ia)
INestedAssertionaddAssertion in interface INestedAssertionpublic void addAssertions(List<IAssertion> assertionsList)
INestedAssertionaddAssertions in interface INestedAssertionpublic boolean equals(Object obj)
equals in class SimpleAssertionpublic boolean isIdentical(Object obj)
isIdentical in interface IAssertionisIdentical in class SimpleAssertionpublic String toString()
toString in class SimpleAssertionpublic int hashCode()
hashCode in class SimpleAssertion
public void advertiseOracleWSPolicy(AdvertisementContext context)
throws AdvertisementException
advertiseOracleWSPolicy in interface IAssertionAdvertiseradvertiseOracleWSPolicy in class SimpleAssertioncontext -AdvertisementException
public void advertiseWSPolicy(AdvertisementContext context)
throws AdvertisementException
advertiseWSPolicy in interface IAssertionAdvertiseradvertiseWSPolicy in class SimpleAssertionconfig -policyAttachment -AdvertisementExceptionpublic IAssertion createInstance(QName qname)
IAssertioncreateInstance in interface IAssertioncreateInstance 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 IAssertiongetDigest in class SimpleAssertionnamespaces - - 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 | |||||||||