Class FileAttachmentStorage

java.lang.Object
org.exoplatform.social.core.attachment.storage.FileAttachmentStorage

public class FileAttachmentStorage extends Object
  • Constructor Details

    • FileAttachmentStorage

      public FileAttachmentStorage(org.exoplatform.commons.file.services.FileService fileService, org.exoplatform.services.thumbnail.ImageThumbnailService imageThumbnailService)
  • Method Details

    • uploadAttachment

      public String uploadAttachment(Long attachmentId, String objectType, String objectId, String fileName, String fileMimeType, InputStream fileInputStream, long userIdentityId) throws IOException
      Throws:
      IOException
    • getAttachment

      public org.exoplatform.social.attachment.model.ObjectAttachmentDetail getAttachment(org.exoplatform.social.attachment.model.ObjectAttachmentId attachmentId)
    • getAttachmentInputStream

      public InputStream getAttachmentInputStream(org.exoplatform.social.attachment.model.ObjectAttachmentId attachmentId, String imageDimensions) throws IOException
      Throws:
      IOException
    • deleteAttachment

      public void deleteAttachment(org.exoplatform.social.attachment.model.ObjectAttachmentId objectAttachmentId) throws IOException
      Throws:
      IOException