|
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
oracle.wsm.policy.model.impl.AndCompositeAssertion
oracle.wsm.policy.model.impl.Policy
public class Policy
import oracle.wsm.resources.policyvalidation.PolicyValidationMessageID; Policy is the access point for policy framework. It the object model that represents a policy at runtime.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface oracle.wsm.policy.model.IPolicy |
---|
IPolicy.STATUS |
Nested classes/interfaces inherited from interface oracle.wsm.policy.model.IAssertion |
---|
IAssertion.AssertionTypes |
Field Summary |
---|
Fields inherited from interface oracle.wsm.policy.model.IPolicy |
---|
DISABLED, displayNameAttrQName, ENABLED, idAttrQName, localOptimizationAttrQName, nameAttrQName, oracleSmartDigestAttrQName, pipelineAttrQName, revPipelineAttrQName, smartDigestAttrQName, validationClassNameAttrQName |
Fields inherited from interface oracle.wsm.policy.model.ISimpleAssertion |
---|
attachToAttrQName, categoryAttrQName, descAttrQName, enforcedAttrQName, NameAttrQName, optionalAttrQName, silentAttrQName, StageAttrQName, statusAttrQName |
Constructor Summary | |
---|---|
Policy() |
|
Policy(boolean setExtensions) |
|
Policy(QName qname) |
|
Policy(QName qname, boolean setExtensions) |
|
Policy(String id) |
|
Policy(String name, String id) |
|
Policy(String name, String id, Map<QName,String> attrMap) |
Method Summary | |
---|---|
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! |
IAssertion |
createInstance(QName qname, boolean setExtensions) |
IPolicyReference |
createLocalPolicyReference(boolean includeExtensions) WS-Policy Attachment defines two types of Policy Referneces. |
IPolicyReference |
createRemotePolicyReference(boolean includeExtensions) WS-Policy Attachment defines two types of Policy Referneces. |
boolean |
equals(Object obj) Compares the Assertionlist of two policies .It ignores the order of the Assertions. |
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 |
getDisplayName() Convenience method to retrive the orawsp:displayName attribute on a <wsp:Policy> element. |
String |
getDisplayName(Locale locale) Convenience method to retrive localized orawsp:displayName attribute on a <wsp:Policy> element. |
String |
getLocalOptimization() Returns the local-optimzation attribute value of the policy |
String |
getOracleSmartDigest() Return the oracle fast path digest for the policy |
String |
getPolicyId() Convenience method to retrive the wsu:Id attribute on a <wsp:Policy> element. |
String |
getPolicyName() Convenience method to retrive the wsp:Name attribute on a <wsp:Policy> element. |
String |
getSmartDigest() Return the smart digest for the policy |
IPolicy.STATUS |
getStatus() |
int |
getSubjectCount() Get a count of subject to which this policy is attached to |
String |
getValidatorClass() Returns the name of validator class set for this Policy object |
List<String> |
getValidAttachToValues() |
IVersionInfo |
getVersionInfo() |
int |
hashCode() Returns an integer value which is uniquely identifies an object of this class. |
boolean |
hasPolicyAlternatives() Returns true if the Policy has alternatives i.e. |
IAssertion |
intersect(IAssertion assertion, IPolicyRegistry reg, IIntersectionContext context) Returns the intersection of self and argument against a specified Policy Registry. |
boolean |
isEnabled() Convenience method returns true if getStatus() returns STATUS.enabled |
boolean |
isIdentical(Object obj) It is same as equals method except it emphasizes on the order, while equlas doesn't. |
boolean |
isPipeline() Convenience method to retrive the orawsp:Pipeline attribute on a <wsp:Policy> element. |
boolean |
isReferenceablePolicy() |
boolean |
isReversePipeline() Convenience method to set the orawsp:ReversePipeline attribute on a <wsp:Policy> element. |
IAssertion |
merge(IAssertion assertion, IPolicyRegistry reg) Returns an assertion which is equivalent to merge of self and the argument. |
IAssertion |
normalize() Normalizes the assertion and returns the normalized Assertion |
IAssertion |
normalize(IPolicyRegistry reg) Returns an IAssertion which is normalized using a specified policy registry. |
protected void |
removeAttrsForOracleWSPolicyAdvertisement(Map<QName,String> attrs) |
protected void |
removeAttrsForWSPolicyAdvertisement(Map<QName,String> attrs) |
void |
setAttributes(Map<QName,String> attrMap) |
protected void |
setDefaultValues() |
void |
setDisplayName(String displayName) Convenience method to set the orawsp:displayName attribute on a <wsp:Policy> element. |
void |
setLocalOptimzation(String localOptimization) Sets the local-optimzation parameter value |
void |
setOracleSmartDigest(String smartDigest) Set the value for the attribute "oraSmartDigest" - it represents the "hash" of the value returned by the getDigest call for Policies containing oracle scenario assertions. |
void |
setPipeline(boolean isPipeline) Set the orawsp:Pipeline attribute |
void |
setPolicyId(String id) |
void |
setPolicyName(String name) |
void |
setReversePipeline(boolean revPipeline) Convenience method to set the orawsp:ReversePipeline attribute on a <wsp:Policy> element. |
void |
setSmartDigest(String smartDigest) Set the value for the attribute "smartDigest" - it represents the "hash" of the value returned by the getDigest call. |
void |
setStatus(IPolicy.STATUS status) |
void |
setSubjectCount(int subjectCount) Set the number of end-points that reference this policy |
void |
setValidatorClass(String className) Sets the class name of the java class to validate this policy |
void |
setVersionInfo(IVersionInfo versionInfo) |
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 oracle.wsm.policy.model.impl.AndCompositeAssertion |
---|
addAssertion |
Methods inherited from class oracle.wsm.policy.model.impl.CompositeAssertion |
---|
addAssertion, addAssertions, clearAssertions, getAssertion, getAssertions, getAssertionsArray, getAssertionsByQName, intersect, isEmpty, isOptional, merge, removeAssertion, removeAssertion, removeAssertions, setAssertions, setNormalized, setOptional, size |
Methods inherited from class oracle.wsm.policy.model.impl.SimpleAssertion |
---|
addAttribute, cloneAttrs, getAssertionType, getAttachTo, getAttribute, getAttributes, getBindings, getCategory, getCopyOfAssertion, getDescription, getDescription, getDigest, getDigestForAttrs, getGuard, getName, getParent, getQName, getStringForMatching, getStrValue, getUniquePathToAssertion, getWSPolicy15QName, getWSPolicy2006QName, hasBindings, hasGuard, hasParent, isEnforced, isIncludedInDigestCalculation, isNormalized, isSilent, removeAttribute, removeBindings, removeGuard, setAttachTo, setAttribute, setBindings, setCategory, setDescription, setEnforced, setGuard, setName, setParent, setSilent, setStrValue |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.wsm.policy.model.IPolicy |
---|
getAttachTo, getCategory, getDescription, getDescription, setAttachTo, setCategory, setDescription |
Methods inherited from interface oracle.wsm.policy.model.ICompositeAssertion |
---|
addAssertion, addAssertion, addAssertions, clearAssertions, getAssertion, getAssertions, getAssertionsArray, getAssertionsByQName, isEmpty, removeAssertion, removeAssertions, setAssertions, size |
Methods inherited from interface oracle.wsm.policy.model.IAssertion |
---|
addAttribute, getAssertionType, getAttribute, getAttributes, getDigest, getParent, getQName, getStringForMatching, hasParent, intersect, isNormalized, isOptional, merge, removeAttribute, setNormalized, setOptional, setParent |
Constructor Detail |
---|
public Policy()
public Policy(boolean setExtensions)
public Policy(QName qname, boolean setExtensions)
public Policy(QName qname)
public Policy(String id)
public Policy(String name, String id)
public Policy(String name, String id, Map<QName,String> attrMap)
Method Detail |
---|
public void setPolicyName(String name)
setPolicyName
in interface IPolicy
public String getPolicyName()
IPolicy
getPolicyName
in interface IPolicy
public void setPolicyId(String id)
setPolicyId
in interface IPolicy
public String getPolicyId()
IPolicy
getPolicyId
in interface IPolicy
public void setReversePipeline(boolean revPipeline)
IPolicy
setReversePipeline
in interface IPolicy
public boolean isReversePipeline()
IPolicy
isReversePipeline
in interface IPolicy
public boolean isReferenceablePolicy()
isReferenceablePolicy
in interface IPolicy
public IAssertion normalize()
IAssertion
normalize
in interface IAssertion
normalize
in class CompositeAssertion
public IAssertion normalize(IPolicyRegistry reg)
AndCompositeAssertion
normalize
in interface IAssertion
normalize
in class AndCompositeAssertion
reg
- the policy registry used to resolve policy referencespublic IAssertion intersect(IAssertion assertion, IPolicyRegistry reg, IIntersectionContext context)
AndCompositeAssertion
intersect
in interface IAssertion
intersect
in class AndCompositeAssertion
assertion
- the assertion to intersect with selfreg
- a sepcified policy registrycontext
- - The intersection context is passed to capture the running context of the intersection and to accumulate intersection failurespublic IAssertion merge(IAssertion assertion, IPolicyRegistry reg)
AndCompositeAssertion
merge
in interface IAssertion
merge
in class AndCompositeAssertion
assertion
- the assertion to be merged withreg
- the policy registry which the is used resolve external policy referencespublic void setAttributes(Map<QName,String> attrMap)
setAttributes
in interface IAssertion
setAttributes
in class SimpleAssertion
protected void setDefaultValues()
setDefaultValues
in class SimpleAssertion
public boolean hasPolicyAlternatives()
IPolicy
hasPolicyAlternatives
in interface IPolicy
public boolean isEnabled()
IPolicy
isEnabled
in interface IPolicy
public IPolicy.STATUS getStatus()
getStatus
in interface IPolicy
public void setStatus(IPolicy.STATUS status)
setStatus
in interface IPolicy
public IPolicyReference createLocalPolicyReference(boolean includeExtensions)
createLocalPolicyReference
in interface IPolicy
public IPolicyReference createRemotePolicyReference(boolean includeExtensions)
createRemotePolicyReference
in interface IPolicy
public boolean isPipeline()
isPipeline
in interface IPolicy
public void setPipeline(boolean isPipeline)
IPolicy
setPipeline
in interface IPolicy
isPipeline
- - true if it is a pipelinepublic IVersionInfo getVersionInfo()
getVersionInfo
in interface IPolicy
public boolean equals(Object obj)
equals
in class AndCompositeAssertion
public boolean isIdentical(Object obj)
isIdentical
in interface IAssertion
isIdentical
in class AndCompositeAssertion
public int hashCode()
hashCode
in class AndCompositeAssertion
public void advertiseOracleWSPolicy(AdvertisementContext context) throws AdvertisementException
advertiseOracleWSPolicy
in interface IAssertionAdvertiser
advertiseOracleWSPolicy
in class CompositeAssertion
context
-AdvertisementException
public void advertiseWSPolicy(AdvertisementContext context) throws AdvertisementException
CompositeAssertion
advertiseWSPolicy
in interface IAssertionAdvertiser
advertiseWSPolicy
in class CompositeAssertion
AdvertisementException
protected void removeAttrsForOracleWSPolicyAdvertisement(Map<QName,String> attrs)
removeAttrsForOracleWSPolicyAdvertisement
in class SimpleAssertion
protected void removeAttrsForWSPolicyAdvertisement(Map<QName,String> attrs)
removeAttrsForWSPolicyAdvertisement
in class SimpleAssertion
public IAssertion createInstance(QName qname)
IAssertion
createInstance
in interface IAssertion
createInstance
in class AndCompositeAssertion
public IAssertion createInstance(QName qname, boolean setExtensions)
createInstance
in class AndCompositeAssertion
public String toString()
toString
in class AndCompositeAssertion
public void setVersionInfo(IVersionInfo versionInfo)
setVersionInfo
in interface IPolicy
public String getValidatorClass()
IPolicy
getValidatorClass
in interface IPolicy
public void setValidatorClass(String className)
IPolicy
setValidatorClass
in interface IPolicy
className
- fully qualified class name of the validator classpublic void validate(IValidationContext context)
IAssertion
validate
in interface IAssertion
validate
in class CompositeAssertion
public List<String> getValidAttachToValues()
getValidAttachToValues
in interface IPolicy
public int getSubjectCount()
IPolicy
getSubjectCount
in interface IPolicy
public void setSubjectCount(int subjectCount)
IPolicy
setSubjectCount
in interface IPolicy
public String getLocalOptimization()
IPolicy
getLocalOptimization
in interface IPolicy
public void setLocalOptimzation(String localOptimization)
IPolicy
setLocalOptimzation
in interface IPolicy
public String getDisplayName(Locale locale)
IPolicy
getDisplayName
in interface IPolicy
public String getDisplayName()
IPolicy
getDisplayName
in interface IPolicy
public void setDisplayName(String displayName)
IPolicy
setDisplayName
in interface IPolicy
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 CompositeAssertion
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 void setSmartDigest(String smartDigest)
getDigest
call.setSmartDigest
in interface IPolicy
smartDigest
- - This is the string representation of the "hash" of the value returned by the methodpublic String getSmartDigest()
getSmartDigest
in interface IPolicy
public void setOracleSmartDigest(String smartDigest)
getDigest
call for Policies containing oracle scenario assertions.setOracleSmartDigest
in interface IPolicy
smartDigest
- - This is the string representation of the "hash" of the value returned by the methodpublic String getOracleSmartDigest()
getOracleSmartDigest
in interface IPolicy
|
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 |