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 class
ApprovalRequest.Action
-
Constructor Summary
Constructors Constructor Description ApprovalRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNextApproverId(String nextApproverId)
ApprovalRequest
applyTemplate(ApprovalRequest template)
Creates newApprovalRequest
by combining values from the given template with the values currently present.boolean
equals(Object obj)
ApprovalRequest.Action
getActionType()
String
getComments()
String
getContextActorId()
String
getContextId()
List<String>
getNextApproverIds()
String
getProcessDefinitionNameOrId()
int
hashCode()
boolean
isSkipEntryCriteria()
void
setActionType(ApprovalRequest.Action actionType)
void
setComments(String comments)
void
setContextActorId(String contextActorId)
void
setContextId(String contextId)
void
setNextApproverIds(String nextApproverId)
void
setNextApproverIds(List<String> nextApproverIds)
void
setProcessDefinitionNameOrId(String processDefinitionNameOrId)
void
setSkipEntryCriteria(boolean skipEntryCriteria)
String
toString()
-
-
-
Method Detail
-
addNextApproverId
public void addNextApproverId(String nextApproverId)
-
applyTemplate
public ApprovalRequest applyTemplate(ApprovalRequest template)
Creates newApprovalRequest
by 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 anApprovalRequest
are 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)
-
-