Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager
11g (11.1.1)

E10689-01


oracle.wsm.policymanager.ejb.impl
Class UpdateService

java.lang.Object
  extended by oracle.wsm.policymanager.impl.UpdateService
      extended by oracle.wsm.policymanager.ejb.impl.UpdateService

All Implemented Interfaces:
Remote, IStringUpdateServiceLocal, IStringUpdateServiceRemote, IUpdateServiceLocal, IUpdateServiceRemote, IStringUpdateService, IUpdateService

public class UpdateService
extends UpdateService
implements IUpdateServiceLocal, IUpdateServiceRemote, IStringUpdateServiceLocal, IStringUpdateServiceRemote

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

UpdateService

public UpdateService()

Method Detail

setSessionContext

public void setSessionContext(javax.ejb.SessionContext ctx)

getCreator

protected String getCreator()
Overrides:
getCreator in class UpdateService

addAttachmentEntries

public IPolicySubjectAttachmentResult addAttachmentEntries(IPolicySubject polSubject,
                                                           List<IPolicyReference> polRefs)
                                                    throws PolicyManagerException
Description copied from interface: IUpdateService
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. Note: Duplicate policy references in the polRefs list if the Policy Reference is valid will result in a status ATTACHMENT_STATUS_ENUM.success.
Specified by:
addAttachmentEntries in interface IUpdateService
Overrides:
addAttachmentEntries in class UpdateService
Parameters:
polSubject - policy subject to be added
polRefs - Policy reference the policy subject needs to be associated with
Returns:
IPolicySubjectAttachmentResult IPolicySubjectAttachmentResult.getAttachmentResults() has the following semantics: returns null if polRefs is null returns null if polSubject is null returns null if polSubject.getResourcePattern() is null or empty string List size is 0 if polRefs size is 0
Throws:
PolicyManagerException

createAssertionTemplate

public IAssertionTemplate createAssertionTemplate(IAssertionTemplate assertionTemplate)
                                           throws PolicyManagerException
Description copied from class: UpdateService
Adds a new Assertion template to the backend datastore
Specified by:
createAssertionTemplate in interface IUpdateService
Overrides:
createAssertionTemplate in class UpdateService
Parameters:
assertionTemplate - The AssertionTemplate object to add
Throws:
PolicyManagerException

createPolicy

public IPolicy createPolicy(IPolicy policy)
                     throws PolicyManagerException
Description copied from class: UpdateService
This method will create the policy at datastore. If policy is invalid *disable* the policy.
Specified by:
createPolicy in interface IUpdateService
Overrides:
createPolicy in class UpdateService
Parameters:
policy - object to add
Returns:
IPolicy
Throws:
PolicyManagerException

createPolicy

public List<IPolicy> createPolicy(List<IPolicy> polList)
                           throws PolicyManagerException
Description copied from class: UpdateService
Bulk creation of policies.If policy is invalid *disable* it and create.
Specified by:
createPolicy in interface IUpdateService
Overrides:
createPolicy in class UpdateService
Parameters:
polList - A list of IPolicy objects representing the polices to be created
Throws:
PolicyManagerException

deleteAllAssertionTemplates

public void deleteAllAssertionTemplates()
                                 throws PolicyManagerException
Description copied from interface: IUpdateService
PERMENENTLY deletes ALL assertion templates from the datastore Assertion templates once deleted cannot be retrived
Specified by:
deleteAllAssertionTemplates in interface IStringUpdateService
Specified by:
deleteAllAssertionTemplates in interface IUpdateService
Overrides:
deleteAllAssertionTemplates in class UpdateService
Throws:
PolicyManagerException

deleteAllAttachments

public void deleteAllAttachments()
                          throws PolicyManagerException
Description copied from interface: IUpdateService
Deletes all policy attachments from data store
Specified by:
deleteAllAttachments in interface IStringUpdateService
Specified by:
deleteAllAttachments in interface IUpdateService
Overrides:
deleteAllAttachments in class UpdateService
Throws:
PolicyManagerException

deleteAllPolicies

public void deleteAllPolicies()
                       throws PolicyManagerException
Description copied from interface: IUpdateService
PERMENENTLY deletes ALL policies from the datastore Policies once deleted cannot be retrived
Specified by:
deleteAllPolicies in interface IStringUpdateService
Specified by:
deleteAllPolicies in interface IUpdateService
Overrides:
deleteAllPolicies in class UpdateService
Throws:
PolicyManagerException

