Class TaskImpl

    • Constructor Detail

      • TaskImpl

        public TaskImpl()
    • Method Detail

      • setCustomAttributes

        public void setCustomAttributes​(Map<String,​String> customAttributes)
      • getClassificationId

        public String getClassificationId()
      • copy

        public TaskImpl copy()
        Description copied from interface: TaskSummary
        Duplicates this TaskSummary without the internal and external id.
        Specified by:
        copy in interface Task
        Specified by:
        copy in interface TaskSummary
        Overrides:
        copy in class TaskSummaryImpl
        Returns:
        a copy of this TaskSummary
      • getClassificationKey

        public String getClassificationKey()
      • getWorkbasketKey

        public String getWorkbasketKey()
        Description copied from interface: Task
        Returns the key of the Workbasket where the Task is stored in.
        Specified by:
        getWorkbasketKey in interface Task
        Returns:
        workbasketKey
      • setWorkbasketKey

        public void setWorkbasketKey​(String workbasketKey)
      • getCustomAttributeMap

        public Map<String,​String> getCustomAttributeMap()
        Description copied from interface: Task
        Returns a Map of customAttributes.
        Specified by:
        getCustomAttributeMap in interface Task
        Returns:
        customAttributes as Map
      • setCustomAttributeMap

        public void setCustomAttributeMap​(Map<String,​String> customAttributes)
        Description copied from interface: Task
        Sets a Map of custom attributes.
        Specified by:
        setCustomAttributeMap in interface Task
        Parameters:
        customAttributes - a Map that contains the custom attributes
      • setCallbackState

        public void setCallbackState​(CallbackState callbackState)
      • getCallbackInfo

        public Map<String,​String> getCallbackInfo()
        Description copied from interface: Task
        Returns the callbackInfo.
        Specified by:
        getCallbackInfo in interface Task
        Returns:
        callbackInfo as Map
      • setCallbackInfo

        public void setCallbackInfo​(Map<String,​String> callbackInfo)
        Description copied from interface: Task
        Sets the callbackInfo.
        Specified by:
        setCallbackInfo in interface Task
        Parameters:
        callbackInfo - a Map that contains the callback information
      • addAttachment

        public void addAttachment​(Attachment attachmentToAdd)
        Description copied from interface: Task
        Add an Attachment.
        NULL will be ignored and an Attachment with the same id will be replaced by the newer one.
        Specified by:
        addAttachment in interface Task
        Parameters:
        attachmentToAdd - the attachment to be added to the Task
      • getAttachments

        public List<Attachment> getAttachments()
        Description copied from interface: Task
        Return the attachment for the Task.
        Do not use List.add()/addAll() for adding elements, because it can cause redundant data. Use addAttachment(). Clear() and remove() can be used, because it's a controllable change.
        Specified by:
        getAttachments in interface Task
        Returns:
        the List of attachments for this Task
      • setAttachments

        public void setAttachments​(List<Attachment> attachments)
      • asSummary

        public TaskSummary asSummary()
        Description copied from interface: Task
        Returns a summary of the current Task.
        Specified by:
        asSummary in interface Task
        Returns:
        the TaskSummary object for the current Task
      • removeAttachment

        public Attachment removeAttachment​(String attachmentId)
        Description copied from interface: Task
        Removes an attachment of the current Task locally, when the ID is represented and does return the removed attachment or null if there was no match.
        The changed Task need to be updated calling the TaskService.updateTask(Task).
        Specified by:
        removeAttachment in interface Task
        Parameters:
        attachmentId - ID of the attachment which should be removed.
        Returns:
        attachment which will be removed after updating OR null if there was no match.
      • setClassificationCategory

        public void setClassificationCategory​(String classificationCategory)