Interface IShareDocumentService
- All Known Implementing Classes:
ShareDocumentService
public interface IShareDocumentService
Created by The eXo Platform SAS
Author : eXoPlatform
exo@exoplatform.com
Nov 27, 2014
-
Method Summary
Modifier and TypeMethodDescriptionpublishDocumentToSpace(String space, javax.jcr.Node node, String comment, String perm) Share a document to a space, permission of space's user also apply to this document.publishDocumentToSpace(String space, javax.jcr.Node node, String comment, String perm, Boolean postActivity) Share a document to a space, permission of space's user also apply to this document.voidpublishDocumentToUser(String user, javax.jcr.Node node, String comment, String perm) Share a document to a uservoidshareDocumentActivityToSpace(org.exoplatform.social.core.activity.model.ExoSocialActivity sharedActivity) Share documents of an activity to a spacevoidunpublishDocumentToSpace(String space, org.exoplatform.services.jcr.core.ExtendedNode node) Unshare a document to a spacevoidunpublishDocumentToUser(String username, org.exoplatform.services.jcr.core.ExtendedNode node) Unshare a document to a user
-
Method Details
-
publishDocumentToSpace
Share a document to a space, permission of space's user also apply to this document.There is a symbolic link of origin document will create at Documents/Shared folder of destination space.
- Parameters:
space- destination space will share file innode- file will be sharedcomment- message attach with share activityperm- permission of destination space's member on origin node- Returns:
- return false if have issue
-
publishDocumentToSpace
String publishDocumentToSpace(String space, javax.jcr.Node node, String comment, String perm, Boolean postActivity) Share a document to a space, permission of space's user also apply to this document.There is a symbolic link of origin document will create at Documents/Shared folder of destination space.
- Parameters:
space- destination space will share file innode- file will be sharedcomment- message attach with share activityperm- permission of destination space's member on origin nodepostActivity- define post activity after sharing to a space or not- Returns:
- return false if have issue
-
publishDocumentToUser
Share a document to a userThere is a symbolic link of origin document will be created at Private/Documents/Shared folder of destination user.
- Parameters:
user- destination user to share file withnode- file will be sharedcomment- message attach with share activityperm- permission of destination space's member on origin node
-
unpublishDocumentToUser
Unshare a document to a userThe symbolic link of origin document will be removed from Private/Documents/Shared folder of destination user.
- Parameters:
username- destination user to share file withnode- file will be shared
-
unpublishDocumentToSpace
Unshare a document to a spaceThe symbolic link of origin document will be removed from Documents/Shared folder of destination space.
- Parameters:
space- destination user to share file withnode- file will be shared
-