|
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.impl.UpdateService
public class UpdateService
Constructor Summary | |
---|---|
UpdateService() Default constructor |
|
UpdateService(MDSConfig config) Use this constructor for programmatic initialization of MDS |
Method Summary | |
---|---|
IPolicySubjectAttachmentResult |
addAttachmentEntries(IPolicySubject polSubject, List<IPolicyReference> polRefs) Given a policy subject - represented by a resource pattern and a list of policy references for the policy subject - add attachments - if the referenced Policy does not exist - then that entry will be ignored (will not thrown an exception) and processing will continue Duplicate policy references are handled automatically as well as duplicate calls for the same resource pattern. |
IPolicySubjectAttachmentResultStr |
addAttachmentEntriesAsString(String polSubjectStr, List<String> polRefsStr) Given a policy subject - represented by a resource pattern and a list of policy references for the policy subject - add attachments - if the referenced Policy does not exist - then that entry will be ignored (will not thrown an exception) and processing will continue Duplicate policy references are handled automatically as well as duplicate calls for the same resource pattern. |
List<IPolicyAttachmentResultStr> |
addAttachmentEntriesString(String resourcePattern, List<String> polRefStrs) Given a policy subject - represented by a resource pattern and a list of policy references for the policy subject - add attachments - if the referenced Policy does not exist - then that entry will be ignored (will not thrown an exception) and processing will continue Duplicate policy references are handled automatically as well as duplicate calls for the same resource pattern. |
void |
addAttachmentEntryForPolicyString(String policy, List<String> resourcePatterns) Associate given policy subjects with a policy If not attachment exists an attachment will be created, if attachment exists then the resourcePattern will be added to the existing entry. |
boolean |
areTransactionsSupported() This methods lets you know if transactionality is supported by the backed datastore used by the policymanager. |
IAssertionTemplate |
createAssertionTemplate(IAssertionTemplate assertionTemplate) Adds a new Assertion template to the backend datastore |
String |
createAssertionTemplateFromString(String assertionTemplateStr) Adds a new Assertion template to the backend datastore |
List<String> |
createPoliciesFromString(List<String> polStrList) Bulk creation of policies |
IPolicy |
createPolicy(IPolicy policy) This method will create the policy at datastore. |
List<IPolicy> |
createPolicy(List<IPolicy> polList) Bulk creation of policies.If policy is invalid *disable* it and create. |
String |
createPolicyFromString(String policyStr) Adds a new policy to the backend datastore |
void |
deleteAllAssertionTemplates() PERMENENTLY deletes ALL assertion templates from the datastore Assertion templates once deleted cannot be retrived |
void |
deleteAllAttachments() Deletes all policy attachments from data store |
void |
deleteAllPolicies() PERMENENTLY deletes ALL policies from the datastore Policies once deleted cannot be retrived |
void |
deleteAssertionTemplate(IAssertionTemplate assertionTemplate) Delete an Assertion template from backend datastore |
void |
deleteAssertionTemplate(String templateName) Delete an Assertion template from backend datastore |
void |
deleteAssertionTemplates(List<String> assertionTemplateNames) Delete all the policies corresponding to the policy names passed |
void |
deleteAssertionTemplateString(String assertionTemplateStr) Delete an Assertion template from backend datastore |
void |
deleteAssertionTemplateVersions(String assertionTemplateName, List<Long> versionNumbers) Delete all the specified versions of an assertion template |
IPolicySubjectAttachmentResult |
deleteAttachmentEntries(IPolicySubject polSubject, List<IPolicyReference> polRefs) Disassociate a policy subject, represented by a resource pattern, with all policies pointed to by the passed policy reference list Given a policy subject - represented by a resource pattern and a list of policy references for the policy subject - deletes all the attachment entries for the corresponding combination of <resource pattern, IPolicyReference>. |
void |
deleteAttachmentEntries(List<String> policySubject) Disassociate a policy subject, represented by a resource pattern, with all policies that it may be associated with. |
void |
deleteAttachmentEntries(String resourcePattern) Disassociate a policy subject, represented by a resource pattern, with all policies that it may be associated with. |
IPolicySubjectAttachmentResultStr |
deleteAttachmentEntriesForPolSubjectString(String polSubjectStr, List<String> polRefsStr) Disassociate a policy subject, represented by a resource pattern, with all policies pointed to by the passed policy reference list Given a policy subject - represented by a resource pattern and a list of policy references for the policy subject - deletes all the attachment entries for the corresponding combination of <resource pattern, IPolicyReference>. |
List<IPolicyAttachmentResultStr> |
deleteAttachmentEntriesForResourcePattern(String resourcePattern, List<String> polRefStrs) Disassociate a policy subject, represented by a resource pattern, with all policies pointed to by the passed policy reference list Given a policy subject - represented by a resource pattern and a list of policy references for the policy subject - deletes all the attachment entries for the corresponding combination of <resource pattern, IPolicyReference>. |
void |
deletePolicies(List<String> polNameList) Delete all the policies corresponding to the policy names passed |
void |
deletePolicy(IPolicy policy) Delete a policy from the backend datastore |
void |
deletePolicy(String policyName) Delete a policy from the backend datastore |
void |
deletePolicyString(String policyStr) Deletes a policy to the backend datastore |
void |
deletePolicyVersions(String policyName, List<Long> versionNumbers) Delete all the specified versions of a policy |
protected boolean |
existPolicy(String policyName) |
protected String |
getCreator() |
protected void |
init() Initialize the MDS Accessor objects used by this class |
IAssertionTemplate |
promoteAssertionTemplateToTip(String assertionTemplateName, long version) Promote a previous policy version to the latest. |
String |
promoteAssertionTemplateToTipString(String assertionTemplateName, long version) Promote a previous policy version to the latest. |
IPolicy |
promotePolicyToTip(String policyName, long version) Promote a previous policy version to the latest. |
String |
promotePolicyToTipString(String policyName, long version) Promote a previous policy version to the latest. |
protected void |
removeAttachmentEntries(String attachmentName, List<IPolicySubject> resourcePatterns) |
void |
removeAttachmentEntryString(String policyStr, List<String> resourcePatterns) removes a resource pattern from a policy attachment. |
IAssertionTemplate |
updateAssertionTemplate(IAssertionTemplate assertionTemplate) Update an existing Assertion Template |
String |
updateAssertionTemplateFromString(String assertionTemplateStr) Update an existing Assertion Template |
IPolicySubjectAttachmentResult |
updateAttachmentEntries(IPolicySubject polSubject, List<IPolicyReference> polRefs) This API is equivalent to calling deleteAttachmentEntries(String resourcePattern) and calling addAttachmentEntries(String resourcePattern, List<IPolicyReference> polRefs) |
IPolicySubjectAttachmentResult |
updateAttachmentEntries(IPolicySubject polSubject, List<IPolicyReference> polRefs, boolean runPolSubjVal) This method is similar to @see IUpdateService#updateAttachmentEntries(IPolicySubject, List) The variation of this method is it performs Policy subject validation |
IPolicySubjectAttachmentResultStr |
updateAttachmentEntriesForPolSubject(String polSubjectStr, List<String> polRefStrs) This API is equivalent to calling deleteAttachmentEntries(String resourcePattern) and calling addAttachmentEntries(String resourcePattern, List<IPolicyReference> polRefs) |
IPolicySubjectAttachmentResultStr |
updateAttachmentEntriesForPolSubject(String polSubjectStr, List<String> polRefStrs, boolean runPolSubjVal) This method is similar to @see IUpdateService#updateAttachmentEntries(IPolicySubject, List) The variation of this method is it performs Policy subject validation |
List<IPolicyAttachmentResultStr> |
updateAttachmentEntriesForResourcePattern(String resourcePattern, List<String> polRefStrs) This API is equivalent to calling deleteAttachmentEntries(String resourcePattern) and calling addAttachmentEntries(String resourcePattern, List<IPolicyReference> polRefs) |
List<IPolicy> |
updatePolicies(List<IPolicy> policies) Updates a list of policies |
List<String> |
updatePoliciesFromString(List<String> policyStrs) Updates policies to the backend datastore |
IPolicy |
updatePolicy(IPolicy policy) Updates the given policy, For policy that will fail the validation, the policy will be *disabled* and then *saved* to the data store. |
String |
updatePolicyFromString(String policyStr) Updates a policy to the backend datastore |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UpdateService()
public UpdateService(MDSConfig config)
config
- MDS configuration informationMethod Detail |
---|
protected void init()
public IPolicy createPolicy(IPolicy policy) throws PolicyManagerException
createPolicy
in interface IUpdateService
IPolicy
-PolicyManagerException
public IPolicy updatePolicy(IPolicy policy) throws PolicyManagerException
updatePolicy
in interface IUpdateService
policy
- IPolicy object having the details and changes for the policy updatePolicyManagerException
public List<IPolicy> updatePolicies(List<IPolicy> policies) throws PolicyManagerException
updatePolicies
in interface IUpdateService
policies
- A list of IPolicy objects to be updatedPolicyManagerException
UpdateService.updatePolicy(IPolicy policy)
public List<IPolicy> createPolicy(List<IPolicy> polList) throws PolicyManagerException
createPolicy
in interface IUpdateService
polList
- A list of IPolicy objects representing the polices to be createdPolicyManagerException
public void deletePolicy(String policyName) throws PolicyManagerException
deletePolicy
in interface IStringUpdateService
deletePolicy
in interface IUpdateService
policyName
- The name of policy to be deletedPolicyManagerException
PolicyManagerException
public void deletePolicy(IPolicy policy) throws PolicyManagerException
deletePolicy
in interface IUpdateService
policy
- Ipolicy object to representing the policy to be deletedPolicyManagerException
public IAssertionTemplate createAssertionTemplate(IAssertionTemplate assertionTemplate) throws PolicyManagerException
createAssertionTemplate
in interface IUpdateService
assertionTemplate
- The AssertionTemplate object to addPolicyManagerException
public IAssertionTemplate updateAssertionTemplate(IAssertionTemplate assertionTemplate) throws PolicyManagerException
updateAssertionTemplate
in interface IUpdateService
assertionTemplate
- The Assertion template object to be modifiedPolicyManagerException
public void deleteAssertionTemplate(IAssertionTemplate assertionTemplate) throws PolicyManagerException
deleteAssertionTemplate
in interface IUpdateService
assertionTemplate
- The assertion Template object to be deletedPolicyManagerException
public void deleteAssertionTemplate(String templateName) throws PolicyManagerException
IUpdateService
deleteAssertionTemplate
in interface IStringUpdateService
deleteAssertionTemplate
in interface IUpdateService
templateName
- Name of the assertion template to be deletedPolicyManagerException
protected boolean existPolicy(String policyName)
public IPolicy promotePolicyToTip(String policyName, long version) throws PolicyManagerException
IUpdateService
promotePolicyToTip
in interface IUpdateService
policyName
- Name the of policy to be updatedversion
- The version to be promoted to the tipPolicyManagerException
public IAssertionTemplate promoteAssertionTemplateToTip(String assertionTemplateName, long version) throws PolicyManagerException
IUpdateService
promoteAssertionTemplateToTip
in interface IUpdateService
version
- The version to be promoted to the tipPolicyManagerException
public void deletePolicyVersions(String policyName, List<Long> versionNumbers) throws PolicyManagerException
IUpdateService
deletePolicyVersions
in interface IStringUpdateService
deletePolicyVersions
in interface IUpdateService
policyName
- Name of the policy whose versions are to be deletedPolicyManagerException
public void deleteAssertionTemplateVersions(String assertionTemplateName, List<Long> versionNumbers) throws PolicyManagerException
IUpdateService
deleteAssertionTemplateVersions
in interface IStringUpdateService
deleteAssertionTemplateVersions
in interface IUpdateService
assertionTemplateName
- Name of the assertion template whose versions are to be deletedversionNumbers
- List of (long) versions numbers to be deletedPolicyManagerException
public void deleteAllAssertionTemplates() throws PolicyManagerException
IUpdateService
deleteAllAssertionTemplates
in interface IStringUpdateService
deleteAllAssertionTemplates
in interface IUpdateService
PolicyManagerException
public void deleteAllPolicies() throws PolicyManagerException
IUpdateService
deleteAllPolicies
in interface IStringUpdateService
deleteAllPolicies
in interface IUpdateService
PolicyManagerException
public void deleteAssertionTemplates(List<String> assertionTemplateNames) throws PolicyManagerException
IUpdateService
deleteAssertionTemplates
in interface IStringUpdateService
deleteAssertionTemplates
in interface IUpdateService
assertionTemplateNames
- List of assertion template names to be be deletedPolicyManagerException
public void deletePolicies(List<String> polNameList) throws PolicyManagerException
IUpdateService
deletePolicies
in interface IStringUpdateService
deletePolicies
in interface IUpdateService
polNameList
- List of policy names to be be deletedPolicyManagerException
public IPolicySubjectAttachmentResult addAttachmentEntries(IPolicySubject polSubject, List<IPolicyReference> polRefs) throws PolicyManagerException
IUpdateService
addAttachmentEntries
in interface IUpdateService
polSubject
- policy subject to be addedpolRefs
- Policy reference the policy subject needs to be associated withPolicyManagerException
protected void removeAttachmentEntries(String attachmentName, List<IPolicySubject> resourcePatterns) throws PolicyManagerException
PolicyManagerException
public IPolicySubjectAttachmentResult deleteAttachmentEntries(IPolicySubject polSubject, List<IPolicyReference> polRefs) throws PolicyManagerException
IUpdateService
deleteAttachmentEntries
in interface IUpdateService
polSubject
- Policy subject to be removedpolRefs
- Policies from which the subject is to be detachedPolicyManagerException
public void deleteAttachmentEntries(String resourcePattern) throws PolicyManagerException
IUpdateService
deleteAttachmentEntries
in interface IStringUpdateService
deleteAttachmentEntries
in interface IUpdateService
resourcePattern
- Policy subject to be removedPolicyManagerException
public IPolicySubjectAttachmentResult updateAttachmentEntries(IPolicySubject polSubject, List<IPolicyReference> polRefs) throws PolicyManagerException
IUpdateService
updateAttachmentEntries
in interface IUpdateService
PolicyManagerException
public IPolicySubjectAttachmentResult updateAttachmentEntries(IPolicySubject polSubject, List<IPolicyReference> polRefs, boolean runPolSubjVal) throws PolicyManagerException
IUpdateService
updateAttachmentEntries
in interface IUpdateService
PolicyManagerException
public void deleteAllAttachments() throws PolicyManagerException
IUpdateService
deleteAllAttachments
in interface IStringUpdateService
deleteAllAttachments
in interface IUpdateService
PolicyManagerException
protected String getCreator()
public boolean areTransactionsSupported()
IUpdateService
areTransactionsSupported
in interface IStringUpdateService
areTransactionsSupported
in interface IUpdateService
public IPolicySubjectAttachmentResultStr addAttachmentEntriesAsString(String polSubjectStr, List<String> polRefsStr) throws PolicyManagerException
IStringUpdateService
addAttachmentEntriesAsString
in interface IStringUpdateService
polRefsStr
- Policy reference the policy subject needs to be associated withPolicyManagerException
public String createAssertionTemplateFromString(String assertionTemplateStr) throws PolicyManagerException
IStringUpdateService
createAssertionTemplateFromString
in interface IStringUpdateService
PolicyManagerException
public List<String> createPoliciesFromString(List<String> polStrList) throws PolicyManagerException
IStringUpdateService
createPoliciesFromString
in interface IStringUpdateService
PolicyManagerException
public String createPolicyFromString(String policyStr) throws PolicyManagerException
IStringUpdateService
createPolicyFromString
in interface IStringUpdateService
PolicyManagerException
public void deleteAssertionTemplateString(String assertionTemplateStr) throws PolicyManagerException
IStringUpdateService
deleteAssertionTemplateString
in interface IStringUpdateService
PolicyManagerException
public IPolicySubjectAttachmentResultStr deleteAttachmentEntriesForPolSubjectString(String polSubjectStr, List<String> polRefsStr) throws PolicyManagerException
IStringUpdateService
deleteAttachmentEntriesForPolSubjectString
in interface IStringUpdateService
PolicyManagerException
public void deletePolicyString(String policyStr) throws PolicyManagerException
IStringUpdateService
deletePolicyString
in interface IStringUpdateService
PolicyManagerException
public String promoteAssertionTemplateToTipString(String assertionTemplateName, long version) throws PolicyManagerException
IStringUpdateService
promoteAssertionTemplateToTipString
in interface IStringUpdateService
version
- The version to be promoted to the tipPolicyManagerException
public String promotePolicyToTipString(String policyName, long version) throws PolicyManagerException
IStringUpdateService
promotePolicyToTipString
in interface IStringUpdateService
policyName
- Name the of policy to be updatedversion
- The version to be promoted to the tipPolicyManagerException
public String updateAssertionTemplateFromString(String assertionTemplateStr) throws PolicyManagerException
IStringUpdateService
updateAssertionTemplateFromString
in interface IStringUpdateService
PolicyManagerException
public IPolicySubjectAttachmentResultStr updateAttachmentEntriesForPolSubject(String polSubjectStr, List<String> polRefStrs) throws PolicyManagerException
IStringUpdateService
updateAttachmentEntriesForPolSubject
in interface IStringUpdateService
PolicyManagerException
public IPolicySubjectAttachmentResultStr updateAttachmentEntriesForPolSubject(String polSubjectStr, List<String> polRefStrs, boolean runPolSubjVal) throws PolicyManagerException
IStringUpdateService
updateAttachmentEntriesForPolSubject
in interface IStringUpdateService
PolicyManagerException
public List<String> updatePoliciesFromString(List<String> policyStrs) throws PolicyManagerException
IStringUpdateService
updatePoliciesFromString
in interface IStringUpdateService
PolicyManagerException
public String updatePolicyFromString(String policyStr) throws PolicyManagerException
IStringUpdateService
updatePolicyFromString
in interface IStringUpdateService
PolicyManagerException
public List<IPolicyAttachmentResultStr> addAttachmentEntriesString(String resourcePattern, List<String> polRefStrs) throws PolicyManagerException
IStringUpdateService
addAttachmentEntriesString
in interface IStringUpdateService
resourcePattern
- policy subject to be addedPolicyManagerException
public void removeAttachmentEntryString(String policyStr, List<String> resourcePatterns) throws PolicyManagerException
IStringUpdateService
removeAttachmentEntryString
in interface IStringUpdateService
PolicyManagerException
public List<IPolicyAttachmentResultStr> deleteAttachmentEntriesForResourcePattern(String resourcePattern, List<String> polRefStrs) throws PolicyManagerException
IStringUpdateService
deleteAttachmentEntriesForResourcePattern
in interface IStringUpdateService
resourcePattern
- Policy subject to be removedPolicyManagerException
public List<IPolicyAttachmentResultStr> updateAttachmentEntriesForResourcePattern(String resourcePattern, List<String> polRefStrs) throws PolicyManagerException
IStringUpdateService
updateAttachmentEntriesForResourcePattern
in interface IStringUpdateService
PolicyManagerException
public void addAttachmentEntryForPolicyString(String policy, List<String> resourcePatterns) throws PolicyManagerException
IStringUpdateService
addAttachmentEntryForPolicyString
in interface IStringUpdateService
policy
- Policy object to which the passed policy subjects need to be associatedresourcePatterns
- List of policy subjects to be addedPolicyManagerException
public void deleteAttachmentEntries(List<String> policySubject) throws PolicyManagerException
IUpdateService
deleteAttachmentEntries
in interface IStringUpdateService
deleteAttachmentEntries
in interface IUpdateService
policySubject
- list of Policy subject to be removedPolicyManagerException
|
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 |