Class Approval
java.lang.Object
com.tremolosecurity.provisioning.core.WorkflowTaskImpl
com.tremolosecurity.provisioning.tasks.Approval
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionApproval()
Approval
(WorkflowTaskType taskConfig, ConfigManager cfg, Workflow wf) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
ArrayList
<com.tremolosecurity.provisioning.tasks.Approver> int
getId()
getLabel()
void
init
(WorkflowTaskType taskConfig) boolean
isFailed()
void
reInit()
boolean
void
setApprovers
(ArrayList<com.tremolosecurity.provisioning.tasks.Approver> approvers) void
setAzRules
(ArrayList<AzRule> azRules) void
setEmailTemplate
(String emailTemplate) void
setEscalationRules
(List<EscalationRule> escalationRules) void
setFailed
(boolean failed) void
setFailureAzRules
(ArrayList<AzRule> failureAzRules) void
setFailureEmailMsg
(String failureEmailMsg) void
setFailureEmailSubject
(String failureEmailSubject) void
setId
(int id) void
void
setMailAttr
(String mailAttr) toString()
boolean
updateAllowedApprovals
(org.hibernate.Session session, ConfigManager cfg, Map<String, Object> request, List<Object> objToSave) Methods inherited from class com.tremolosecurity.provisioning.core.WorkflowTaskImpl
findApprovalTask, finishTasks, getConfig, getConfigManager, getOnFailure, getOnSuccess, getWorkflow, initWorkFlow, isOnHold, loadTask, markComplete, reInit, renderTemplate, restartChildren, restartTasks, runSubTasks, setConfigManager, setOnHold, setOnSuccess, setWorkflow, startNextTask
-
Field Details
-
SEND_NOTIFICATION
- See Also:
-
APPROVAL_RESULT
- See Also:
-
REASON
- See Also:
-
IMMEDIATE_ACTION
- See Also:
-
-
Constructor Details
-
Approval
public Approval() -
Approval
public Approval(WorkflowTaskType taskConfig, ConfigManager cfg, Workflow wf) throws ProvisioningException - Throws:
ProvisioningException
-
-
Method Details
-
init
- Specified by:
init
in interfaceWorkflowTask
- Specified by:
init
in classWorkflowTaskImpl
- Throws:
ProvisioningException
-
reInit
- Specified by:
reInit
in interfaceWorkflowTask
- Overrides:
reInit
in classWorkflowTaskImpl
- Throws:
ProvisioningException
-
doTask
- Specified by:
doTask
in interfaceWorkflowTask
- Specified by:
doTask
in classWorkflowTaskImpl
- Throws:
ProvisioningException
-
restartChildren
- Specified by:
restartChildren
in interfaceWorkflowTask
- Overrides:
restartChildren
in classWorkflowTaskImpl
- Throws:
ProvisioningException
-
getAzRules
-
getMailAttr
-
getFailureEmailSubject
-
getFailureEmailMsg
-
toString
-
getLabel
- Specified by:
getLabel
in interfaceWorkflowTask
- Specified by:
getLabel
in classWorkflowTaskImpl
-
updateAllowedApprovals
public boolean updateAllowedApprovals(org.hibernate.Session session, ConfigManager cfg, Map<String, Object> request, List<Object> objToSave) throws ProvisioningException, SQLException- Throws:
ProvisioningException
SQLException
-
getEmailTemplate
-
setEmailTemplate
-
getApprovers
-
setApprovers
-
getId
public int getId() -
setId
public void setId(int id) -
setLabel
-
setAzRules
-
setMailAttr
-
setFailureEmailSubject
-
setFailureEmailMsg
-
getEscalationRules
-
setEscalationRules
-
getFailureAzRules
-
setFailureAzRules
-
isFailed
public boolean isFailed() -
setFailed
public void setFailed(boolean failed) -
canHaveChildren
public boolean canHaveChildren()- Specified by:
canHaveChildren
in interfaceWorkflowTask
- Overrides:
canHaveChildren
in classWorkflowTaskImpl
-