Interface ProcessesAttachmentService
public interface ProcessesAttachmentService
-
Method Summary
Modifier and TypeMethodDescriptionvoidcopyAttachmentsToEntity(Long userId, Long sourceEntityId, String sourceEntityType, Long destEntityId, String destEntityType, Long projectId) Copy attachments from source entity to a dest entityorg.exoplatform.services.attachments.model.AttachmentcreateNewFormDocument(Long userIdentityId, String title, String path, String pathDrive, String templateName, String entityType, Long entityId) Creates a new onlyoffice document formvoidlinkAttachmentsToEntity(org.exoplatform.services.attachments.model.Attachment[] attachments, Long userId, Long entityId, String entityType, Long projectId) Links a list of attachments to entityvoidmoveAttachmentsToEntity(Long userId, Long sourceEntityId, String sourceEntityType, Long destEntityId, String destEntityType, Long projectId) Move attachments from source entity to a dest entityvoidmoveAttachmentsToEntity(List<org.exoplatform.services.attachments.model.Attachment> attachments, Long userId, Long sourceEntityId, String sourceEntityType, Long destEntityId, String destEntityType, Long projectId) Move attachments from source entity to a dest entity
-
Method Details
-
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 attachmentsuserId- user identity identityId- entity identityType- entity typeprojectId- 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 idsourceEntityId- source entity of attachmentssourceEntityType- target entity type to attach files from source entitydestEntityId- target entity iddestEntityType- target entity typeprojectId- task project id
-
moveAttachmentsToEntity
void moveAttachmentsToEntity(List<org.exoplatform.services.attachments.model.Attachment> attachments, Long userId, Long sourceEntityId, String sourceEntityType, Long destEntityId, String destEntityType, Long projectId) Move attachments from source entity to a dest entity- Parameters:
attachments- list of attachmentuserId- user identity idsourceEntityId- source entity of attachmentssourceEntityType- target entity type to attach files from source entitydestEntityId- target entity iddestEntityType- target entity typeprojectId- 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 idsourceEntityId- source entity of attachmentssourceEntityType- target entity type to attach files from source entitydestEntityId- target entity iddestEntityType- target entity typeprojectId- 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 idtitle- document titlepath- document pathpathDrive- drive pathtemplateName- document template nameentityType- entity type to attach created documententityId- entity id- Returns:
Attachment- Throws:
Exception
-