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

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

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

import java.util.HashMap;
import java.util.Map;

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

/**
 * EntityModel class for {@link Attachment}.
 */
public class AttachmentRepresentationModel
    extends AttachmentSummaryRepresentationModel {
  
  private Map customAttributes = new HashMap<>();

  public AttachmentRepresentationModel() {
  }

  public AttachmentRepresentationModel(Attachment attachment) {
    super(attachment);
    this.customAttributes = attachment.getCustomAttributes();
  }

  public Map getCustomAttributes() {
    return customAttributes;
  }

  public void setCustomAttributes(Map customAttributes) {
    this.customAttributes = customAttributes;
  }

  @Override
  public String toString() {
    return "AttachmentRepresentationModel [customAttributes="
               + customAttributes
               + ", attachmentId="
               + attachmentId
               + ", taskId="
               + taskId
               + ", created="
               + created
               + ", modified="
               + modified
               + ", classificationSummaryRepresentationModel="
               + classificationSummary
               + ", objectReference="
               + objectReference
               + ", channel="
               + channel
               + ", received="
               + received
               + "]";
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy