Interface ProcessesAttachmentService


  • public interface ProcessesAttachmentService
    • Method Detail

      • linkAttachmentsToEntity

        void linkAttachmentsToEntity​(org.exoplatform.services.attachments.model.Attachment[] attachments,
                                     Long userId,
                                     Long entityId,
                                     String entityType,
                                     Long projectId)
        Links a list of attachments to entity
        Parameters:
        attachments - list of attachments
        userId - user identity id
        entityId - entity id
        entityType - entity type
        projectId - task project id
      • moveAttachmentsToEntity

        void moveAttachmentsToEntity​(Long userId,
                                     Long sourceEntityId,
                                     String sourceEntityType,
                                     Long destEntityId,
                                     String destEntityType,
                                     Long projectId)
        Move attachments from source entity to a dest entity
        Parameters:
        userId - user identity id
        sourceEntityId - source entity of attachments
        sourceEntityType - target entity type to attach files from source entity
        destEntityId - target entity id
        destEntityType - target entity type
        projectId - task project id
      • copyAttachmentsToEntity

        void copyAttachmentsToEntity​(Long userId,
                                     Long sourceEntityId,
                                     String sourceEntityType,
                                     Long destEntityId,
                                     String destEntityType,
                                     Long projectId)
        Copy attachments from source entity to a dest entity
        Parameters:
        userId - user identity id
        sourceEntityId - source entity of attachments
        sourceEntityType - target entity type to attach files from source entity
        destEntityId - target entity id
        destEntityType - target entity type
        projectId - task project id
      • createNewFormDocument

        org.exoplatform.services.attachments.model.Attachment createNewFormDocument​(Long userIdentityId,
                                                                                    String title,
                                                                                    String path,
                                                                                    String pathDrive,
                                                                                    String templateName,
                                                                                    String entityType,
                                                                                    Long entityId)
                                                                             throws Exception
        Creates a new onlyoffice document form
        Parameters:
        userIdentityId - user identity id
        title - document title
        path - document path
        pathDrive - drive path
        templateName - document template name
        entityType - entity type to attach created document
        entityId - entity id
        Returns:
        Attachment
        Throws:
        Exception