Class FileAttachmentStorage
java.lang.Object
org.exoplatform.social.core.attachment.storage.FileAttachmentStorage
-
Constructor Summary
ConstructorsConstructorDescriptionFileAttachmentStorage(org.exoplatform.commons.file.services.FileService fileService, org.exoplatform.social.metadata.thumbnail.ImageThumbnailService imageThumbnailService) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteAttachment(org.exoplatform.social.attachment.model.ObjectAttachmentId objectAttachmentId) org.exoplatform.social.attachment.model.ObjectAttachmentDetailgetAttachment(org.exoplatform.social.attachment.model.ObjectAttachmentId attachmentId) getAttachmentInputStream(org.exoplatform.social.attachment.model.ObjectAttachmentId attachmentId, String imageDimensions, org.exoplatform.social.core.identity.model.Identity userIdentity) uploadAttachment(Long attachmentId, String objectType, String objectId, String fileName, String fileMimeType, InputStream fileInputStream, long userIdentityId)
-
Constructor Details
-
FileAttachmentStorage
public FileAttachmentStorage(org.exoplatform.commons.file.services.FileService fileService, org.exoplatform.social.metadata.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, org.exoplatform.social.core.identity.model.Identity userIdentity) throws IOException - Throws:
IOException
-
deleteAttachment
public void deleteAttachment(org.exoplatform.social.attachment.model.ObjectAttachmentId objectAttachmentId) throws IOException - Throws:
IOException
-