Class ShareDocumentService
java.lang.Object
org.exoplatform.wcm.ext.component.document.service.ShareDocumentService
- All Implemented Interfaces:
org.exoplatform.wcm.ext.component.document.service.IShareDocumentService,org.picocontainer.Startable
public class ShareDocumentService
extends Object
implements org.exoplatform.wcm.ext.component.document.service.IShareDocumentService, org.picocontainer.Startable
Created by The eXo Platform SAS Author : eXoPlatform exo@exoplatform.com Nov
19, 2014
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final org.exoplatform.services.log.Logstatic final Stringstatic final booleanstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionShareDocumentService(org.exoplatform.services.jcr.RepositoryService repositoryService, org.exoplatform.services.cms.link.LinkManager linkManager, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.manager.ActivityManager activityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService) -
Method Summary
Modifier and TypeMethodDescriptionpublishDocumentToSpace(String space, javax.jcr.Node currentNode, String comment, String perm) publishDocumentToSpace(String space, javax.jcr.Node currentNode, String comment, String perm, Boolean postActivity) voidpublishDocumentToUser(String user, javax.jcr.Node currentNode, String comment, String perm) voidshareDocumentActivityToSpace(org.exoplatform.social.core.activity.model.ExoSocialActivity sharedActivity) voidstart()voidstop()voidunpublishDocumentToSpace(String space, org.exoplatform.services.jcr.core.ExtendedNode node) voidunpublishDocumentToUser(String user, org.exoplatform.services.jcr.core.ExtendedNode node)
-
Field Details
-
SHARED_TEMPLATE_PARAMS_PREFIX
- See Also:
-
LOG
public static final org.exoplatform.services.log.Log LOG -
MIX_PRIVILEGEABLE
- See Also:
-
POST_ACTIVITY
public static final boolean POST_ACTIVITY- See Also:
-
ID
- See Also:
-
REPOSITORY
- See Also:
-
WORKSPACE
- See Also:
-
DOCPATH
- See Also:
-
WORKSPACE_NAME
- See Also:
-
LINK_PARAM
- See Also:
-
IS_SYMLINK
- See Also:
-
TEMPLATE_PARAMS_SEPARATOR
- See Also:
-
-
Constructor Details
-
ShareDocumentService
public ShareDocumentService(org.exoplatform.services.jcr.RepositoryService repositoryService, org.exoplatform.services.cms.link.LinkManager linkManager, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.manager.ActivityManager activityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService)
-
-
Method Details
-
publishDocumentToSpace
public String publishDocumentToSpace(String space, javax.jcr.Node currentNode, String comment, String perm) - Specified by:
publishDocumentToSpacein interfaceorg.exoplatform.wcm.ext.component.document.service.IShareDocumentService
-
publishDocumentToSpace
public String publishDocumentToSpace(String space, javax.jcr.Node currentNode, String comment, String perm, Boolean postActivity) - Specified by:
publishDocumentToSpacein interfaceorg.exoplatform.wcm.ext.component.document.service.IShareDocumentService
-
publishDocumentToUser
public void publishDocumentToUser(String user, javax.jcr.Node currentNode, String comment, String perm) - Specified by:
publishDocumentToUserin interfaceorg.exoplatform.wcm.ext.component.document.service.IShareDocumentService
-
unpublishDocumentToUser
public void unpublishDocumentToUser(String user, org.exoplatform.services.jcr.core.ExtendedNode node) - Specified by:
unpublishDocumentToUserin interfaceorg.exoplatform.wcm.ext.component.document.service.IShareDocumentService
-
unpublishDocumentToSpace
public void unpublishDocumentToSpace(String space, org.exoplatform.services.jcr.core.ExtendedNode node) - Specified by:
unpublishDocumentToSpacein interfaceorg.exoplatform.wcm.ext.component.document.service.IShareDocumentService
-
start
public void start()- Specified by:
startin interfaceorg.picocontainer.Startable
-
stop
public void stop()- Specified by:
stopin interfaceorg.picocontainer.Startable
-