public interface QuickShareService
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDeleteSharedLink(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String sharedByUserId)
Determine if the current user has permission to delete the shared link.
|
boolean |
canRead(String sharedId)
Determine if the current user has permission to read the shared content.
|
void |
deleteQuickShareLinkExpiryAction(QuickShareLinkExpiryAction quickShareLinkExpiryAction)
Removes (hard deletes) the previously persisted
QuickShareLinkExpiryAction and its related
schedule ScheduledPersistedAction from the repository. |
Map<String,Object> |
getMetaData(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Get QuickShare related metadata for the given node.
|
Map<String,Object> |
getMetaData(String shareId)
Get QuickShare related metadata for the given shareId.
|
org.alfresco.util.Pair<String,org.alfresco.service.cmr.repository.NodeRef> |
getTenantNodeRefFromSharedId(String sharedId)
Get the tenant domain and node reference for the the given share id.
|
boolean |
isQuickShareEnabled()
Whether the quick share is enabled or not.
|
void |
sendEmailNotification(QuickShareServiceImpl.QuickShareEmailRequest emailRequest)
Notifies users by email that a content has been shared with them, and the details of it.
|
QuickShareDTO |
shareContent(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Share content identified by nodeRef.
|
QuickShareDTO |
shareContent(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Date expiryDate)
Share content identified by nodeRef and optionally set an expiry date for the shared link.
|
void |
unshareContent(String sharedId)
Unshare the content identified by sharedId
|
QuickShareDTO shareContent(org.alfresco.service.cmr.repository.NodeRef nodeRef) throws QuickShareDisabledException, org.alfresco.service.cmr.repository.InvalidNodeRefException
nodeRef - The NodeRef of the content to shareQuickShareDisabledExceptionorg.alfresco.service.cmr.repository.InvalidNodeRefExceptionQuickShareDTO shareContent(org.alfresco.service.cmr.repository.NodeRef nodeRef, Date expiryDate) throws QuickShareDisabledException, org.alfresco.service.cmr.repository.InvalidNodeRefException
nodeRef - The NodeRef of the content to shareexpiryDate - The expiry date of the shared linkQuickShareDisabledExceptionorg.alfresco.service.cmr.repository.InvalidNodeRefExceptionMap<String,Object> getMetaData(org.alfresco.service.cmr.repository.NodeRef nodeRef) throws QuickShareDisabledException, org.alfresco.service.cmr.repository.InvalidNodeRefException
nodeRef - NodeRefQuickShareDisabledExceptionorg.alfresco.service.cmr.repository.InvalidNodeRefExceptionMap<String,Object> getMetaData(String shareId) throws QuickShareDisabledException, InvalidSharedIdException
shareId - StringQuickShareDisabledExceptionInvalidSharedIdExceptionorg.alfresco.util.Pair<String,org.alfresco.service.cmr.repository.NodeRef> getTenantNodeRefFromSharedId(String sharedId) throws QuickShareDisabledException, InvalidSharedIdException
sharedId - StringQuickShareDisabledExceptionInvalidSharedIdExceptionvoid unshareContent(String sharedId) throws QuickShareDisabledException, InvalidSharedIdException
sharedId - The shared id of the content to unshare.QuickShareDisabledExceptionInvalidSharedIdExceptionboolean canRead(String sharedId)
void sendEmailNotification(QuickShareServiceImpl.QuickShareEmailRequest emailRequest)
emailRequest - The email details including its template detailsboolean canDeleteSharedLink(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String sharedByUserId)
boolean isQuickShareEnabled()
void deleteQuickShareLinkExpiryAction(QuickShareLinkExpiryAction quickShareLinkExpiryAction)
QuickShareLinkExpiryAction and its related
schedule ScheduledPersistedAction from the repository.quickShareLinkExpiryAction - The QuickShareLinkExpiryAction to be deleted.Copyright © 2005–2018 Alfresco Software. All rights reserved.