Class PayloadModel

java.lang.Object
com.jk.services.client.workflow.models.PayloadModel
All Implemented Interfaces:
Serializable

public class PayloadModel extends Object implements Serializable
The Class PayloadModel.
See Also:
  • Constructor Details

    • PayloadModel

      public PayloadModel()
  • Method Details

    • withId

      public PayloadModel withId(Integer id)
      With id.
      Parameters:
      id - the id
      Returns:
      the payload model
    • setId

      public void setId(Integer id)
      Sets the id.
      Parameters:
      id - the new id
    • getId

      public Integer getId()
      Gets the id.
      Returns:
      the id
    • withPayload

      public PayloadModel withPayload(String payload)
      With payload.
      Parameters:
      payload - the payload
      Returns:
      the payload model
    • setPayload

      public void setPayload(String payload)
      Sets the payload.
      Parameters:
      payload - the new payload
    • getPayload

      public String getPayload()
      Gets the payload.
      Returns:
      the payload
    • withStatus

      public PayloadModel withStatus(String status)
      With status.
      Parameters:
      status - the status
      Returns:
      the payload model
    • setStatus

      public void setStatus(String status)
      Sets the status.
      Parameters:
      status - the new status
    • getStatus

      public String getStatus()
      Gets the status.
      Returns:
      the status
    • withRole

      public PayloadModel withRole(String role)
      With role.
      Parameters:
      role - the role
      Returns:
      the payload model
    • setRole

      public void setRole(String role)
      Sets the role.
      Parameters:
      role - the new role
    • getRole

      public String getRole()
      Gets the role.
      Returns:
      the role
    • withCreator

      public PayloadModel withCreator(String creator)
      With creator.
      Parameters:
      creator - the creator
      Returns:
      the payload model
    • setCreator

      public void setCreator(String creator)
      Sets the creator.
      Parameters:
      creator - the new creator
    • getCreator

      public String getCreator()
      Gets the creator.
      Returns:
      the creator
    • withTimestamp

      public PayloadModel withTimestamp(Timestamp timestamp)
      With timestamp.
      Parameters:
      timestamp - the timestamp
      Returns:
      the payload model
    • setTimestamp

      public void setTimestamp(Timestamp timestamp)
      Sets the timestamp.
      Parameters:
      timestamp - the new timestamp
    • getTimestamp

      public Timestamp getTimestamp()
      Gets the timestamp.
      Returns:
      the timestamp
    • equals

      public boolean equals(Object obj)
      Equals.
      Overrides:
      equals in class Object
      Parameters:
      obj - the obj
      Returns:
      true, if successful
    • hashCode

      public int hashCode()
      Hash code.
      Overrides:
      hashCode in class Object
      Returns:
      the int
    • withOriginalAction

      public PayloadModel withOriginalAction(String originalAction)
      With original action.
      Parameters:
      originalAction - the original action
      Returns:
      the payload model
    • setOriginalAction

      public void setOriginalAction(String originalAction)
      Sets the original action.
      Parameters:
      originalAction - the new original action
    • getOriginalAction

      public String getOriginalAction()
      Gets the original action.
      Returns:
      the original action
    • getApproveLabel

      public String getApproveLabel()
      Gets the approve label.
      Returns:
      the approve label
    • setApproveLabel

      public void setApproveLabel(String approveLabel)
      Sets the approve label.
      Parameters:
      approveLabel - the new approve label
    • withApproveLabel

      public PayloadModel withApproveLabel(String approveLabel)
      With approve label.
      Parameters:
      approveLabel - the approve label
      Returns:
      the payload model
    • getApproveNextStatus

      public String getApproveNextStatus()
      Gets the approve next status.
      Returns:
      the approve next status
    • setApproveNextStatus

      public void setApproveNextStatus(String approveNextStatus)
      Sets the approve next status.
      Parameters:
      approveNextStatus - the new approve next status
    • withApproveNextStatus

      public PayloadModel withApproveNextStatus(String approveNextStatus)
      With approve next status.
      Parameters:
      approveNextStatus - the approve next status
      Returns:
      the payload model
    • getRejectLabel

      public String getRejectLabel()
      Gets the reject label.
      Returns:
      the reject label
    • setRejectLabel

      public void setRejectLabel(String rejectLabel)
      Sets the reject label.
      Parameters:
      rejectLabel - the new reject label
    • withRejectLabel

      public PayloadModel withRejectLabel(String rejectLabel)
      With reject label.
      Parameters:
      rejectLabel - the reject label
      Returns:
      the payload model
    • getRejectNextStatus

      public String getRejectNextStatus()
      Gets the reject next status.
      Returns:
      the reject next status
    • setRejectNextStatus

      public void setRejectNextStatus(String rejectNextStatus)
      Sets the reject next status.
      Parameters:
      rejectNextStatus - the new reject next status
    • withRejectNextStatus

      public PayloadModel withRejectNextStatus(String rejectNextStatus)
      With reject next status.
      Parameters:
      rejectNextStatus - the reject next status
      Returns:
      the payload model
    • toString

      public String toString()
      To string.
      Overrides:
      toString in class Object
      Returns:
      the string
    • isActive

      public boolean isActive()
      Checks if is active.
      Returns:
      true, if is active
    • withActive

      public PayloadModel withActive(boolean active)
      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

      public Object getObject()
      Gets the object.
      Returns:
      the object
    • setObject

      public void setObject(Object object)
      Sets the object.
      Parameters:
      object - the new object
    • getWorkflowClass

      public String getWorkflowClass()
      Gets the workflow class.
      Returns:
      the workflow class
    • setWorkflowClass

      public void setWorkflowClass(String workflowClass)
      Sets the workflow class.
      Parameters:
      workflowClass - the new workflow class
    • withWorkflowClass

      public PayloadModel withWorkflowClass(String workflowClass)
      With workflow class.
      Parameters:
      workflowClass - the workflow class
      Returns:
      the payload model