Package org.exoplatform.news.storage.jcr
Class JcrNewsAttachmentsStorage
java.lang.Object
org.exoplatform.news.storage.jcr.JcrNewsAttachmentsStorage
- All Implemented Interfaces:
NewsAttachmentsStorage
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNewsAttachments(javax.jcr.Node newsNode) Get the list of attachments of the given news nodevoidmakeAttachmentsPublic(javax.jcr.Node newsNode) voidshareAttachments(javax.jcr.Node newsNode, org.exoplatform.social.core.space.model.Space space) voidunmakeAttachmentsPublic(javax.jcr.Node newsNode)
-
Field Details
-
NEWS_ATTACHMENTS_NODES_FOLDER
- See Also:
-
-
Constructor Details
-
JcrNewsAttachmentsStorage
public JcrNewsAttachmentsStorage()
-
-
Method Details
-
getNewsAttachments
Get the list of attachments of the given news node- Specified by:
getNewsAttachmentsin interfaceNewsAttachmentsStorage- Parameters:
newsNode- The news node- Returns:
- The list of attachments
- Throws:
Exception- when error
-
makeAttachmentsPublic
- Specified by:
makeAttachmentsPublicin interfaceNewsAttachmentsStorage- Throws:
Exception
-
unmakeAttachmentsPublic
- Specified by:
unmakeAttachmentsPublicin interfaceNewsAttachmentsStorage- Throws:
Exception
-