public class ShareDocumentService extends Object implements IShareDocumentService, org.picocontainer.Startable
| Modifier and Type | Field and Description |
|---|---|
static String |
MIX_PRIVILEGEABLE |
| Constructor and Description |
|---|
ShareDocumentService(org.exoplatform.services.jcr.RepositoryService _repoService,
org.exoplatform.services.cms.link.LinkManager _linkManager,
org.exoplatform.services.jcr.ext.app.SessionProviderService _sessionProviderService) |
| Modifier and Type | Method and Description |
|---|---|
String |
publishDocumentToSpace(String space,
javax.jcr.Node currentNode,
String comment,
String perm)
Share a document to a space, permission of space's user also
apply to this document.
|
String |
publishDocumentToSpace(String space,
javax.jcr.Node currentNode,
String comment,
String perm,
Boolean postActivity)
Share a document to a space, permission of space's user also apply to this
document.
|
void |
publishDocumentToUser(String user,
javax.jcr.Node currentNode,
String comment,
String perm)
Share a document to a user
|
void |
start() |
void |
stop() |
void |
unpublishDocumentToSpace(String space,
org.exoplatform.services.jcr.core.ExtendedNode node)
Unshare a document to a space
|
void |
unpublishDocumentToUser(String user,
org.exoplatform.services.jcr.core.ExtendedNode node)
Unshare a document to a user
|
public static final String MIX_PRIVILEGEABLE
public ShareDocumentService(org.exoplatform.services.jcr.RepositoryService _repoService,
org.exoplatform.services.cms.link.LinkManager _linkManager,
org.exoplatform.services.jcr.ext.app.SessionProviderService _sessionProviderService)
public String publishDocumentToSpace(String space, javax.jcr.Node currentNode, String comment, String perm)
IShareDocumentServiceThere is a symbolic link of origin document will create at Documents/Shared folder of destination space.
publishDocumentToSpace in interface IShareDocumentServicespace - destination space will share file incurrentNode - file will be sharedcomment - message attach with share activityperm - permission of destination space's member on origin nodepublic String publishDocumentToSpace(String space, javax.jcr.Node currentNode, String comment, String perm, Boolean postActivity)
IShareDocumentServiceThere is a symbolic link of origin document will create at Documents/Shared folder of destination space.
publishDocumentToSpace in interface IShareDocumentServicespace - destination space will share file incurrentNode - 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 notpublic void publishDocumentToUser(String user, javax.jcr.Node currentNode, String comment, String perm)
IShareDocumentServiceThere is a symbolic link of origin document will be created at Private/Documents/Shared folder of destination user.
publishDocumentToUser in interface IShareDocumentServiceuser - destination user to share file withcurrentNode - file will be sharedcomment - message attach with share activityperm - permission of destination space's member on origin nodepublic void unpublishDocumentToUser(String user, org.exoplatform.services.jcr.core.ExtendedNode node)
IShareDocumentServiceThe symbolic link of origin document will be removed from Private/Documents/Shared folder of destination user.
unpublishDocumentToUser in interface IShareDocumentServiceuser - destination user to share file withnode - file will be sharedpublic void unpublishDocumentToSpace(String space, org.exoplatform.services.jcr.core.ExtendedNode node)
IShareDocumentServiceThe symbolic link of origin document will be removed from Documents/Shared folder of destination space.
unpublishDocumentToSpace in interface IShareDocumentServicespace - destination user to share file withnode - file will be sharedpublic void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.StartableCopyright © 2003–2020 eXo Platform SAS. All rights reserved.