Class PayloadModel

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

public class PayloadModel extends Object implements Serializable
This class represents a pay-load model used in workflow.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
See Also:
  • Constructor Details

    • PayloadModel

      public PayloadModel()
  • Method Details

    • withId

      public PayloadModel withId(Integer id)
      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

      public void setId(Integer id)
      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

      public Integer getId()
      This method retrieves the ID for this pay-load model.
      Returns:
      the ID for this pay-load model.
    • withPayload

      public PayloadModel withPayload(String payload)
      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

      public void setPayload(String payload)
      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

      public String getPayload()
      This method retrieves the pay-load content for this pay-load model.
      Returns:
      the pay-load content for this pay-load model.
    • withStatus

      public PayloadModel withStatus(String status)
      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

      public void setStatus(String status)
      This method sets the status for this pay-load model to the provided value.
      Parameters:
      status - the new status
    • getStatus

      public String getStatus()
      This method retrieves the status for this pay-load model.
      Returns:
      the status for this pay-load model.
    • withRole

      public PayloadModel withRole(String role)
      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

      public void setRole(String role)
      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

      public String getRole()
      This method retrieves the role for this pay-load model.
      Returns:
      the role for this pay-load model.
    • withCreator

      public PayloadModel withCreator(String creator)
      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

      public void setCreator(String creator)
      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

      public String getCreator()
      This method retrieves the creator for this pay-load model.
      Returns:
      the creator for this pay-load model.
    • withTimestamp

      public PayloadModel withTimestamp(Timestamp timestamp)
      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

      public void setTimestamp(Timestamp timestamp)
      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

      public Timestamp getTimestamp()
      This method retrieves the time stamp for this pay-load model.
      Returns:
      the time stamp for this pay-load model.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • withOriginalAction

      public PayloadModel withOriginalAction(String originalAction)
      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

      public void setOriginalAction(String originalAction)
      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

      public String getOriginalAction()
      This method retrieves the original action for this pay-load model.
      Returns:
      the original action for this pay-load model.
    • getApproveLabel

      public String getApproveLabel()
      This method retrieves the approve label associated with this pay-load model.
      Returns:
      the approve label associated with this pay-load model.
    • setApproveLabel

      public void setApproveLabel(String approveLabel)
      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

      public PayloadModel withApproveLabel(String approveLabel)
      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

      public String getApproveNextStatus()
      This method retrieves the approve next status for this pay-load model.
      Returns:
      the approve next status for this pay-load model.
    • setApproveNextStatus

      public void setApproveNextStatus(String approveNextStatus)
      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

      public PayloadModel withApproveNextStatus(String approveNextStatus)
      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

      public String getRejectLabel()
      This method retrieves the reject label for this pay-load model.
      Returns:
      the reject label for this pay-load model.
    • setRejectLabel

      public void setRejectLabel(String rejectLabel)
      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

      public PayloadModel withRejectLabel(String rejectLabel)
      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

      public String getRejectNextStatus()
      This method retrieves the reject next status for this pay-load model.
      Returns:
      the reject next status for this pay-load model.
    • setRejectNextStatus

      public void setRejectNextStatus(String rejectNextStatus)
      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

      public PayloadModel withRejectNextStatus(String rejectNextStatus)
      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

      public String toString()
      Overrides:
      toString in class Object
    • isActive

      public boolean isActive()
      This method checks whether this model is active or not.
      Returns:
      true, if this model is active, false otherwise.
    • withActive

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

      public Object getObject()
      This method retrieves the object associated with this model.
      Returns:
      the object associated with this model.
    • setObject

      public void setObject(Object object)
      This method sets the object associated with this model to the provided value.
      Parameters:
      object - Specifies the object associated with this model.
    • getWorkflowClass

      public String getWorkflowClass()
      This method retrieves the workflow class.
      Returns:
      the workflow class.
    • setWorkflowClass

      public void setWorkflowClass(String workflowClass)
      This method sets the workflow class to the provided value.
      Parameters:
      workflowClass - Specifies the new workflow class.
    • withWorkflowClass

      public PayloadModel withWorkflowClass(String workflowClass)
      This method sets the workflow class and return this instance.
      Parameters:
      workflowClass - Specifies the workflow class.
      Returns:
      the edited instance of PayloadModel.