Class ApprovalRequest
- java.lang.Object
-
- org.apache.camel.component.salesforce.api.dto.approval.ApprovalRequest
-
- All Implemented Interfaces:
Serializable
@UriParams public final class ApprovalRequest extends Object implements Serializable
Represents approval request sent to submit, approve or reject record.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApprovalRequest.Action
-
Constructor Summary
Constructors Constructor Description ApprovalRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNextApproverId(String nextApproverId)ApprovalRequestapplyTemplate(ApprovalRequest template)Creates newApprovalRequestby combining values from the given template with the values currently present.booleanequals(Object obj)ApprovalRequest.ActiongetActionType()StringgetComments()StringgetContextActorId()StringgetContextId()List<String>getNextApproverIds()StringgetProcessDefinitionNameOrId()inthashCode()booleanisSkipEntryCriteria()voidsetActionType(ApprovalRequest.Action actionType)voidsetComments(String comments)voidsetContextActorId(String contextActorId)voidsetContextId(String contextId)voidsetNextApproverIds(String nextApproverId)voidsetNextApproverIds(List<String> nextApproverIds)voidsetProcessDefinitionNameOrId(String processDefinitionNameOrId)voidsetSkipEntryCriteria(boolean skipEntryCriteria)StringtoString()
-
-
-
Method Detail
-
addNextApproverId
public void addNextApproverId(String nextApproverId)
-
applyTemplate
public ApprovalRequest applyTemplate(ApprovalRequest template)
Creates newApprovalRequestby combining values from the given template with the values currently present. If the value is not present and the template has the corresponding value, then the template value is set. The net result is that all set values of anApprovalRequestare preserved, while the values set on template are used for undefined (null) values.- Parameters:
template- template to apply- Returns:
- newly created object with applied template
-
getActionType
public ApprovalRequest.Action getActionType()
-
getComments
public String getComments()
-
getContextActorId
public String getContextActorId()
-
getContextId
public String getContextId()
-
getProcessDefinitionNameOrId
public String getProcessDefinitionNameOrId()
-
isSkipEntryCriteria
public boolean isSkipEntryCriteria()
-
setActionType
public void setActionType(ApprovalRequest.Action actionType)
-
setComments
public void setComments(String comments)
-
setContextActorId
public void setContextActorId(String contextActorId)
-
setContextId
public void setContextId(String contextId)
-
setNextApproverIds
public void setNextApproverIds(String nextApproverId)
-
setProcessDefinitionNameOrId
public void setProcessDefinitionNameOrId(String processDefinitionNameOrId)
-
setSkipEntryCriteria
public void setSkipEntryCriteria(boolean skipEntryCriteria)
-
-