deleteAssertionTemplate

public void deleteAssertionTemplate(IAssertionTemplate assertionTemplate)
                             throws PolicyManagerException
Description copied from class: UpdateService
Delete an Assertion template from backend datastore
Specified by:
deleteAssertionTemplate in interface IUpdateService
Overrides:
deleteAssertionTemplate in class UpdateService
Parameters:
assertionTemplate - The assertion Template object to be deleted
Throws:
PolicyManagerException

deleteAssertionTemplate

public void deleteAssertionTemplate(String templateName)
                             throws PolicyManagerException
Description copied from interface: IUpdateService
Delete an Assertion template from backend datastore
Specified by:
deleteAssertionTemplate in interface IStringUpdateService
Specified by:
deleteAssertionTemplate in interface IUpdateService
Overrides:
deleteAssertionTemplate in class UpdateService
Parameters:
templateName - Name of the assertion template to be deleted
Throws:
PolicyManagerException

deleteAssertionTemplates

public void deleteAssertionTemplates(List<String> assertionTemplateNames)
                              throws PolicyManagerException
Description copied from interface: IUpdateService
Delete all the policies corresponding to the policy names passed
Specified by:
deleteAssertionTemplates in interface IStringUpdateService
Specified by:
deleteAssertionTemplates in interface IUpdateService
Overrides:
deleteAssertionTemplates in class UpdateService
Parameters:
assertionTemplateNames - List of assertion template names to be be deleted
Throws:
PolicyManagerException

deleteAssertionTemplateVersions

public void deleteAssertionTemplateVersions(String assertionTemplateName,
                                            List<Long> versionNumbers)
                                     throws PolicyManagerException
Description copied from interface: IUpdateService
Delete all the specified versions of an assertion template
Specified by:
deleteAssertionTemplateVersions in interface IStringUpdateService
Specified by:
deleteAssertionTemplateVersions in interface IUpdateService
Overrides:
deleteAssertionTemplateVersions in class UpdateService
Parameters:
assertionTemplateName - Name of the assertion template whose versions are to be deleted
versionNumbers - List of (long) versions numbers to be deleted
Throws:
PolicyManagerException

deleteAttachmentEntries

public IPolicySubjectAttachmentResult deleteAttachmentEntries(IPolicySubject polSubject,
                                                              List<IPolicyReference> polRefs)
                                                       throws PolicyManagerException
Description copied from interface: IUpdateService
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>. If the referenced Policy does not exist but a Policy Attachment for the Policy exists, then it will be remove the resource pattern from the corresponding Policy Attachment. The API will not throw an exception if the Policy does not exist. Duplicate policy references are handled automatically. If the polRefs contains duplicate Policy References then the IPolicyAttachmentResult will have status ATTACHMENT_STATUS_ENUM.ignore for all duplicates. The behavior is undefined for duplicate API invocations. Note: Duplicate policy references in the polRefs list if the Policy Reference is valid will result in a status ATTACHMENT_STATUS_ENUM.success.
Specified by:
deleteAttachmentEntries in interface IUpdateService
Overrides:
deleteAttachmentEntries in class UpdateService
Parameters:
polSubject - Policy subject to be removed
polRefs - Policies from which the subject is to be detached
Returns:
IPolicySubjectAttachmentResult IPolicySubjectAttachmentResult.getAttachmentResults() has the following semantics: returns null if polRefs is null returns null if polSubject is null returns null if polSubject.getResourcePattern() is null or empty string List size is 0 if polRefs size is 0
Throws:
PolicyManagerException

deleteAttachmentEntries

public void deleteAttachmentEntries(String resourcePattern)
                             throws PolicyManagerException
Description copied from interface: IUpdateService
Disassociate a policy subject, represented by a resource pattern, with all policies that it may be associated with.
Specified by:
deleteAttachmentEntries in interface IStringUpdateService
Specified by:
deleteAttachmentEntries in interface IUpdateService
Overrides:
deleteAttachmentEntries in class UpdateService
Parameters:
resourcePattern - Policy subject to be removed
Throws:
PolicyManagerException

deletePolicies

public void deletePolicies(List<String> polNameList)
                    throws PolicyManagerException
Description copied from interface: IUpdateService
Delete all the policies corresponding to the policy names passed
Specified by:
deletePolicies in interface IStringUpdateService
Specified by:
deletePolicies in interface IUpdateService
Overrides:
deletePolicies in class UpdateService
Parameters:
polNameList - List of policy names to be be deleted
Throws:
PolicyManagerException

