public class CloudDriveShareDocumentService
extends org.exoplatform.wcm.ext.component.document.service.ShareDocumentService
| Modifier and Type | Field and Description |
|---|---|
protected org.exoplatform.social.core.manager.ActivityManager |
activityManager
The activity manager.
|
protected org.exoplatform.clouddrive.CloudDriveService |
cloudDrives
The cloud drive service.
|
protected CloudFileActionService |
cloudFileActions
The cloud file actions.
|
protected String |
groupsPath
The groups path.
|
protected org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator |
hierarchyCreator
The hierarchy creator.
|
protected org.exoplatform.social.core.manager.IdentityManager |
identityManager
The identity manager.
|
protected org.exoplatform.services.cms.link.LinkManager |
linkManager
The link manager.
|
protected static org.exoplatform.services.log.Log |
LOG
The Constant LOG.
|
protected static String |
SHARE_PERMISSION_MODIFY
The Constant SHARE_PERMISSION_MODIFY (copied from UIShareDocuments).
|
protected String |
usersPath
The users path.
|
| Constructor and Description |
|---|
CloudDriveShareDocumentService(org.exoplatform.services.jcr.RepositoryService repoService,
org.exoplatform.services.cms.link.LinkManager linkManager,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService,
org.exoplatform.social.core.manager.ActivityManager activityManager,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator hierarchyCreator,
org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.clouddrive.CloudDriveService cloudDrives,
CloudFileActionService cloudFileActions)
Instantiates a new share cloud drive document service.
|
| Modifier and Type | Method and Description |
|---|---|
protected <R> R |
applyInDrive(org.exoplatform.clouddrive.CloudDrive cloudDrive,
org.exoplatform.clouddrive.CloudDriveStorage.Change<R> change) |
protected org.exoplatform.clouddrive.CloudDrive |
findCloudDrive(javax.jcr.Node node) |
String |
publishDocumentToSpace(String groupId,
javax.jcr.Node node,
String comment,
String perm) |
void |
publishDocumentToUser(String userId,
javax.jcr.Node node,
String comment,
String perm) |
protected void |
shareInDrive(javax.jcr.Node node,
org.exoplatform.clouddrive.CloudDrive localDrive,
String identity)
Share cloud file (by its node) in Cloud Drive.
|
void |
unpublishDocumentToSpace(String groupId,
org.exoplatform.services.jcr.core.ExtendedNode node) |
void |
unpublishDocumentToUser(String userId,
org.exoplatform.services.jcr.core.ExtendedNode node) |
protected void |
unshareInDrive(javax.jcr.Node node,
org.exoplatform.clouddrive.CloudDrive localDrive,
String identity)
Unshare cloud file (by its node) in Cloud Drive.
|
protected static final org.exoplatform.services.log.Log LOG
protected static final String SHARE_PERMISSION_MODIFY
protected final org.exoplatform.social.core.manager.ActivityManager activityManager
protected final org.exoplatform.services.cms.link.LinkManager linkManager
protected final org.exoplatform.social.core.manager.IdentityManager identityManager
protected final org.exoplatform.clouddrive.CloudDriveService cloudDrives
protected final org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator hierarchyCreator
protected final CloudFileActionService cloudFileActions
protected final String groupsPath
protected final String usersPath
public CloudDriveShareDocumentService(org.exoplatform.services.jcr.RepositoryService repoService,
org.exoplatform.services.cms.link.LinkManager linkManager,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService,
org.exoplatform.social.core.manager.ActivityManager activityManager,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator hierarchyCreator,
org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.clouddrive.CloudDriveService cloudDrives,
CloudFileActionService cloudFileActions)
repoService - the repo servicelinkManager - the link managersessionProviderService - the session provider serviceactivityManager - the activity managerhierarchyCreator - the hierarchy creatoridentityManager - the identity managercloudDrives - the cloud drive servicecloudFileActions - the cloud file actionspublic String publishDocumentToSpace(String groupId, javax.jcr.Node node, String comment, String perm)
publishDocumentToSpace in interface org.exoplatform.wcm.ext.component.document.service.IShareDocumentServicepublishDocumentToSpace in class org.exoplatform.wcm.ext.component.document.service.ShareDocumentServicepublic void publishDocumentToUser(String userId, javax.jcr.Node node, String comment, String perm)
publishDocumentToUser in interface org.exoplatform.wcm.ext.component.document.service.IShareDocumentServicepublishDocumentToUser in class org.exoplatform.wcm.ext.component.document.service.ShareDocumentServicepublic void unpublishDocumentToUser(String userId, org.exoplatform.services.jcr.core.ExtendedNode node)
unpublishDocumentToUser in interface org.exoplatform.wcm.ext.component.document.service.IShareDocumentServiceunpublishDocumentToUser in class org.exoplatform.wcm.ext.component.document.service.ShareDocumentServicepublic void unpublishDocumentToSpace(String groupId, org.exoplatform.services.jcr.core.ExtendedNode node)
unpublishDocumentToSpace in interface org.exoplatform.wcm.ext.component.document.service.IShareDocumentServiceunpublishDocumentToSpace in class org.exoplatform.wcm.ext.component.document.service.ShareDocumentServiceprotected org.exoplatform.clouddrive.CloudDrive findCloudDrive(javax.jcr.Node node)
protected <R> R applyInDrive(org.exoplatform.clouddrive.CloudDrive cloudDrive,
org.exoplatform.clouddrive.CloudDriveStorage.Change<R> change)
protected void shareInDrive(javax.jcr.Node node,
org.exoplatform.clouddrive.CloudDrive localDrive,
String identity)
node - the cloud file nodelocalDrive - the local driveidentity - the identityprotected void unshareInDrive(javax.jcr.Node node,
org.exoplatform.clouddrive.CloudDrive localDrive,
String identity)
node - the cloud file nodelocalDrive - the local driveidentity - the identityCopyright © 2003–2018 eXo Platform SAS. All rights reserved.