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 Details

  • 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:
      publishDocumentToSpace in interface org.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:
      publishDocumentToSpace in interface org.exoplatform.wcm.ext.component.document.service.IShareDocumentService
    • publishDocumentToUser

      public void publishDocumentToUser(String user, javax.jcr.Node currentNode, String comment, String perm)
      Specified by:
      publishDocumentToUser in interface org.exoplatform.wcm.ext.component.document.service.IShareDocumentService
    • unpublishDocumentToUser

      public void unpublishDocumentToUser(String user, org.exoplatform.services.jcr.core.ExtendedNode node)
      Specified by:
      unpublishDocumentToUser in interface org.exoplatform.wcm.ext.component.document.service.IShareDocumentService
    • unpublishDocumentToSpace

      public void unpublishDocumentToSpace(String space, org.exoplatform.services.jcr.core.ExtendedNode node)
      Specified by:
      unpublishDocumentToSpace in interface org.exoplatform.wcm.ext.component.document.service.IShareDocumentService
    • shareDocumentActivityToSpace

      public void shareDocumentActivityToSpace(org.exoplatform.social.core.activity.model.ExoSocialActivity sharedActivity) throws Exception
      Specified by:
      shareDocumentActivityToSpace in interface org.exoplatform.wcm.ext.component.document.service.IShareDocumentService
      Throws:
      Exception
    • start

      public void start()
      Specified by:
      start in interface org.picocontainer.Startable
    • stop

      public void stop()
      Specified by:
      stop in interface org.picocontainer.Startable