deletePolicy

public void deletePolicy(IPolicy policy)
                  throws PolicyManagerException
Description copied from class: UpdateService
Delete a policy from the backend datastore
Specified by:
deletePolicy in interface IUpdateService
Overrides:
deletePolicy in class UpdateService
Parameters:
policy - Ipolicy object to representing the policy to be deleted
Throws:
PolicyManagerException

deletePolicy

public void deletePolicy(String policyName)
                  throws PolicyManagerException
Description copied from class: UpdateService
Delete a policy from the backend datastore
Specified by:
deletePolicy in interface IStringUpdateService
Specified by:
deletePolicy in interface IUpdateService
Overrides:
deletePolicy in class UpdateService
Parameters:
policyName - The name of policy to be deleted
Throws:
PolicyManagerException

deletePolicyVersions

public void deletePolicyVersions(String policyName,
                                 List<Long> versionNumbers)
                          throws PolicyManagerException
Description copied from interface: IUpdateService
Delete all the specified versions of a policy
Specified by:
deletePolicyVersions in interface IStringUpdateService
Specified by:
deletePolicyVersions in interface IUpdateService
Overrides:
deletePolicyVersions in class UpdateService
Parameters:
policyName - Name of the policy whose versions are to be deleted
Throws:
PolicyManagerException

promoteAssertionTemplateToTip

public IAssertionTemplate promoteAssertionTemplateToTip(String assertionTemplateName,
                                                        long version)
                                                 throws PolicyManagerException
Description copied from interface: IUpdateService
Promote a previous policy version to the latest.
Specified by:
promoteAssertionTemplateToTip in interface IUpdateService
Overrides:
promoteAssertionTemplateToTip in class UpdateService
version - The version to be promoted to the tip
Returns:
Latest (promoted) version of the policy
Throws:
PolicyManagerException

promotePolicyToTip

public IPolicy promotePolicyToTip(String policyName,
                                  long version)
                           throws PolicyManagerException
Description copied from interface: IUpdateService
Promote a previous policy version to the latest.
Specified by:
promotePolicyToTip in interface IUpdateService
Overrides:
promotePolicyToTip in class UpdateService
Parameters:
policyName - Name the of policy to be updated
version - The version to be promoted to the tip
Returns:
Latest (promoted) version of the policy
Throws:
PolicyManagerException

updateAssertionTemplate

public IAssertionTemplate updateAssertionTemplate(IAssertionTemplate assertionTemplate)
                                           throws PolicyManagerException
Description copied from class: UpdateService
Update an existing Assertion Template
Specified by:
updateAssertionTemplate in interface IUpdateService
Overrides:
updateAssertionTemplate in class UpdateService
Parameters:
assertionTemplate - The Assertion template object to be modified
Throws:
PolicyManagerException

updateAttachmentEntries

public IPolicySubjectAttachmentResult updateAttachmentEntries(IPolicySubject polSubject,
                                                              List<IPolicyReference> polRefs)
                                                       throws PolicyManagerException
Description copied from interface: IUpdateService
This API is equivalent to calling deleteAttachmentEntries(String resourcePattern) and calling addAttachmentEntries(String resourcePattern, List<IPolicyReference> polRefs)
Specified by:
updateAttachmentEntries in interface IUpdateService
Overrides:
updateAttachmentEntries in class UpdateService
Returns:
IPolicySubjectAttachmentResult - IPolicySubjectAttachmentResult.getAttachmentResults() has the following semantics: returns null if polRefs is null returns null if polSubject is null returns null if polSubject.getResourcePattern() is null or empty string List size is 0 if polRefs size is 0
Throws:
PolicyManagerException

updatePolicies

public List<IPolicy> updatePolicies(List<IPolicy> policies)
                             throws PolicyManagerException
Description copied from class: UpdateService
Updates a list of policies
Specified by:
updatePolicies in interface IUpdateService
Overrides:
updatePolicies in class UpdateService
Parameters:
policies - A list of IPolicy objects to be updated
Returns:
List of the modified policy objects
Throws:
PolicyManagerException
See Also:
UpdateService.updatePolicy(IPolicy policy)

updatePolicy

public IPolicy updatePolicy(IPolicy policy)
                     throws PolicyManagerException
Description copied from class: UpdateService
Updates the given policy, For policy that will fail the validation, the policy will be *disabled* and then *saved* to the data store.
Specified by:
updatePolicy in interface IUpdateService
Overrides:
updatePolicy in class UpdateService
Parameters:
policy - IPolicy object having the details and changes for the policy update
Returns:
The modified policy objects
Throws:
PolicyManagerException

addAttachmentEntriesAsString

public IPolicySubjectAttachmentResultStr addAttachmentEntriesAsString(String polSubjectStr,
                                                                      List<String> polRefsStr)
                                                               throws PolicyManagerException
Description copied from interface: IStringUpdateService
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. Note: Duplicate policy references in the polRefs list if the Policy Reference is valid will result in a status ATTACHMENT_STATUS_ENUM.success.
Specified by:
addAttachmentEntriesAsString in interface IStringUpdateService
Overrides:
addAttachmentEntriesAsString in class UpdateService
polRefsStr - Policy reference the policy subject needs to be associated with
Returns:
IPolicySubjectAttachmentResult IPolicySubjectAttachmentResult.getAttachmentResults() has the following semantics: returns null if polRefs is null returns null if polSubject is null returns null if polSubject.getResourcePattern() is null or empty string List size is 0 if polRefs size is 0
Throws:
PolicyManagerException

createAssertionTemplateFromString

public String createAssertionTemplateFromString(String assertionTemplateStr)
                                         throws PolicyManagerException
Description copied from interface: IStringUpdateService
Adds a new Assertion template to the backend datastore
Specified by:
createAssertionTemplateFromString in interface IStringUpdateService
Overrides:
createAssertionTemplateFromString in class UpdateService
Throws:
PolicyManagerException

createPoliciesFromString

public List<String> createPoliciesFromString(List<String> polStrList)
                                      throws PolicyManagerException
Description copied from interface: IStringUpdateService
Bulk creation of policies
Specified by:
createPoliciesFromString in interface IStringUpdateService
Overrides:
createPoliciesFromString in class UpdateService
Throws:
PolicyManagerException

createPolicyFromString

public String createPolicyFromString(String policyStr)
                              throws PolicyManagerException
Description copied from interface: IStringUpdateService
Adds a new policy to the backend datastore
Specified by:
createPolicyFromString in interface IStringUpdateService
Overrides:
createPolicyFromString in class UpdateService
Returns:
The newly created policy object
Throws:
PolicyManagerException

deleteAssertionTemplateString

public void deleteAssertionTemplateString(String assertionTemplateStr)
                                   throws PolicyManagerException
Description copied from interface: IStringUpdateService
Delete an Assertion template from backend datastore
Specified by:
deleteAssertionTemplateString in interface IStringUpdateService
Overrides:
deleteAssertionTemplateString in class UpdateService
Throws:
PolicyManagerException

deleteAttachmentEntriesForPolSubjectString

public IPolicySubjectAttachmentResultStr deleteAttachmentEntriesForPolSubjectString(String polSubjectStr,
                                                                                    List<String> polRefsStr)
                                                                             throws PolicyManagerException
Description copied from interface: IStringUpdateService
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>. If the referenced Policy does not exist but a Policy Attachment for the Policy exists, then it will be remove the resource pattern from the corresponding Policy Attachment. The API will not throw an exception if the Policy does not exist. Duplicate policy references are handled automatically. If the polRefs contains duplicate Policy References then the IPolicyAttachmentResult will have status ATTACHMENT_STATUS_ENUM.ignore for all duplicates. The behavior is undefined for duplicate API invocations. Note: Duplicate policy references in the polRefs list if the Policy Reference is valid will result in a status ATTACHMENT_STATUS_ENUM.success.
Specified by:
deleteAttachmentEntriesForPolSubjectString in interface IStringUpdateService
Overrides:
deleteAttachmentEntriesForPolSubjectString in class UpdateService
Returns:
IPolicySubjectAttachmentResult IPolicySubjectAttachmentResult.getAttachmentResults() has the following semantics: returns null if polRefs is null returns null if polSubject is null returns null if polSubject.getResourcePattern() is null or empty string List size is 0 if polRefs size is 0
Throws:
PolicyManagerException

deletePolicyString

public void deletePolicyString(String policyStr)
                        throws PolicyManagerException
Description copied from interface: IStringUpdateService
Deletes a policy to the backend datastore
Specified by:
deletePolicyString in interface IStringUpdateService
Overrides:
deletePolicyString in class UpdateService
Throws:
PolicyManagerException

promoteAssertionTemplateToTipString

public String promoteAssertionTemplateToTipString(String assertionTemplateName,
                                                  long version)
                                           throws PolicyManagerException
