Class PayloadModel
java.lang.Object
com.jk.services.client.workflow.models.PayloadModel
- All Implemented Interfaces:
Serializable
This class represents a pay-load model used in workflow.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
This method retrieves the approve label associated with this pay-load model.This method retrieves the approve next status for this pay-load model.This method retrieves the creator for this pay-load model.getId()
This method retrieves the ID for this pay-load model.This method retrieves the object associated with this model.This method retrieves the original action for this pay-load model.This method retrieves the pay-load content for this pay-load model.This method retrieves the reject label for this pay-load model.This method retrieves the reject next status for this pay-load model.getRole()
This method retrieves the role for this pay-load model.This method retrieves the status for this pay-load model.This method retrieves the time stamp for this pay-load model.This method retrieves the workflow class.int
hashCode()
boolean
isActive()
This method checks whether this model is active or not.void
setActive
(boolean active) This method sets whether this model is active or not.void
setApproveLabel
(String approveLabel) This method sets the approve label associated with this pay-load model to the provided value.void
setApproveNextStatus
(String approveNextStatus) This method sets the approve next status for this pay-load model to the provided value.void
setCreator
(String creator) This method sets the creator for this pay-load model to the provided value.void
This method sets the ID for this pay-load model to the provided value.void
This method sets the object associated with this model to the provided value.void
setOriginalAction
(String originalAction) This method sets the original action for this pay-load model to the provided value.void
setPayload
(String payload) This method sets the pay-load content for this pay-load model to the provided value.void
setRejectLabel
(String rejectLabel) This method sets the reject label for this pay-load model to the provided value.void
setRejectNextStatus
(String rejectNextStatus) This method sets the reject next status for this pay-load model to the provided value.void
This method sets the role for this pay-load model to the provided value.void
This method sets the status for this pay-load model to the provided value.void
setTimestamp
(Timestamp timestamp) This method sets the time stamp for this pay-load model to the provided value.void
setWorkflowClass
(String workflowClass) This method sets the workflow class to the provided value.toString()
withActive
(boolean active) This method sets whether this model is active or not and return this instance.withApproveLabel
(String approveLabel) This method sets the approve label associated with this pay-load model and return this instance.withApproveNextStatus
(String approveNextStatus) This method sets the approve next status for this pay-load model and return this instance.withCreator
(String creator) This method sets the creator for this pay-load model and return this instance.This method sets the ID for this pay-load model and return this instance.withOriginalAction
(String originalAction) This method sets the original action for this pay-load model and return this instance.withPayload
(String payload) This method sets the pay-load content for this pay-load model and return this instance.withRejectLabel
(String rejectLabel) This method sets the reject label for this pay-load model and return this instance.withRejectNextStatus
(String rejectNextStatus) This method sets the reject next status for this pay-load model and return this instance..This method sets the role for this pay-load model and return this instance.withStatus
(String status) This method sets the status for this pay-load model and return this instance.withTimestamp
(Timestamp timestamp) This method sets the time stamp for this pay-load model and return this instance.withWorkflowClass
(String workflowClass) This method sets the workflow class and return this instance.
-
Constructor Details
-
PayloadModel
public PayloadModel()
-
-
Method Details
-
withId
This method sets the ID for this pay-load model and return this instance.- Parameters:
id
- Specifies the ID for this pay-load model.- Returns:
- the edited instance of
PayloadModel
.
-
setId
This method sets the ID for this pay-load model to the provided value.- Parameters:
id
- Specifies the new ID for this pay-load model.
-
getId
This method retrieves the ID for this pay-load model.- Returns:
- the ID for this pay-load model.
-
withPayload
This method sets the pay-load content for this pay-load model and return this instance.- Parameters:
payload
- Specifies the pay-load content for this pay-load model.- Returns:
- the edited instance of
PayloadModel
.
-
setPayload
This method sets the pay-load content for this pay-load model to the provided value.- Parameters:
payload
- Specifies the new pay-load content for this pay-load model.
-
getPayload
This method retrieves the pay-load content for this pay-load model.- Returns:
- the pay-load content for this pay-load model.
-
withStatus
This method sets the status for this pay-load model and return this instance.- Parameters:
status
- Specifies the status for this pay-load model.- Returns:
- the edited instance of
PayloadModel
.
-
setStatus
This method sets the status for this pay-load model to the provided value.- Parameters:
status
- the new status
-
getStatus
This method retrieves the status for this pay-load model.- Returns:
- the status for this pay-load model.
-
withRole
This method sets the role for this pay-load model and return this instance.- Parameters:
role
- Specifies the role for this pay-load model.- Returns:
- the edited instance of
PayloadModel
.
-
setRole
This method sets the role for this pay-load model to the provided value.- Parameters:
role
- Specifies the new role for this pay-load model.
-
getRole
This method retrieves the role for this pay-load model.- Returns:
- the role for this pay-load model.
-
withCreator
This method sets the creator for this pay-load model and return this instance.- Parameters:
creator
- Specifies the creator for this pay-load model.- Returns:
- the edited instance of
PayloadModel
.
-
setCreator
This method sets the creator for this pay-load model to the provided value.- Parameters:
creator
- Specifies the creator for this pay-load model.
-
getCreator
This method retrieves the creator for this pay-load model.- Returns:
- the creator for this pay-load model.
-
withTimestamp
This method sets the time stamp for this pay-load model and return this instance.- Parameters:
timestamp
- Specifies the time stamp for this pay-load model.- Returns:
- the edited instance of
PayloadModel
.
-
setTimestamp
This method sets the time stamp for this pay-load model to the provided value.- Parameters:
timestamp
- Specifies the new time stamp for this pay-load model.
-
getTimestamp
This method retrieves the time stamp for this pay-load model.- Returns:
- the time stamp for this pay-load model.
-
equals
-
hashCode
public int hashCode() -
withOriginalAction
This method sets the original action for this pay-load model and return this instance.- Parameters:
originalAction
- Specifies the original action for this pay-load model.- Returns:
- the edited instance of
PayloadModel
.
-
setOriginalAction
This method sets the original action for this pay-load model to the provided value.- Parameters:
originalAction
- Specifies the new original action for this pay-load model.
-
getOriginalAction
This method retrieves the original action for this pay-load model.- Returns:
- the original action for this pay-load model.
-
getApproveLabel
This method retrieves the approve label associated with this pay-load model.- Returns:
- the approve label associated with this pay-load model.
-
setApproveLabel
This method sets the approve label associated with this pay-load model to the provided value.- Parameters:
approveLabel
- Specifies the new approve label associated with this pay-load model.
-
withApproveLabel
This method sets the approve label associated with this pay-load model and return this instance.- Parameters:
approveLabel
- Specifies the approve label associated with this pay-load model.- Returns:
- the edited instance of
PayloadModel
.
-
getApproveNextStatus
This method retrieves the approve next status for this pay-load model.- Returns:
- the approve next status for this pay-load model.
-
setApproveNextStatus
This method sets the approve next status for this pay-load model to the provided value.- Parameters:
approveNextStatus
- Specifies the new approve next status for this pay-load model.
-
withApproveNextStatus
This method sets the approve next status for this pay-load model and return this instance.- Parameters:
approveNextStatus
- Specifies the approve next status for this pay-load model.- Returns:
- the edited instance of
PayloadModel
.
-
getRejectLabel
This method retrieves the reject label for this pay-load model.- Returns:
- the reject label for this pay-load model.
-
setRejectLabel
This method sets the reject label for this pay-load model to the provided value.- Parameters:
rejectLabel
- Specifies the reject label for this pay-load model.
-
withRejectLabel
This method sets the reject label for this pay-load model and return this instance.- Parameters:
rejectLabel
- Specifies the reject label for this pay-load model.- Returns:
- the edited instance of
PayloadModel
.
-
getRejectNextStatus
This method retrieves the reject next status for this pay-load model.- Returns:
- the reject next status for this pay-load model.
-
setRejectNextStatus
This method sets the reject next status for this pay-load model to the provided value.- Parameters:
rejectNextStatus
- Specifies the new reject next status for this pay-load model.
-
withRejectNextStatus
This method sets the reject next status for this pay-load model and return this instance..- Parameters:
rejectNextStatus
- Specifies the reject next status for this pay-load model.- Returns:
- the edited instance of
PayloadModel
.
-
toString
-
isActive
public boolean isActive()This method checks whether this model is active or not.- Returns:
- true, if this model is active, false otherwise.
-
withActive
This method sets whether this model is active or not and return this instance.- Parameters:
active
- Indicates whether this model is active or not.- Returns:
- the edited instance of
PayloadModel
.
-
setActive
public void setActive(boolean active) This method sets whether this model is active or not.- Parameters:
active
- Indicates whether this model is active or not.
-
getObject
This method retrieves the object associated with this model.- Returns:
- the object associated with this model.
-
setObject
This method sets the object associated with this model to the provided value.- Parameters:
object
- Specifies the object associated with this model.
-
getWorkflowClass
This method retrieves the workflow class.- Returns:
- the workflow class.
-
setWorkflowClass
This method sets the workflow class to the provided value.- Parameters:
workflowClass
- Specifies the new workflow class.
-
withWorkflowClass
This method sets the workflow class and return this instance.- Parameters:
workflowClass
- Specifies the workflow class.- Returns:
- the edited instance of
PayloadModel
.
-