Package org.exoplatform.news.storage
Interface NewsAttachmentsStorage
- All Known Implementing Classes:
JcrNewsAttachmentsStorage
public interface NewsAttachmentsStorage
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttachmentFromExistingResource(javax.jcr.Node newsNode, String attachmentId) addAttachmentFromUploadedResource(javax.jcr.Node newsNode, String uploadId) getNewsAttachment(String attachmentId) getNewsAttachmentOpenUrl(String attachmentId) getNewsAttachments(javax.jcr.Node newsNode) getNewsAttachmentStream(String attachmentId) voidmakeAttachmentsPublic(javax.jcr.Node newsNode) voidremoveAttachment(javax.jcr.Node newsNode, String attachmentId) voidshareAttachments(javax.jcr.Node newsNode, org.exoplatform.social.core.space.model.Space space) voidunmakeAttachmentsPublic(javax.jcr.Node newsNode) updateNewsAttachments(News updatedNews, javax.jcr.Node newsNode)
-
Method Details
-
getNewsAttachments
- Throws:
Exception
-
getNewsAttachment
- Throws:
Exception
-
getNewsAttachmentStream
- Throws:
Exception
-
getNewsAttachmentOpenUrl
- Throws:
Exception
-
updateNewsAttachments
List<NewsAttachment> updateNewsAttachments(News updatedNews, javax.jcr.Node newsNode) throws Exception - Throws:
Exception
-
addAttachmentFromUploadedResource
- Throws:
Exception
-
addAttachmentFromExistingResource
void addAttachmentFromExistingResource(javax.jcr.Node newsNode, String attachmentId) throws Exception - Throws:
Exception
-
makeAttachmentsPublic
- Throws:
Exception
-
unmakeAttachmentsPublic
- Throws:
Exception
-
removeAttachment
-