Package pro.taskana.task.internal.models
Class AttachmentSummaryImpl
- java.lang.Object
-
- pro.taskana.task.internal.models.AttachmentSummaryImpl
-
- All Implemented Interfaces:
AttachmentSummary
- Direct Known Subclasses:
AttachmentImpl
public class AttachmentSummaryImpl extends Object implements AttachmentSummary
The most important fields of the Attachment entity.
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringchannelprotected ClassificationSummaryclassificationSummaryprotected Instantcreatedprotected Stringidprotected Instantmodifiedprotected ObjectReferenceobjectReferenceprotected Instantreceivedprotected StringtaskId
-
Constructor Summary
Constructors Modifier Constructor Description protectedAttachmentSummaryImpl(AttachmentSummaryImpl copyFrom)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)AttachmentSummaryImplcopy()Duplicates this AttachmentSummary without the id and taskId.booleanequals(Object obj)StringgetChannel()Gets the Channel on which the attachment was received.ClassificationSummarygetClassificationSummary()Gets the classificationSummary of the attachment.ClassificationSummaryImplgetClassificationSummaryImpl()InstantgetCreated()Gets the time when the attachment was created.StringgetId()Gets the id of the attachment.InstantgetModified()Gets the time when the attachment was last modified.ObjectReferencegetObjectReference()Gets theprimaryObjectReferenceof the attachment.InstantgetReceived()Gets the time when the attachment was received.StringgetTaskId()Gets the id of the associated task.inthashCode()voidsetChannel(String channel)voidsetClassificationSummary(ClassificationSummary classificationSummary)voidsetClassificationSummaryImpl(ClassificationSummaryImpl classificationSummary)voidsetCreated(Instant created)voidsetId(String id)voidsetModified(Instant modified)voidsetObjectReference(ObjectReference objectReference)voidsetReceived(Instant received)voidsetTaskId(String taskId)StringtoString()
-
-
-
Field Detail
-
id
protected String id
-
taskId
protected String taskId
-
created
protected Instant created
-
modified
protected Instant modified
-
classificationSummary
protected ClassificationSummary classificationSummary
-
objectReference
protected ObjectReference objectReference
-
channel
protected String channel
-
received
protected Instant received
-
-
Constructor Detail
-
AttachmentSummaryImpl
protected AttachmentSummaryImpl(AttachmentSummaryImpl copyFrom)
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:AttachmentSummaryGets the id of the attachment.- Specified by:
getIdin interfaceAttachmentSummary- Returns:
- attachmentId
-
setId
public void setId(String id)
-
getTaskId
public String getTaskId()
Description copied from interface:AttachmentSummaryGets the id of the associated task.- Specified by:
getTaskIdin interfaceAttachmentSummary- Returns:
- taskId
-
setTaskId
public void setTaskId(String taskId)
-
getCreated
public Instant getCreated()
Description copied from interface:AttachmentSummaryGets the time when the attachment was created.- Specified by:
getCreatedin interfaceAttachmentSummary- Returns:
- the created Instant
-
setCreated
public void setCreated(Instant created)
-
getModified
public Instant getModified()
Description copied from interface:AttachmentSummaryGets the time when the attachment was last modified.- Specified by:
getModifiedin interfaceAttachmentSummary- Returns:
- the last modified Instant
-
setModified
public void setModified(Instant modified)
-
getObjectReference
public ObjectReference getObjectReference()
Description copied from interface:AttachmentSummaryGets theprimaryObjectReferenceof the attachment.- Specified by:
getObjectReferencein interfaceAttachmentSummary- Returns:
primaryObjectReferenceof the attachment
-
setObjectReference
public void setObjectReference(ObjectReference objectReference)
-
getChannel
public String getChannel()
Description copied from interface:AttachmentSummaryGets the Channel on which the attachment was received.- Specified by:
getChannelin interfaceAttachmentSummary- Returns:
- the channel
-
setChannel
public void setChannel(String channel)
-
getClassificationSummary
public ClassificationSummary getClassificationSummary()
Description copied from interface:AttachmentSummaryGets the classificationSummary of the attachment.- Specified by:
getClassificationSummaryin interfaceAttachmentSummary- Returns:
- the classification summary
-
setClassificationSummary
public void setClassificationSummary(ClassificationSummary classificationSummary)
-
getReceived
public Instant getReceived()
Description copied from interface:AttachmentSummaryGets the time when the attachment was received.- Specified by:
getReceivedin interfaceAttachmentSummary- Returns:
- received Instant
-
setReceived
public void setReceived(Instant received)
-
copy
public AttachmentSummaryImpl copy()
Description copied from interface:AttachmentSummaryDuplicates this AttachmentSummary without the id and taskId.- Specified by:
copyin interfaceAttachmentSummary- Returns:
- a copy of this AttachmentSummary
-
getClassificationSummaryImpl
public ClassificationSummaryImpl getClassificationSummaryImpl()
-
setClassificationSummaryImpl
public void setClassificationSummaryImpl(ClassificationSummaryImpl classificationSummary)
-
canEqual
protected boolean canEqual(Object other)
-
-