Package pro.taskana.task.internal.models
Class AttachmentImpl
- java.lang.Object
-
- pro.taskana.task.internal.models.AttachmentSummaryImpl
-
- pro.taskana.task.internal.models.AttachmentImpl
-
- All Implemented Interfaces:
Attachment,AttachmentSummary
public class AttachmentImpl extends AttachmentSummaryImpl implements Attachment
Attachment entity.
-
-
Field Summary
-
Fields inherited from class pro.taskana.task.internal.models.AttachmentSummaryImpl
channel, classificationSummary, created, id, modified, objectReference, received, taskId
-
-
Constructor Summary
Constructors Constructor Description AttachmentImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttachmentSummaryasSummary()Return a summary of the current Attachment.protected booleancanEqual(Object other)AttachmentImplcopy()Duplicates this AttachmentSummary without the id and taskId.booleanequals(Object obj)Map<String,String>getCustomAttributeMap()Returns the custom attributes of this attachment.Map<String,String>getCustomAttributes()inthashCode()voidsetCustomAttributeMap(Map<String,String> customAttributes)Sets the custom attribute Map of the attachment.voidsetCustomAttributes(Map<String,String> customAttributes)StringtoString()-
Methods inherited from class pro.taskana.task.internal.models.AttachmentSummaryImpl
getChannel, getClassificationSummary, getClassificationSummaryImpl, getCreated, getId, getModified, getObjectReference, getObjectReferenceImpl, getReceived, getTaskId, setChannel, setClassificationSummary, setClassificationSummaryImpl, setCreated, setId, setModified, setObjectReference, setObjectReferenceImpl, setReceived, setTaskId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface pro.taskana.task.api.models.Attachment
setChannel, setClassificationSummary, setObjectReference, setReceived
-
Methods inherited from interface pro.taskana.task.api.models.AttachmentSummary
getChannel, getClassificationSummary, getCreated, getId, getModified, getObjectReference, getReceived, getTaskId
-
-
-
-
Method Detail
-
getCustomAttributeMap
public Map<String,String> getCustomAttributeMap()
Description copied from interface:AttachmentReturns the custom attributes of this attachment.- Specified by:
getCustomAttributeMapin interfaceAttachment- Returns:
- customAttributes as
Map
-
setCustomAttributeMap
public void setCustomAttributeMap(Map<String,String> customAttributes)
Description copied from interface:AttachmentSets the custom attribute Map of the attachment.- Specified by:
setCustomAttributeMapin interfaceAttachment- Parameters:
customAttributes- aMapthat contains the custom attributes of the attachment as key, value pairs
-
asSummary
public AttachmentSummary asSummary()
Description copied from interface:AttachmentReturn a summary of the current Attachment.- Specified by:
asSummaryin interfaceAttachment- Returns:
- the AttachmentSummary object for the current attachment
-
copy
public AttachmentImpl copy()
Description copied from interface:AttachmentSummaryDuplicates this AttachmentSummary without the id and taskId.- Specified by:
copyin interfaceAttachment- Specified by:
copyin interfaceAttachmentSummary- Overrides:
copyin classAttachmentSummaryImpl- Returns:
- a copy of this AttachmentSummary
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqualin classAttachmentSummaryImpl
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAttachmentSummaryImpl
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classAttachmentSummaryImpl
-
toString
public String toString()
- Overrides:
toStringin classAttachmentSummaryImpl
-
-