Class PayloadModel
java.lang.Object
com.jk.services.client.workflow.models.PayloadModel
- All Implemented Interfaces:
Serializable
The Class PayloadModel.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals.Gets the approve label.Gets the approve next status.Gets the creator.getId()
Gets the id.Gets the object.Gets the original action.Gets the payload.Gets the reject label.Gets the reject next status.getRole()
Gets the role.Gets the status.Gets the timestamp.Gets the workflow class.int
hashCode()
Hash code.boolean
isActive()
Checks if is active.void
setActive
(boolean active) Sets the active.void
setApproveLabel
(String approveLabel) Sets the approve label.void
setApproveNextStatus
(String approveNextStatus) Sets the approve next status.void
setCreator
(String creator) Sets the creator.void
Sets the id.void
Sets the object.void
setOriginalAction
(String originalAction) Sets the original action.void
setPayload
(String payload) Sets the payload.void
setRejectLabel
(String rejectLabel) Sets the reject label.void
setRejectNextStatus
(String rejectNextStatus) Sets the reject next status.void
Sets the role.void
Sets the status.void
setTimestamp
(Timestamp timestamp) Sets the timestamp.void
setWorkflowClass
(String workflowClass) Sets the workflow class.toString()
To string.withActive
(boolean active) With active.withApproveLabel
(String approveLabel) With approve label.withApproveNextStatus
(String approveNextStatus) With approve next status.withCreator
(String creator) With creator.With id.withOriginalAction
(String originalAction) With original action.withPayload
(String payload) With payload.withRejectLabel
(String rejectLabel) With reject label.withRejectNextStatus
(String rejectNextStatus) With reject next status.With role.withStatus
(String status) With status.withTimestamp
(Timestamp timestamp) With timestamp.withWorkflowClass
(String workflowClass) With workflow class.
-
Constructor Details
-
PayloadModel
public PayloadModel()
-
-
Method Details
-
withId
With id.- Parameters:
id
- the id- Returns:
- the payload model
-
setId
Sets the id.- Parameters:
id
- the new id
-
getId
Gets the id.- Returns:
- the id
-
withPayload
With payload.- Parameters:
payload
- the payload- Returns:
- the payload model
-
setPayload
Sets the payload.- Parameters:
payload
- the new payload
-
getPayload
Gets the payload.- Returns:
- the payload
-
withStatus
With status.- Parameters:
status
- the status- Returns:
- the payload model
-
setStatus
Sets the status.- Parameters:
status
- the new status
-
getStatus
Gets the status.- Returns:
- the status
-
withRole
With role.- Parameters:
role
- the role- Returns:
- the payload model
-
setRole
Sets the role.- Parameters:
role
- the new role
-
getRole
Gets the role.- Returns:
- the role
-
withCreator
With creator.- Parameters:
creator
- the creator- Returns:
- the payload model
-
setCreator
Sets the creator.- Parameters:
creator
- the new creator
-
getCreator
Gets the creator.- Returns:
- the creator
-
withTimestamp
With timestamp.- Parameters:
timestamp
- the timestamp- Returns:
- the payload model
-
setTimestamp
Sets the timestamp.- Parameters:
timestamp
- the new timestamp
-
getTimestamp
Gets the timestamp.- Returns:
- the timestamp
-
equals
Equals. -
hashCode
public int hashCode()Hash code. -
withOriginalAction
With original action.- Parameters:
originalAction
- the original action- Returns:
- the payload model
-
setOriginalAction
Sets the original action.- Parameters:
originalAction
- the new original action
-
getOriginalAction
Gets the original action.- Returns:
- the original action
-
getApproveLabel
Gets the approve label.- Returns:
- the approve label
-
setApproveLabel
Sets the approve label.- Parameters:
approveLabel
- the new approve label
-
withApproveLabel
With approve label.- Parameters:
approveLabel
- the approve label- Returns:
- the payload model
-
getApproveNextStatus
Gets the approve next status.- Returns:
- the approve next status
-
setApproveNextStatus
Sets the approve next status.- Parameters:
approveNextStatus
- the new approve next status
-
withApproveNextStatus
With approve next status.- Parameters:
approveNextStatus
- the approve next status- Returns:
- the payload model
-
getRejectLabel
Gets the reject label.- Returns:
- the reject label
-
setRejectLabel
Sets the reject label.- Parameters:
rejectLabel
- the new reject label
-
withRejectLabel
With reject label.- Parameters:
rejectLabel
- the reject label- Returns:
- the payload model
-
getRejectNextStatus
Gets the reject next status.- Returns:
- the reject next status
-
setRejectNextStatus
Sets the reject next status.- Parameters:
rejectNextStatus
- the new reject next status
-
withRejectNextStatus
With reject next status.- Parameters:
rejectNextStatus
- the reject next status- Returns:
- the payload model
-
toString
To string. -
isActive
public boolean isActive()Checks if is active.- Returns:
- true, if is active
-
withActive
With active.- Parameters:
active
- the active- Returns:
- the payload model
-
setActive
public void setActive(boolean active) Sets the active.- Parameters:
active
- the new active
-
getObject
Gets the object.- Returns:
- the object
-
setObject
Sets the object.- Parameters:
object
- the new object
-
getWorkflowClass
Gets the workflow class.- Returns:
- the workflow class
-
setWorkflowClass
Sets the workflow class.- Parameters:
workflowClass
- the new workflow class
-
withWorkflowClass
With workflow class.- Parameters:
workflowClass
- the workflow class- Returns:
- the payload model
-