|
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
public class SimpleAssertion
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 |
SimpleAssertion() |
|
SimpleAssertion(QName qname) |
|
SimpleAssertion(QName qname, Object value) |
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. |
protected Map<QName,String> |
cloneAttrs(Map<QName,String> attrs) |
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. |
int |
getAssertionType() Returns the type of the assertion. |
String |
getAttachTo() |
String |
getAttribute(QName qname) |
Map<QName,String> |
getAttributes() |
IAssertionBindings |
getBindings() |
String |
getCategory() |
protected SimpleAssertion |
getCopyOfAssertion() |
String |
getDescription() |
String |
getDescription(Locale locale) Convenience method to retrive localized orawsp:description attribute on a <wsp:Policy> element. |
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. |
String |
getDigestForAttrs(List<String> namespaces, List<QName> qnames, boolean inclusionOrExclusionCriteria) |
IAssertionGuard |
getGuard() |
String |
getName() |
IAssertion |
getParent() Returns the parent of self or null if a parent non-exists |
QName |
getQName() |
String |
getStringForMatching() The String to be used in the matching algorithim (used for intersection, merge, etc). |
String |
getStrValue() |
protected String |
getUniquePathToAssertion() |
protected QName |
getWSPolicy15QName(QName qName, boolean isAdvertVersion11) This method will replace namespace of ws-policy2006 |
protected QName |
getWSPolicy2006QName(QName qName, boolean isAdvertVersion11) This method will replace namespace of ws-policy15 |
boolean |
hasBindings() |
boolean |
hasGuard() |
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 |
isEnforced() |
boolean |
isIdentical(Object obj) It is same as equals method except it emphasizes on the order, while equlas doesn't. |
protected boolean |
isIncludedInDigestCalculation(QName qname, List<String> namespaces, List<QName> qnames, boolean inclusionOrExclusionCriteria) Given a qname parameter and the set of namespaces and qnames and inclusionOrExclusionCriteria determines if the qname needs to be included in the digest calculation. |
boolean |
isNormalized() Returns true if the Assertion has been normalized. |
boolean |
isOptional() Returns true if the Assertion is optional. |
boolean |
isSilent() |
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 |
removeAttrsForOracleWSPolicyAdvertisement(Map<QName,String> attrs) |
protected void |
removeAttrsForWSPolicyAdvertisement(Map<QName,String> attrs) |
void |
removeBindings() Removes IAssertionBindings if any from the assertion |
void |
removeGuard() |
void |
setAttachTo(String attachTo) |
protected void |
setAttribute(QName idAttr, String attrValue) |
void |
setAttributes(Map<QName,String> attributes) |
void |
setBindings(IAssertionBindings bindings) |
void |
setCategory(String category) |
protected void |
setDefaultValues() |
void |
setDescription(String desc) |
void |
setEnforced(boolean isEnforced) |
void |
setGuard(IAssertionGuard guard) |
void |
setName(String assertionName) |
void |
setNormalized(boolean flag) WARNING: Do not call this method. |
void |
setOptional(boolean isOptional) Specifies if the Assertion is optional. |
void |
setParent(IAssertion parent) Set the parent to argument |
void |
setSilent(boolean isSilent) |
void |
setStrValue(String strValue) |
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 |
---|
protected SimpleAssertion()
public SimpleAssertion(QName qname, Object value)
public SimpleAssertion(QName qname)
Method Detail |
---|
protected void setDefaultValues()
public boolean hasParent()
IAssertion
hasParent
in interface IAssertion
public IAssertion getParent()
IAssertion
getParent
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 void setParent(IAssertion parent)
IAssertion
setParent
in interface IAssertion
parent
- the parent that should be parent of selfpublic boolean isNormalized()
IAssertion
isNormalized
in interface IAssertion
public void setNormalized(boolean flag)
IAssertion
setNormalized
in interface IAssertion
public String getStrValue()
public void setStrValue(String strValue)
public boolean isOptional()
IAssertion
isOptional
in interface IAssertion
public void setOptional(boolean isOptional)
IAssertion
setOptional
in interface IAssertion
public boolean isSilent()
isSilent
in interface ISimpleOracleAssertion
public void setSilent(boolean isSilent)
setSilent
in interface ISimpleOracleAssertion
public boolean isEnforced()
isEnforced
in interface ISimpleOracleAssertion
public void setEnforced(boolean isEnforced)
setEnforced
in interface ISimpleOracleAssertion
public QName getQName()
getQName
in interface IAssertion
public IAssertion merge(IAssertion assertion, IPolicyRegistry reg)
IAssertion
merge
in interface IAssertion
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
assertion
- the argument to merge withpublic IAssertion normalize()
IAssertion
normalize
in interface IAssertion
public IAssertion normalize(IPolicyRegistry reg)
normalize
in interface IAssertion
protected SimpleAssertion getCopyOfAssertion()
public IAssertion intersect(IAssertion assertion, 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
public IAssertion intersect(IAssertion assertion, IPolicyRegistry reg, 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 boolean hasBindings()
hasBindings
in interface ISimpleOracleAssertion
public void setBindings(IAssertionBindings bindings)
setBindings
in interface ISimpleOracleAssertion
public IAssertionBindings getBindings()
getBindings
in interface ISimpleOracleAssertion
protected void setAttribute(QName idAttr, String attrValue)
public int getAssertionType()
IAssertion
getAssertionType
in interface IAssertion
public String getStringForMatching()
IAssertion
getStringForMatching
in interface IAssertion
public String getDescription()
getDescription
in interface ISimpleOracleAssertion
public String getDescription(Locale locale)
ISimpleOracleAssertion
getDescription
in interface ISimpleOracleAssertion
public void setDescription(String desc)
setDescription
in interface ISimpleOracleAssertion
public String getCategory()
getCategory
in interface ISimpleOracleAssertion
public void setCategory(String category)
setCategory
in interface ISimpleOracleAssertion
protected String getUniquePathToAssertion()
public boolean equals(Object obj)
equals
in class Object
public boolean isIdentical(Object obj)
isIdentical
in interface IAssertion
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public void advertiseOracleWSPolicy(AdvertisementContext context) throws AdvertisementException
advertiseOracleWSPolicy
in interface IAssertionAdvertiser
context
-AdvertisementException
public void advertiseWSPolicy(AdvertisementContext context) throws AdvertisementException
advertiseWSPolicy
in interface IAssertionAdvertiser
config
-policyAttachment
-AdvertisementException
protected Map<QName,String> cloneAttrs(Map<QName,String> attrs)
protected void removeAttrsForOracleWSPolicyAdvertisement(Map<QName,String> attrs)
protected void removeAttrsForWSPolicyAdvertisement(Map<QName,String> attrs)
public IAssertion createInstance(QName qname)
IAssertion
createInstance
in interface IAssertion
public IAssertion createInstance(QName qname, boolean setExtensions)
public void removeBindings()
ISimpleOracleAssertion
removeBindings
in interface ISimpleOracleAssertion
public void validate(IValidationContext context)
IAssertion
validate
in interface IAssertion
public String getAttachTo()
getAttachTo
in interface ISimpleOracleAssertion
public void setAttachTo(String attachTo)
setAttachTo
in interface ISimpleOracleAssertion
public String getName()
getName
in interface ISimpleOracleAssertion
public void setName(String assertionName)
setName
in interface ISimpleOracleAssertion
public String getDigest()
getDigest
in interface IAssertion
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
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 calculationprotected boolean isIncludedInDigestCalculation(QName qname, List<String> namespaces, List<QName> qnames, boolean inclusionOrExclusionCriteria)
qname
parameter and the set of namespaces
and qnames
and inclusionOrExclusionCriteria
determines if the qname
needs to be included in the digest calculation. Note: If namespaces or qnames both are null - then the qname
is always included in the digest calculation irrespective of the value of the param inclusionOrExclusionCriteria
qname
- - the qname that needs to be include in the digest calculationnamespaces
- - can be nullqnames
- - can be nullinclusionOrExclusionCriteria
- - if namespaces or qnames are not null then should these lists be used as inclusion or exclusion criteria.public String getDigestForAttrs(List<String> namespaces, List<QName> qnames, boolean inclusionOrExclusionCriteria)
protected QName getWSPolicy15QName(QName qName, boolean isAdvertVersion11)
qName
-isAdvertVersion11
-protected QName getWSPolicy2006QName(QName qName, boolean isAdvertVersion11)
qName
-isAdvertVersion11
-public IAssertionGuard getGuard()
getGuard
in interface ISimpleOracleAssertion
public boolean hasGuard()
hasGuard
in interface ISimpleOracleAssertion
public void removeGuard()
removeGuard
in interface ISimpleOracleAssertion
public void setGuard(IAssertionGuard guard)
setGuard
in interface ISimpleOracleAssertion
|
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 |