Class AttachmentEntity

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ByteArrayEntity getContent()  
      java.lang.String getContentId()  
      java.util.Date getCreateTime()
      The time when the attachment was created.
      java.lang.String getDescription()
      long (max 255 chars) explanation what this attachment is about in context of the task and/or process instance it's linked to.
      java.lang.String getId()
      unique id for this attachment
      java.lang.String getName()
      free user defined short (max 255 chars) name for this attachment
      java.lang.Object getPersistentState()
      Returns a representation of the object, as would be stored in the database.
      java.lang.String getProcessInstanceId()
      reference to the process instance to which this attachment is associated.
      java.util.Date getRemovalTime()
      The time the historic attachment will be removed.
      int getRevision()  
      int getRevisionNext()  
      java.lang.String getRootProcessInstanceId()
      reference to the root process instance id of the process instance on which this attachment was made
      java.lang.String getTaskId()
      reference to the task to which this attachment is associated.
      java.lang.String getTenantId()  
      java.lang.String getType()
      indication of the type of content that this attachment refers to.
      java.lang.String getUrl()
      the remote URL in case this is remote content.
      void setContent​(ByteArrayEntity content)  
      void setContentId​(java.lang.String contentId)  
      void setCreateTime​(java.util.Date createTime)  
      void setDescription​(java.lang.String description)
      long (max 255 chars) explanation what this attachment is about in context of the task and/or process instance it's linked to.
      void setId​(java.lang.String id)  
      void setName​(java.lang.String name)
      free user defined short (max 255 chars) name for this attachment
      void setProcessInstanceId​(java.lang.String processInstanceId)  
      void setRemovalTime​(java.util.Date removalTime)  
      void setRevision​(int revision)  
      void setRootProcessInstanceId​(java.lang.String rootProcessInstanceId)  
      void setTaskId​(java.lang.String taskId)  
      void setTenantId​(java.lang.String tenantId)  
      void setType​(java.lang.String type)  
      void setUrl​(java.lang.String url)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • id

        protected java.lang.String id
      • revision

        protected int revision
      • name

        protected java.lang.String name
      • description

        protected java.lang.String description
      • type

        protected java.lang.String type
      • taskId

        protected java.lang.String taskId
      • processInstanceId

        protected java.lang.String processInstanceId
      • url

        protected java.lang.String url
      • contentId

        protected java.lang.String contentId
      • tenantId

        protected java.lang.String tenantId
      • createTime

        protected java.util.Date createTime
      • rootProcessInstanceId

        protected java.lang.String rootProcessInstanceId
      • removalTime

        protected java.util.Date removalTime
    • Constructor Detail

      • AttachmentEntity

        public AttachmentEntity()
    • Method Detail

      • getPersistentState

        public java.lang.Object getPersistentState()
        Description copied from interface: DbEntity
        Returns a representation of the object, as would be stored in the database. Used when deciding if updates have occurred to the object or not since it was last loaded.
        Specified by:
        getPersistentState in interface DbEntity
      • getId

        public java.lang.String getId()
        Description copied from interface: Attachment
        unique id for this attachment
        Specified by:
        getId in interface Attachment
        Specified by:
        getId in interface DbEntity
      • setId

        public void setId​(java.lang.String id)
        Specified by:
        setId in interface DbEntity
      • getName

        public java.lang.String getName()
        Description copied from interface: Attachment
        free user defined short (max 255 chars) name for this attachment
        Specified by:
        getName in interface Attachment
      • setName

        public void setName​(java.lang.String name)
        Description copied from interface: Attachment
        free user defined short (max 255 chars) name for this attachment
        Specified by:
        setName in interface Attachment
      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: Attachment
        long (max 255 chars) explanation what this attachment is about in context of the task and/or process instance it's linked to.
        Specified by:
        getDescription in interface Attachment
      • setDescription

        public void setDescription​(java.lang.String description)
        Description copied from interface: Attachment
        long (max 255 chars) explanation what this attachment is about in context of the task and/or process instance it's linked to.
        Specified by:
        setDescription in interface Attachment
      • getType

        public java.lang.String getType()
        Description copied from interface: Attachment
        indication of the type of content that this attachment refers to. Can be mime type or any other indication.
        Specified by:
        getType in interface Attachment
      • setType

        public void setType​(java.lang.String type)
      • getTaskId

        public java.lang.String getTaskId()
        Description copied from interface: Attachment
        reference to the task to which this attachment is associated.
        Specified by:
        getTaskId in interface Attachment
      • setTaskId

        public void setTaskId​(java.lang.String taskId)
      • getProcessInstanceId

        public java.lang.String getProcessInstanceId()
        Description copied from interface: Attachment
        reference to the process instance to which this attachment is associated.
        Specified by:
        getProcessInstanceId in interface Attachment
      • setProcessInstanceId

        public void setProcessInstanceId​(java.lang.String processInstanceId)
      • setUrl

        public void setUrl​(java.lang.String url)
      • getContentId

        public java.lang.String getContentId()
      • setContentId

        public void setContentId​(java.lang.String contentId)
      • getTenantId

        public java.lang.String getTenantId()
      • setTenantId

        public void setTenantId​(java.lang.String tenantId)
      • getCreateTime

        public java.util.Date getCreateTime()
        Description copied from interface: Attachment
        The time when the attachment was created.
        Specified by:
        getCreateTime in interface Attachment
      • setCreateTime

        public void setCreateTime​(java.util.Date createTime)
      • getRootProcessInstanceId

        public java.lang.String getRootProcessInstanceId()
        Description copied from interface: Attachment
        reference to the root process instance id of the process instance on which this attachment was made
        Specified by:
        getRootProcessInstanceId in interface Attachment
      • getRemovalTime

        public java.util.Date getRemovalTime()
        Description copied from interface: Attachment
        The time the historic attachment will be removed.
        Specified by:
        getRemovalTime in interface Attachment
      • setRemovalTime

        public void setRemovalTime​(java.util.Date removalTime)
      • setRootProcessInstanceId

        public void setRootProcessInstanceId​(java.lang.String rootProcessInstanceId)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object