Package icc.util

Class WorkflowHelper


  • public class WorkflowHelper
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      WorkflowHelper()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static WorkflowHelper getInstance()  
      java.util.List<java.lang.String> getOwnedBundleNames​(sailpoint.api.SailPointContext context, java.lang.String identName)
      Returns a list of bundle names a given identity or workgroup is owner of
      java.util.List<java.lang.String> getOwnedEntitlementNames​(sailpoint.api.SailPointContext context, java.lang.String identName)
      Returns a list of entitlement names a given identity or workgroup is owner of
      void startWorkflowForWorkgroupMembershipProvisioning​(sailpoint.api.SailPointContext context, boolean removal, java.lang.String wgName, java.lang.String identityName, java.lang.String approvalScheme, java.lang.String notificationScheme, java.lang.String policyScheme, java.lang.String comment)
      Start Workflow for adding or removing Memberships of a Workgroup.
      boolean workflowAlreadyRunning​(sailpoint.api.SailPointContext context, java.lang.String wfCaseName)  
      void workgroupMembershipProvisioningWithoutWorkflow​(sailpoint.api.SailPointContext context, boolean removal, java.lang.String wgName, java.lang.String identityName, java.lang.String comment)
      Adding or removing Memberships of a Workgroup without starting a workflow.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WorkflowHelper

        public WorkflowHelper()
    • Method Detail

      • startWorkflowForWorkgroupMembershipProvisioning

        public void startWorkflowForWorkgroupMembershipProvisioning​(sailpoint.api.SailPointContext context,
                                                                    boolean removal,
                                                                    java.lang.String wgName,
                                                                    java.lang.String identityName,
                                                                    java.lang.String approvalScheme,
                                                                    java.lang.String notificationScheme,
                                                                    java.lang.String policyScheme,
                                                                    java.lang.String comment)
                                                             throws sailpoint.tools.GeneralException
        Start Workflow for adding or removing Memberships of a Workgroup. The normal LCM Provisoning is used so that a Access Request is logged. Start of Workflow is done asynchronously 5 Seconds in future.
        Parameters:
        context - SailPointContext
        removal - If 'true', removal of Membership is started, if 'false' Membership is added
        wgName - The Name of the Workgroup-Identity
        identityName - The Name of the Identity that shall be removed/added as Member
        approvalScheme - Approval Scheme as specified in LCM Provisioning, e.g. 'none' if no Approval is required
        notificationScheme - Notification Scheme as specified in LCM Provisioning, e.g. 'none' if no Notification is required
        policyScheme - Policy Scheme as specified in LCM Provsioning, e.g. 'none' if no Policy check is required
        comment - Comment which is given in the Access Request Object (actually a comment on the Provisioning Plan)
        Throws:
        sailpoint.tools.GeneralException
      • workgroupMembershipProvisioningWithoutWorkflow

        public void workgroupMembershipProvisioningWithoutWorkflow​(sailpoint.api.SailPointContext context,
                                                                   boolean removal,
                                                                   java.lang.String wgName,
                                                                   java.lang.String identityName,
                                                                   java.lang.String comment)
                                                            throws sailpoint.tools.GeneralException
        Adding or removing Memberships of a Workgroup without starting a workflow.
        Parameters:
        context - SailPointContext
        removal - If 'true', removal of Membership is started, if 'false' Membership is added
        wgName - The Name of the Workgroup-Identity
        identityName - The Name of the Identity that shall be removed/added as Member
        comment - Comment which is given in the audit event
        Throws:
        sailpoint.tools.GeneralException
      • workflowAlreadyRunning

        public boolean workflowAlreadyRunning​(sailpoint.api.SailPointContext context,
                                              java.lang.String wfCaseName)
                                       throws sailpoint.tools.GeneralException
        Throws:
        sailpoint.tools.GeneralException
      • getOwnedBundleNames

        public java.util.List<java.lang.String> getOwnedBundleNames​(sailpoint.api.SailPointContext context,
                                                                    java.lang.String identName)
        Returns a list of bundle names a given identity or workgroup is owner of
        Parameters:
        identName - Name of the identity/workgroup
        Returns:
        list of bundle names
      • getOwnedEntitlementNames

        public java.util.List<java.lang.String> getOwnedEntitlementNames​(sailpoint.api.SailPointContext context,
                                                                         java.lang.String identName)
        Returns a list of entitlement names a given identity or workgroup is owner of
        Parameters:
        identName - Name of the identity/workgroup
        Returns:
        list of entitlement names