Package icc.util
Class WorkflowHelper
- java.lang.Object
-
- icc.util.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 ofjava.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 ofvoid
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.
-
-
-
Method Detail
-
getInstance
public static WorkflowHelper getInstance()
-
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
- SailPointContextremoval
- If 'true', removal of Membership is started, if 'false' Membership is addedwgName
- The Name of the Workgroup-IdentityidentityName
- The Name of the Identity that shall be removed/added as MemberapprovalScheme
- Approval Scheme as specified in LCM Provisioning, e.g. 'none' if no Approval is requirednotificationScheme
- Notification Scheme as specified in LCM Provisioning, e.g. 'none' if no Notification is requiredpolicyScheme
- Policy Scheme as specified in LCM Provsioning, e.g. 'none' if no Policy check is requiredcomment
- 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
- SailPointContextremoval
- If 'true', removal of Membership is started, if 'false' Membership is addedwgName
- The Name of the Workgroup-IdentityidentityName
- The Name of the Identity that shall be removed/added as Membercomment
- 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
-
-