All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pro.taskana.task.rest.models.TaskCommentRepresentationModel Maven / Gradle / Ivy

There is a newer version: 8.2.0
Show newest version
package pro.taskana.task.rest.models;

import org.springframework.hateoas.RepresentationModel;

import pro.taskana.task.api.models.TaskComment;

/** EntityModel class for {@link TaskComment}. */
public class TaskCommentRepresentationModel
    extends RepresentationModel {

  private String taskCommentId;
  private String taskId;
  private String textField;
  private String creator;
  private String created;
  private String modified;

  public TaskCommentRepresentationModel() {}

  public TaskCommentRepresentationModel(TaskComment taskComment) {
    this.taskCommentId = taskComment.getId();
    this.taskId = taskComment.getTaskId();
    this.textField = taskComment.getTextField();
    this.creator = taskComment.getCreator();
    this.created = taskComment.getCreated().toString();
    this.modified = taskComment.getModified().toString();
  }

  public String getTaskCommentId() {
    return taskCommentId;
  }

  public void setTaskCommentId(String id) {
    this.taskCommentId = id;
  }

  public String getTaskId() {
    return taskId;
  }

  public void setTaskId(String taskId) {
    this.taskId = taskId;
  }

  public String getCreator() {
    return creator;
  }

  public void setCreator(String creator) {
    this.creator = creator;
  }

  public String getTextField() {
    return textField;
  }

  public void setTextField(String textField) {
    this.textField = textField;
  }

  public String getCreated() {
    return created;
  }

  public void setCreated(String created) {
    this.created = created;
  }

  public String getModified() {
    return modified;
  }

  public void setModified(String modified) {
    this.modified = modified;
  }

  @Override
  public String toString() {
    return "TaskCommentResource [taskCommentId="
        + taskCommentId
        + ", taskId="
        + taskId
        + ", textField="
        + textField
        + ", creator="
        + creator
        + ", created="
        + created
        + ", modified="
        + modified
        + "]";
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy