|
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
oracle.wsm.policymanager.ejb.impl.UpdateService
public class UpdateService
Constructor Summary | |
---|---|
UpdateService() |
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. |
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(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>. |
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 String |
getCreator() |
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. |
void |
setSessionContext(javax.ejb.SessionContext ctx) |
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<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 oracle.wsm.policymanager.impl.UpdateService |
---|
addAttachmentEntriesString, addAttachmentEntryForPolicyString, areTransactionsSupported, deleteAttachmentEntries, deleteAttachmentEntriesForResourcePattern, existPolicy, init, removeAttachmentEntries, removeAttachmentEntryString, updateAttachmentEntriesForResourcePattern |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.wsm.policymanager.IUpdateService |
---|
areTransactionsSupported, deleteAttachmentEntries |
Methods inherited from interface oracle.wsm.policymanager.internal.IStringUpdateService |
---|
addAttachmentEntriesString, addAttachmentEntryForPolicyString, areTransactionsSupported, deleteAttachmentEntries, deleteAttachmentEntriesForResourcePattern, removeAttachmentEntryString, updateAttachmentEntriesForResourcePattern |
Constructor Detail |
---|
public UpdateService()
Method Detail |
---|
public void setSessionContext(javax.ejb.SessionContext ctx)
protected String getCreator()
getCreator
in class UpdateService
public IPolicySubjectAttachmentResult addAttachmentEntries(IPolicySubject polSubject, List<IPolicyReference> polRefs) throws PolicyManagerException
IUpdateService
addAttachmentEntries
in interface IUpdateService
addAttachmentEntries
in class UpdateService
polSubject
- policy subject to be addedpolRefs
- Policy reference the policy subject needs to be associated withPolicyManagerException
public IAssertionTemplate createAssertionTemplate(IAssertionTemplate assertionTemplate) throws PolicyManagerException
UpdateService
createAssertionTemplate
in interface IUpdateService
createAssertionTemplate
in class UpdateService
assertionTemplate
- The AssertionTemplate object to addPolicyManagerException
public IPolicy createPolicy(IPolicy policy) throws PolicyManagerException
UpdateService
createPolicy
in interface IUpdateService
createPolicy
in class UpdateService
policy
- object to addPolicyManagerException
public List<IPolicy> createPolicy(List<IPolicy> polList) throws PolicyManagerException
UpdateService
createPolicy
in interface IUpdateService
createPolicy
in class UpdateService
polList
- A list of IPolicy objects representing the polices to be createdPolicyManagerException
public void deleteAllAssertionTemplates() throws PolicyManagerException
IUpdateService
deleteAllAssertionTemplates
in interface IStringUpdateService
deleteAllAssertionTemplates
in interface IUpdateService
deleteAllAssertionTemplates
in class UpdateService
PolicyManagerException
public void deleteAllAttachments() throws PolicyManagerException
IUpdateService
deleteAllAttachments
in interface IStringUpdateService
deleteAllAttachments
in interface IUpdateService
deleteAllAttachments
in class UpdateService
PolicyManagerException
public void deleteAllPolicies() throws PolicyManagerException
IUpdateService
deleteAllPolicies
in interface IStringUpdateService
deleteAllPolicies
in interface IUpdateService
deleteAllPolicies
in class UpdateService
PolicyManagerException
public void deleteAssertionTemplate(IAssertionTemplate assertionTemplate) throws PolicyManagerException
UpdateService
deleteAssertionTemplate
in interface IUpdateService
deleteAssertionTemplate
in class UpdateService
assertionTemplate
- The assertion Template object to be deletedPolicyManagerException
public void deleteAssertionTemplate(String templateName) throws PolicyManagerException
IUpdateService
deleteAssertionTemplate
in interface IStringUpdateService
deleteAssertionTemplate
in interface IUpdateService
deleteAssertionTemplate
in class UpdateService
templateName
- Name of the assertion template to be deletedPolicyManagerException
public void deleteAssertionTemplates(List<String> assertionTemplateNames) throws PolicyManagerException
IUpdateService
deleteAssertionTemplates
in interface IStringUpdateService
deleteAssertionTemplates
in interface IUpdateService
deleteAssertionTemplates
in class UpdateService
assertionTemplateNames
- List of assertion template names to be be deletedPolicyManagerException
public void deleteAssertionTemplateVersions(String assertionTemplateName, List<Long> versionNumbers) throws PolicyManagerException
IUpdateService
deleteAssertionTemplateVersions
in interface IStringUpdateService
deleteAssertionTemplateVersions
in interface IUpdateService
deleteAssertionTemplateVersions
in class UpdateService
assertionTemplateName
- Name of the assertion template whose versions are to be deletedversionNumbers
- List of (long) versions numbers to be deletedPolicyManagerException
public IPolicySubjectAttachmentResult deleteAttachmentEntries(IPolicySubject polSubject, List<IPolicyReference> polRefs) throws PolicyManagerException
IUpdateService
deleteAttachmentEntries
in interface IUpdateService
deleteAttachmentEntries
in class UpdateService
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
deleteAttachmentEntries
in class UpdateService
resourcePattern
- Policy subject to be removedPolicyManagerException
public void deletePolicies(List<String> polNameList) throws PolicyManagerException
IUpdateService
deletePolicies
in interface IStringUpdateService
deletePolicies
in interface IUpdateService
deletePolicies
in class UpdateService
polNameList
- List of policy names to be be deletedPolicyManagerException
public void deletePolicy(IPolicy policy) throws PolicyManagerException
UpdateService
deletePolicy
in interface IUpdateService
deletePolicy
in class UpdateService
policy
- Ipolicy object to representing the policy to be deletedPolicyManagerException
public void deletePolicy(String policyName) throws PolicyManagerException
UpdateService
deletePolicy
in interface IStringUpdateService
deletePolicy
in interface IUpdateService
deletePolicy
in class UpdateService
policyName
- The name of policy to be deletedPolicyManagerException
public void deletePolicyVersions(String policyName, List<Long> versionNumbers) throws PolicyManagerException
IUpdateService
deletePolicyVersions
in interface IStringUpdateService
deletePolicyVersions
in interface IUpdateService
deletePolicyVersions
in class UpdateService
policyName
- Name of the policy whose versions are to be deletedPolicyManagerException
public IAssertionTemplate promoteAssertionTemplateToTip(String assertionTemplateName, long version) throws PolicyManagerException
IUpdateService
promoteAssertionTemplateToTip
in interface IUpdateService
promoteAssertionTemplateToTip
in class UpdateService
version
- The version to be promoted to the tipPolicyManagerException
public IPolicy promotePolicyToTip(String policyName, long version) throws PolicyManagerException
IUpdateService
promotePolicyToTip
in interface IUpdateService
promotePolicyToTip
in class UpdateService
policyName
- Name the of policy to be updatedversion
- The version to be promoted to the tipPolicyManagerException
public IAssertionTemplate updateAssertionTemplate(IAssertionTemplate assertionTemplate) throws PolicyManagerException
UpdateService
updateAssertionTemplate
in interface IUpdateService
updateAssertionTemplate
in class UpdateService
assertionTemplate
- The Assertion template object to be modifiedPolicyManagerException
public IPolicySubjectAttachmentResult updateAttachmentEntries(IPolicySubject polSubject, List<IPolicyReference> polRefs) throws PolicyManagerException
IUpdateService
updateAttachmentEntries
in interface IUpdateService
updateAttachmentEntries
in class UpdateService
PolicyManagerException
public List<IPolicy> updatePolicies(List<IPolicy> policies) throws PolicyManagerException
UpdateService
updatePolicies
in interface IUpdateService
updatePolicies
in class UpdateService
policies
- A list of IPolicy objects to be updatedPolicyManagerException
UpdateService.updatePolicy(IPolicy policy)
public IPolicy updatePolicy(IPolicy policy) throws PolicyManagerException
UpdateService
updatePolicy
in interface IUpdateService
updatePolicy
in class UpdateService
policy
- IPolicy object having the details and changes for the policy updatePolicyManagerException
public IPolicySubjectAttachmentResultStr addAttachmentEntriesAsString(String polSubjectStr, List<String> polRefsStr) throws PolicyManagerException
IStringUpdateService
addAttachmentEntriesAsString
in interface IStringUpdateService
addAttachmentEntriesAsString
in class UpdateService
polRefsStr
- Policy reference the policy subject needs to be associated withPolicyManagerException
public String createAssertionTemplateFromString(String assertionTemplateStr) throws PolicyManagerException
IStringUpdateService
createAssertionTemplateFromString
in interface IStringUpdateService
createAssertionTemplateFromString
in class UpdateService
PolicyManagerException
public List<String> createPoliciesFromString(List<String> polStrList) throws PolicyManagerException
IStringUpdateService
createPoliciesFromString
in interface IStringUpdateService
createPoliciesFromString
in class UpdateService
PolicyManagerException
public String createPolicyFromString(String policyStr) throws PolicyManagerException
IStringUpdateService
createPolicyFromString
in interface IStringUpdateService
createPolicyFromString
in class UpdateService
PolicyManagerException
public void deleteAssertionTemplateString(String assertionTemplateStr) throws PolicyManagerException
IStringUpdateService
deleteAssertionTemplateString
in interface IStringUpdateService
deleteAssertionTemplateString
in class UpdateService
PolicyManagerException
public IPolicySubjectAttachmentResultStr deleteAttachmentEntriesForPolSubjectString(String polSubjectStr, List<String> polRefsStr) throws PolicyManagerException
IStringUpdateService
deleteAttachmentEntriesForPolSubjectString
in interface IStringUpdateService
deleteAttachmentEntriesForPolSubjectString
in class UpdateService
PolicyManagerException
public void deletePolicyString(String policyStr) throws PolicyManagerException
IStringUpdateService
deletePolicyString
in interface IStringUpdateService
deletePolicyString
in class UpdateService
PolicyManagerException
public String promoteAssertionTemplateToTipString(String assertionTemplateName, long version) throws PolicyManagerException
IStringUpdateService
promoteAssertionTemplateToTipString
in interface IStringUpdateService
promoteAssertionTemplateToTipString
in class UpdateService
version
- The version to be promoted to the tipPolicyManagerException
public String promotePolicyToTipString(String policyName, long version) throws PolicyManagerException
IStringUpdateService
promotePolicyToTipString
in interface IStringUpdateService
promotePolicyToTipString
in class UpdateService
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
updateAssertionTemplateFromString
in class UpdateService
PolicyManagerException
public IPolicySubjectAttachmentResult updateAttachmentEntries(IPolicySubject polSubject, List<IPolicyReference> polRefs, boolean runPolSubjVal) throws PolicyManagerException
IUpdateService
updateAttachmentEntries
in interface IUpdateService
updateAttachmentEntries
in class UpdateService
PolicyManagerException
public IPolicySubjectAttachmentResultStr updateAttachmentEntriesForPolSubject(String polSubjectStr, List<String> polRefStrs, boolean runPolSubjVal) throws PolicyManagerException
IStringUpdateService
updateAttachmentEntriesForPolSubject
in interface IStringUpdateService
updateAttachmentEntriesForPolSubject
in class UpdateService
PolicyManagerException
public IPolicySubjectAttachmentResultStr updateAttachmentEntriesForPolSubject(String polSubjectStr, List<String> polRefStrs) throws PolicyManagerException
IStringUpdateService
updateAttachmentEntriesForPolSubject
in interface IStringUpdateService
updateAttachmentEntriesForPolSubject
in class UpdateService
PolicyManagerException
public List<String> updatePoliciesFromString(List<String> policyStrs) throws PolicyManagerException
IStringUpdateService
updatePoliciesFromString
in interface IStringUpdateService
updatePoliciesFromString
in class UpdateService
PolicyManagerException
public String updatePolicyFromString(String policyStr) throws PolicyManagerException
IStringUpdateService
updatePolicyFromString
in interface IStringUpdateService
updatePolicyFromString
in class UpdateService
PolicyManagerException
|
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 |