Description copied from interface: IStringUpdateService
Promote a previous policy version to the latest.
Specified by:
promoteAssertionTemplateToTipString in interface IStringUpdateService
Overrides:
promoteAssertionTemplateToTipString in class UpdateService
version - The version to be promoted to the tip
Returns:
Latest (promoted) version of the policy
Throws:
PolicyManagerException

promotePolicyToTipString

public String promotePolicyToTipString(String policyName,
                                       long version)
                                throws PolicyManagerException
Description copied from interface: IStringUpdateService
Promote a previous policy version to the latest.
Specified by:
promotePolicyToTipString in interface IStringUpdateService
Overrides:
promotePolicyToTipString in class UpdateService
Parameters:
policyName - Name the of policy to be updated
version - The version to be promoted to the tip
Returns:
Latest (promoted) version of the policy
Throws:
PolicyManagerException

updateAssertionTemplateFromString

public String updateAssertionTemplateFromString(String assertionTemplateStr)
                                         throws PolicyManagerException
Description copied from interface: IStringUpdateService
Update an existing Assertion Template
Specified by:
updateAssertionTemplateFromString in interface IStringUpdateService
Overrides:
updateAssertionTemplateFromString in class UpdateService
Throws:
PolicyManagerException

updateAttachmentEntries

public IPolicySubjectAttachmentResult updateAttachmentEntries(IPolicySubject polSubject,
                                                              List<IPolicyReference> polRefs,
                                                              boolean runPolSubjVal)
                                                       throws PolicyManagerException
Description copied from interface: IUpdateService
This method is similar to @see IUpdateService#updateAttachmentEntries(IPolicySubject, List) The variation of this method is it performs Policy subject validation
Specified by:
updateAttachmentEntries in interface IUpdateService
Overrides:
updateAttachmentEntries in class UpdateService
Returns:
Throws:
PolicyManagerException

updateAttachmentEntriesForPolSubject

public IPolicySubjectAttachmentResultStr updateAttachmentEntriesForPolSubject(String polSubjectStr,
                                                                              List<String> polRefStrs,
                                                                              boolean runPolSubjVal)
                                                                       throws PolicyManagerException
Description copied from interface: IStringUpdateService
This method is similar to @see IUpdateService#updateAttachmentEntries(IPolicySubject, List) The variation of this method is it performs Policy subject validation
Specified by:
updateAttachmentEntriesForPolSubject in interface IStringUpdateService
Overrides:
updateAttachmentEntriesForPolSubject in class UpdateService
Returns:
Throws:
PolicyManagerException

updateAttachmentEntriesForPolSubject

public IPolicySubjectAttachmentResultStr updateAttachmentEntriesForPolSubject(String polSubjectStr,
                                                                              List<String> polRefStrs)
                                                                       throws PolicyManagerException
Description copied from interface: IStringUpdateService
This API is equivalent to calling deleteAttachmentEntries(String resourcePattern) and calling addAttachmentEntries(String resourcePattern, List<IPolicyReference> polRefs)
Specified by:
updateAttachmentEntriesForPolSubject in interface IStringUpdateService
Overrides:
updateAttachmentEntriesForPolSubject in class UpdateService
Returns:
IPolicySubjectAttachmentResult - IPolicySubjectAttachmentResult.getAttachmentResults() has the following semantics: returns null if polRefs is null returns null if polSubject is null returns null if polSubject.getResourcePattern() is null or empty string List size is 0 if polRefs size is 0
Throws:
PolicyManagerException

updatePoliciesFromString

public List<String> updatePoliciesFromString(List<String> policyStrs)
                                      throws PolicyManagerException
Description copied from interface: IStringUpdateService
Updates policies to the backend datastore
Specified by:
updatePoliciesFromString in interface IStringUpdateService
Overrides:
updatePoliciesFromString in class UpdateService
Returns:
List of the modified policy objects
Throws:
PolicyManagerException

updatePolicyFromString

public String updatePolicyFromString(String policyStr)
                              throws PolicyManagerException
Description copied from interface: IStringUpdateService
Updates a policy to the backend datastore
Specified by:
updatePolicyFromString in interface IStringUpdateService
Overrides:
updatePolicyFromString in class UpdateService
Returns:
The modified policy objects
Throws:
PolicyManagerException

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager
11g (11.1.1)

E10689-01


Copyright © 2007, 2009, Oracle and/or its affiliates. All rights reserved.