|
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.policymanager.client.QueryServiceDelegate
public class QueryServiceDelegate
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface oracle.wsm.policymanager.IQueryService |
---|
IQueryService.Attributes |
Constructor Summary | |
---|---|
QueryServiceDelegate(IStringQueryService queryServiceForDelegate) |
Method Summary | |
---|---|
boolean |
areTransactionsSupported() This methods lets you know if transactionality is supported by the backed datastore used by the policymanager. |
IAssertionTemplate |
getAssertionTemplate(String assertionTemplateName) Retrives and returns an Assertiontemplate object with the supplied name |
List<IAssertionTemplate> |
getAssertionTemplates(String path) Returns a list of all Assertion Templates stored in the datastore |
List<IAssertionTemplate> |
getAssertionTemplatesByCategory(String path, String category) Return a list of assertion templates belonging to a specific category |
List<IAssertionTemplate> |
getAssertionTemplatesByQNameAndAttachTo(QName assertionQName, String appliesTo) Return all Assertion Templates that contain the assertion identified by its qname (assertionQName) and attachTo. |
IAssertionTemplate |
getAssertionTemplateVersion(String assertionTemplateName, long version) Returns a particular version of an assertionTemplate |
List<IAssertionTemplate> |
getAssertionTemplateVersionHistory(String templateName) Get a list of all previous version of a particular Assertion template |
IPolicyAttachment |
getAttachment(String attachmentName) Get a policy attachment object store in the store by the passed name |
IPolicyAttachment |
getAttachmentByPolicyName(String policyName) Returns a single policy attachment - given the name of the Policy. |
List<IPolicyAttachment> |
getAttachments(String path, String policyId) Get all Policy Attachment objects under a particular path and matching passed ID |
List<IPolicy> |
getPolicies(String path) Returns all policies in the Policy store |
List<IPolicy> |
getPoliciesByAttachTo(String path, List<String> attachToList) Return Policies in a specific Attachment Point |
List<IPolicy> |
getPoliciesByCategory(String path, String category) Returns a list of Policies belonging to the cateory passed |
List<IPolicy> |
getPoliciesByCategoryAndAttachTo(String path, String category, List<String> attachToList) Return a list of Policies in any of the supplied Attachment points and belonging to the passed category |
List<IPolicy> |
getPoliciesByID(String path, String policyID) Return a list of policies matching the supplied path and id This method can be use to restrict searching policies within a particular path If the complete path to a particular policy is know and only a single policy is to be fetched, the corresponding method should be used instead of this method |
List<IPolicy> |
getPoliciesByPolicyReferences(List<IPolicyReference> polRefs, boolean includeConfigs) Given a list of PolicyReferences returns the corresponding Policies. |
Map<IPolicyReference,IPolicy> |
getPoliciesByPolicyReferencesMap(List<IPolicyReference> polRefs, boolean includeConfigs) Given a list of PolicyReferences returns a Map of <IPolicyReference, IPolicy> if a PolicyReference is invalid then null is returned |
List<IPolicy> |
getPoliciesByPolicyStatus(String path, IPolicy.STATUS status) Return a list of Policies with supplied status |
List<IPolicy> |
getPoliciesForResource(String resourcePattern) Returns the Policies attached to a Policy Subject(Resource) identified by resourcePattern |
IPolicy |
getPolicy(String policyName) Get a policy for the given policy name |
IPolicy |
getPolicy(String policyName, boolean getConfig) Get a particular policy with options to include configuration information |
IPolicy |
getPolicyByID(String path, String policyID) Returns a policy corresponding to given policy path and ID This method will return a single policy with the name <path/id>. |
Map<String,List<IPolicyReference>> |
getPolicyReferencesForResource(List<String> policySubject) Finds all the policy references that are attached to the policy subject |
List<IPolicyReference> |
getPolicyReferencesForResource(String resourcePattern) Finds all the policies that are attached to a resource pattern |
IPolicy |
getPolicyVersion(String policyName, long version) Returns a particular version of a policy |
List<IPolicy> |
getPolicyVersionHistory(String policyName) Get a list of all previous version of a particular policy |
Date |
getStoreTimestamp() Returns the timestamp of the Policy store |
Subject |
getSubject() |
List<IPolicy> |
searchPolicies(SearchCriteria searchCriteria) Search and return a list of policies that meet the passed search Criteria |
void |
setSubject(Subject subject) |
Map<IPolicy,List<IValidationError>> |
validatePolicies(List<IPolicy> policies) Performs Policy Validation on each policy and return the list of errors. |
Map<IPolicySubject,List<IValidationError>> |
validatePolicySubjects(Map<IPolicySubject,List<IPolicyReference>> polSubjectsToValidate) Performs Policy Subject Validation - where each Policy Subject is represented by a IPolicySubject and the List of PolicyReference that are attached for the PolicySubject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryServiceDelegate(IStringQueryService queryServiceForDelegate)
Method Detail |
---|
public IPolicy getPolicy(String policyName) throws PolicyManagerException
getPolicy
in interface IQueryService
PolicyManagerException
public IPolicy getPolicy(String policyName, boolean getConfig) throws PolicyManagerException
getPolicy
in interface IQueryService
PolicyManagerException
public List<IPolicy> getPolicies(String path) throws PolicyManagerException
getPolicies
in interface IQueryService
path
- The path to search within the data store If path is null, the entire datastore will be searchedPolicyManagerException
public List<IPolicy> getPoliciesByCategory(String path, String category) throws PolicyManagerException
getPoliciesByCategory
in interface IQueryService
path
- The path to search within the data store If path is null, the entire datastore will be searchedcategory
- The catergory to search policies onPolicyManagerException
public List<IPolicy> getPoliciesByPolicyStatus(String path, IPolicy.STATUS status) throws PolicyManagerException
getPoliciesByPolicyStatus
in interface IQueryService
path
- The path to search within the data store If path is null, the entire datastore will be searchedstatus
- Policy enums tatus to lookupPolicyManagerException
public IPolicy getPolicyByID(String path, String policyID) throws PolicyManagerException
getPolicyByID
in interface IQueryService
path
- The path to search within the data store If path is null, the entire datastore will be searchedpolicyID
- Name of the Policy to be looked upPolicyManagerException
public List<IPolicy> getPoliciesByID(String path, String policyID) throws PolicyManagerException
getPoliciesByID
in interface IQueryService
path
- The path to search within the data store If path is null, the entire datastore will be searchedPolicyManagerException
IQueryService.getPolicyByID(String path, String policyID)
public List<IPolicy> getPoliciesByCategoryAndAttachTo(String path, String category, List<String> attachToList) throws PolicyManagerException
getPoliciesByCategoryAndAttachTo
in interface IQueryService
path
- The path to search within the data store If path is null, the entire datastore will be searchedcategory
- Policy Category to search underattachToList
- List of attachment points to look atPolicyManagerException
public List<IPolicy> getPoliciesByAttachTo(String path, List<String> attachToList) throws PolicyManagerException
getPoliciesByAttachTo
in interface IQueryService
path
- The path to search within the data store If path is null, the entire datastore will be searchedattachToList
- List to attachement points to look forPolicyManagerException
public List<IPolicy> getPoliciesByPolicyReferences(List<IPolicyReference> polRefs, boolean includeConfigs) throws PolicyManagerException
getPoliciesByPolicyReferences
in interface IQueryService
polRefs
- - List of IPolicyReferencePolicyManagerException
public Map<IPolicyReference,IPolicy> getPoliciesByPolicyReferencesMap(List<IPolicyReference> polRefs, boolean includeConfigs) throws PolicyManagerException
getPoliciesByPolicyReferencesMap
in interface IQueryService
polRefs
- - List of IPolicyReferencePolicyManagerException
public List<IPolicy> getPolicyVersionHistory(String policyName) throws PolicyManagerException
getPolicyVersionHistory
in interface IQueryService
PolicyManagerException
public IPolicy getPolicyVersion(String policyName, long version) throws PolicyManagerException
getPolicyVersion
in interface IQueryService
policyName
- Name a policy to look upversion
- The version number to be fetchedPolicyManagerException
- If the particular version or the policy doesn't existpublic List<IPolicy> getPoliciesForResource(String resourcePattern) throws PolicyManagerException
getPoliciesForResource
in interface IQueryService
resourcePattern
- - String representation of a Policy Subject or ResourcePolicyManagerException
public List<IPolicy> searchPolicies(SearchCriteria searchCriteria) throws PolicyManagerException
searchPolicies
in interface IQueryService
searchCriteria
- Condition for the searchPolicyManagerException
public IAssertionTemplate getAssertionTemplate(String assertionTemplateName) throws PolicyManagerException
getAssertionTemplate
in interface IQueryService
assertionTemplateName
- Name of the assertion Template object to be fetchedPolicyManagerException
public List<IAssertionTemplate> getAssertionTemplates(String path) throws PolicyManagerException
getAssertionTemplates
in interface IQueryService
path
- The path to search within the data store If path is null, the entire datastore will be searchedPolicyManagerException
public List<IAssertionTemplate> getAssertionTemplateVersionHistory(String templateName) throws PolicyManagerException
getAssertionTemplateVersionHistory
in interface IQueryService
templateName
- Name of the Assertion template versions of which need to be fetchedPolicyManagerException
public List<IAssertionTemplate> getAssertionTemplatesByCategory(String path, String category) throws PolicyManagerException
getAssertionTemplatesByCategory
in interface IQueryService
path
- Path to restrict the search tocategory
- Category to search forPolicyManagerException
public List<IAssertionTemplate> getAssertionTemplatesByQNameAndAttachTo(QName assertionQName, String appliesTo) throws PolicyManagerException
getAssertionTemplatesByQNameAndAttachTo
in interface IQueryService
assertionQName
- - cannot be nullPolicyManagerException
public IAssertionTemplate getAssertionTemplateVersion(String assertionTemplateName, long version) throws PolicyManagerException
getAssertionTemplateVersion
in interface IQueryService
assertionTemplateName
- Name of the assertiontemplate to be look upversion
- The version number to be fetchedPolicyManagerException
- If the particular version or the Assertion template doesn't existpublic IPolicyAttachment getAttachment(String attachmentName) throws PolicyManagerException
getAttachment
in interface IQueryService
attachmentName
- Name of the Policy attachment to be looked upPolicyManagerException
public IPolicyAttachment getAttachmentByPolicyName(String policyName) throws PolicyManagerException
getAttachmentByPolicyName
in interface IQueryService
PolicyManagerException
public List<IPolicyAttachment> getAttachments(String path, String policyId) throws PolicyManagerException
getAttachments
in interface IQueryService
PolicyManagerException
public Map<IPolicySubject,List<IValidationError>> validatePolicySubjects(Map<IPolicySubject,List<IPolicyReference>> polSubjectsToValidate) throws PolicyManagerException
validatePolicySubjects
in interface IQueryService
PolicyManagerException
public Map<IPolicy,List<IValidationError>> validatePolicies(List<IPolicy> policies) throws PolicyManagerException
validatePolicies
in interface IQueryService
policies
- - List of IPolicy to be validatedPolicyManagerException
public List<IPolicyReference> getPolicyReferencesForResource(String resourcePattern) throws PolicyManagerException
getPolicyReferencesForResource
in interface IQueryService
PolicyManagerException
public Map<String,List<IPolicyReference>> getPolicyReferencesForResource(List<String> policySubject) throws PolicyManagerException
IQueryService
getPolicyReferencesForResource
in interface IQueryService
PolicyManagerException
public Date getStoreTimestamp()
IQueryService
getStoreTimestamp
in interface IQueryService
public boolean areTransactionsSupported() throws PolicyManagerException
areTransactionsSupported
in interface IQueryService
PolicyManagerException
public Subject getSubject()
public void setSubject(Subject subject)
|
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 |