Package org.exoplatform.news.storage
Interface NewsAttachmentsStorage
-
- All Known Implementing Classes:
JcrNewsAttachmentsStorage
public interface NewsAttachmentsStorage
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddAttachmentFromExistingResource(javax.jcr.Node newsNode, String attachmentId)StringaddAttachmentFromUploadedResource(javax.jcr.Node newsNode, String uploadId)NewsAttachmentgetNewsAttachment(String attachmentId)StringgetNewsAttachmentOpenUrl(String attachmentId)List<NewsAttachment>getNewsAttachments(javax.jcr.Node newsNode)InputStreamgetNewsAttachmentStream(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)List<NewsAttachment>updateNewsAttachments(News updatedNews, javax.jcr.Node newsNode)
-
-
-
Method Detail
-
getNewsAttachments
List<NewsAttachment> getNewsAttachments(javax.jcr.Node newsNode) throws Exception
- Throws:
Exception
-
getNewsAttachment
NewsAttachment getNewsAttachment(String attachmentId) throws Exception
- Throws:
Exception
-
getNewsAttachmentStream
InputStream getNewsAttachmentStream(String attachmentId) throws Exception
- Throws:
Exception
-
getNewsAttachmentOpenUrl
String getNewsAttachmentOpenUrl(String attachmentId) throws Exception
- Throws:
Exception
-
updateNewsAttachments
List<NewsAttachment> updateNewsAttachments(News updatedNews, javax.jcr.Node newsNode) throws Exception
- Throws:
Exception
-
addAttachmentFromUploadedResource
String addAttachmentFromUploadedResource(javax.jcr.Node newsNode, String uploadId) throws Exception
- Throws:
Exception
-
addAttachmentFromExistingResource
void addAttachmentFromExistingResource(javax.jcr.Node newsNode, String attachmentId) throws Exception- Throws:
Exception
-
makeAttachmentsPublic
void makeAttachmentsPublic(javax.jcr.Node newsNode) throws Exception- Throws:
Exception
-
unmakeAttachmentsPublic
void unmakeAttachmentsPublic(javax.jcr.Node newsNode) throws Exception- Throws:
Exception
-
removeAttachment
void removeAttachment(javax.jcr.Node newsNode, String attachmentId)
-
shareAttachments
void shareAttachments(javax.jcr.Node newsNode, org.exoplatform.social.core.space.model.Space space)
-
-