|
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
IUpdateServiceaddAttachmentEntries in interface IUpdateServiceaddAttachmentEntries in class UpdateServicepolSubject - policy subject to be addedpolRefs - Policy reference the policy subject needs to be associated withPolicyManagerException
public IAssertionTemplate createAssertionTemplate(IAssertionTemplate assertionTemplate)
throws PolicyManagerException
UpdateServicecreateAssertionTemplate in interface IUpdateServicecreateAssertionTemplate in class UpdateServiceassertionTemplate - The AssertionTemplate object to addPolicyManagerException
public IPolicy createPolicy(IPolicy policy)
throws PolicyManagerException
UpdateServicecreatePolicy in interface IUpdateServicecreatePolicy in class UpdateServicepolicy - object to addPolicyManagerException
public List<IPolicy> createPolicy(List<IPolicy> polList)
throws PolicyManagerException
UpdateServicecreatePolicy in interface IUpdateServicecreatePolicy in class UpdateServicepolList - A list of IPolicy objects representing the polices to be createdPolicyManagerException
public void deleteAllAssertionTemplates()
throws PolicyManagerException
IUpdateServicedeleteAllAssertionTemplates in interface IStringUpdateServicedeleteAllAssertionTemplates in interface IUpdateServicedeleteAllAssertionTemplates in class UpdateServicePolicyManagerException
public void deleteAllAttachments()
throws PolicyManagerException
IUpdateServicedeleteAllAttachments in interface IStringUpdateServicedeleteAllAttachments in interface IUpdateServicedeleteAllAttachments in class UpdateServicePolicyManagerException
public void deleteAllPolicies()
throws PolicyManagerException
IUpdateServicedeleteAllPolicies in interface IStringUpdateServicedeleteAllPolicies in interface IUpdateServicedeleteAllPolicies in class UpdateServicePolicyManagerException
public void deleteAssertionTemplate(IAssertionTemplate assertionTemplate)
throws PolicyManagerException
UpdateServicedeleteAssertionTemplate in interface IUpdateServicedeleteAssertionTemplate in class UpdateServiceassertionTemplate - The assertion Template object to be deletedPolicyManagerException
public void deleteAssertionTemplate(String templateName)
throws PolicyManagerException
IUpdateServicedeleteAssertionTemplate in interface IStringUpdateServicedeleteAssertionTemplate in interface IUpdateServicedeleteAssertionTemplate in class UpdateServicetemplateName - Name of the assertion template to be deletedPolicyManagerException
public void deleteAssertionTemplates(List<String> assertionTemplateNames)
throws PolicyManagerException
IUpdateServicedeleteAssertionTemplates in interface IStringUpdateServicedeleteAssertionTemplates in interface IUpdateServicedeleteAssertionTemplates in class UpdateServiceassertionTemplateNames - List of assertion template names to be be deletedPolicyManagerException
public void deleteAssertionTemplateVersions(String assertionTemplateName,
List<Long> versionNumbers)
throws PolicyManagerException
IUpdateServicedeleteAssertionTemplateVersions in interface IStringUpdateServicedeleteAssertionTemplateVersions in interface IUpdateServicedeleteAssertionTemplateVersions in class UpdateServiceassertionTemplateName - 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
IUpdateServicedeleteAttachmentEntries in interface IUpdateServicedeleteAttachmentEntries in class UpdateServicepolSubject - Policy subject to be removedpolRefs - Policies from which the subject is to be detachedPolicyManagerException
public void deleteAttachmentEntries(String resourcePattern)
throws PolicyManagerException
IUpdateServicedeleteAttachmentEntries in interface IStringUpdateServicedeleteAttachmentEntries in interface IUpdateServicedeleteAttachmentEntries in class UpdateServiceresourcePattern - Policy subject to be removedPolicyManagerException
public void deletePolicies(List<String> polNameList)
throws PolicyManagerException
IUpdateServicedeletePolicies in interface IStringUpdateServicedeletePolicies in interface IUpdateServicedeletePolicies in class UpdateServicepolNameList - List of policy names to be be deletedPolicyManagerException
public void deletePolicy(IPolicy policy)
throws PolicyManagerException
UpdateServicedeletePolicy in interface IUpdateServicedeletePolicy in class UpdateServicepolicy - Ipolicy object to representing the policy to be deletedPolicyManagerException
public void deletePolicy(String policyName)
throws PolicyManagerException
UpdateServicedeletePolicy in interface IStringUpdateServicedeletePolicy in interface IUpdateServicedeletePolicy in class UpdateServicepolicyName - The name of policy to be deletedPolicyManagerException
public void deletePolicyVersions(String policyName,
List<Long> versionNumbers)
throws PolicyManagerException
IUpdateServicedeletePolicyVersions in interface IStringUpdateServicedeletePolicyVersions in interface IUpdateServicedeletePolicyVersions in class UpdateServicepolicyName - Name of the policy whose versions are to be deletedPolicyManagerException
public IAssertionTemplate promoteAssertionTemplateToTip(String assertionTemplateName,
long version)
throws PolicyManagerException
IUpdateServicepromoteAssertionTemplateToTip in interface IUpdateServicepromoteAssertionTemplateToTip in class UpdateServiceversion - The version to be promoted to the tipPolicyManagerException
public IPolicy promotePolicyToTip(String policyName,
long version)
throws PolicyManagerException
IUpdateServicepromotePolicyToTip in interface IUpdateServicepromotePolicyToTip in class UpdateServicepolicyName - Name the of policy to be updatedversion - The version to be promoted to the tipPolicyManagerException
public IAssertionTemplate updateAssertionTemplate(IAssertionTemplate assertionTemplate)
throws PolicyManagerException
UpdateServiceupdateAssertionTemplate in interface IUpdateServiceupdateAssertionTemplate in class UpdateServiceassertionTemplate - The Assertion template object to be modifiedPolicyManagerException
public IPolicySubjectAttachmentResult updateAttachmentEntries(IPolicySubject polSubject,
List<IPolicyReference> polRefs)
throws PolicyManagerException
IUpdateServiceupdateAttachmentEntries in interface IUpdateServiceupdateAttachmentEntries in class UpdateServicePolicyManagerException
public List<IPolicy> updatePolicies(List<IPolicy> policies)
throws PolicyManagerException
UpdateServiceupdatePolicies in interface IUpdateServiceupdatePolicies in class UpdateServicepolicies - A list of IPolicy objects to be updatedPolicyManagerExceptionUpdateService.updatePolicy(IPolicy policy)
public IPolicy updatePolicy(IPolicy policy)
throws PolicyManagerException
UpdateServiceupdatePolicy in interface IUpdateServiceupdatePolicy in class UpdateServicepolicy - IPolicy object having the details and changes for the policy updatePolicyManagerException
public IPolicySubjectAttachmentResultStr addAttachmentEntriesAsString(String polSubjectStr,
List<String> polRefsStr)
throws PolicyManagerException
IStringUpdateServiceaddAttachmentEntriesAsString in interface IStringUpdateServiceaddAttachmentEntriesAsString in class UpdateServicepolRefsStr - Policy reference the policy subject needs to be associated withPolicyManagerException
public String createAssertionTemplateFromString(String assertionTemplateStr)
throws PolicyManagerException
IStringUpdateServicecreateAssertionTemplateFromString in interface IStringUpdateServicecreateAssertionTemplateFromString in class UpdateServicePolicyManagerException
public List<String> createPoliciesFromString(List<String> polStrList)
throws PolicyManagerException
IStringUpdateServicecreatePoliciesFromString in interface IStringUpdateServicecreatePoliciesFromString in class UpdateServicePolicyManagerException
public String createPolicyFromString(String policyStr)
throws PolicyManagerException
IStringUpdateServicecreatePolicyFromString in interface IStringUpdateServicecreatePolicyFromString in class UpdateServicePolicyManagerException
public void deleteAssertionTemplateString(String assertionTemplateStr)
throws PolicyManagerException
IStringUpdateServicedeleteAssertionTemplateString in interface IStringUpdateServicedeleteAssertionTemplateString in class UpdateServicePolicyManagerException
public IPolicySubjectAttachmentResultStr deleteAttachmentEntriesForPolSubjectString(String polSubjectStr,
List<String> polRefsStr)
throws PolicyManagerException
IStringUpdateServicedeleteAttachmentEntriesForPolSubjectString in interface IStringUpdateServicedeleteAttachmentEntriesForPolSubjectString in class UpdateServicePolicyManagerException
public void deletePolicyString(String policyStr)
throws PolicyManagerException
IStringUpdateServicedeletePolicyString in interface IStringUpdateServicedeletePolicyString in class UpdateServicePolicyManagerException
public String promoteAssertionTemplateToTipString(String assertionTemplateName,
long version)
throws PolicyManagerException
IStringUpdateServicepromoteAssertionTemplateToTipString in interface IStringUpdateServicepromoteAssertionTemplateToTipString in class UpdateServiceversion - The version to be promoted to the tipPolicyManagerException
public String promotePolicyToTipString(String policyName,
long version)
throws PolicyManagerException
IStringUpdateServicepromotePolicyToTipString in interface IStringUpdateServicepromotePolicyToTipString in class UpdateServicepolicyName - Name the of policy to be updatedversion - The version to be promoted to the tipPolicyManagerException
public String updateAssertionTemplateFromString(String assertionTemplateStr)
throws PolicyManagerException
IStringUpdateServiceupdateAssertionTemplateFromString in interface IStringUpdateServiceupdateAssertionTemplateFromString in class UpdateServicePolicyManagerException
public IPolicySubjectAttachmentResult updateAttachmentEntries(IPolicySubject polSubject,
List<IPolicyReference> polRefs,
boolean runPolSubjVal)
throws PolicyManagerException
IUpdateServiceupdateAttachmentEntries in interface IUpdateServiceupdateAttachmentEntries in class UpdateServicePolicyManagerException
public IPolicySubjectAttachmentResultStr updateAttachmentEntriesForPolSubject(String polSubjectStr,
List<String> polRefStrs,
boolean runPolSubjVal)
throws PolicyManagerException
IStringUpdateServiceupdateAttachmentEntriesForPolSubject in interface IStringUpdateServiceupdateAttachmentEntriesForPolSubject in class UpdateServicePolicyManagerException
public IPolicySubjectAttachmentResultStr updateAttachmentEntriesForPolSubject(String polSubjectStr,
List<String> polRefStrs)
throws PolicyManagerException
IStringUpdateServiceupdateAttachmentEntriesForPolSubject in interface IStringUpdateServiceupdateAttachmentEntriesForPolSubject in class UpdateServicePolicyManagerException
public List<String> updatePoliciesFromString(List<String> policyStrs)
throws PolicyManagerException
IStringUpdateServiceupdatePoliciesFromString in interface IStringUpdateServiceupdatePoliciesFromString in class UpdateServicePolicyManagerException
public String updatePolicyFromString(String policyStr)
throws PolicyManagerException
IStringUpdateServiceupdatePolicyFromString in interface IStringUpdateServiceupdatePolicyFromString in class UpdateServicePolicyManagerException
|
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 | |||||||||