Package org.kie.internal.task.api

## Interface TaskAttachmentService

-     public interface TaskAttachmentService

  The Task Attachment Service will deal with all the functionality related with Task Attachments. Different implementations can be provided to handle the Task Attachments.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `long` | `addAttachment​(long taskId, org.kie.api.task.model.Attachment attachment, org.kie.api.task.model.Content content)` |
    `void` | `deleteAttachment​(long taskId, long attachmentId)` |
    `java.util.List<org.kie.api.task.model.Attachment>` | `getAllAttachmentsByTaskId​(long taskId)` |
    `org.kie.api.task.model.Attachment` | `getAttachmentById​(long attachId)` |

- - ### Method Detail

    - #### addAttachment

          long addAttachment​(long taskId,
                             org.kie.api.task.model.Attachment attachment,
                             org.kie.api.task.model.Content content)

    - #### deleteAttachment

          void deleteAttachment​(long taskId,
                                long attachmentId)

    - #### getAllAttachmentsByTaskId

          java.util.List<org.kie.api.task.model.Attachment> getAllAttachmentsByTaskId​(long taskId)

    - #### getAttachmentById

          org.kie.api.task.model.Attachment getAttachmentById​(long attachId)