public interface QuickShareService
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDeleteSharedLink(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(NodeRef nodeRef)
Get QuickShare related metadata for the given node.
|
Map<String,Object> |
getMetaData(String shareId)
Get QuickShare related metadata for the given shareId.
|
Pair<String,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(NodeRef nodeRef)
Share content identified by nodeRef.
|
QuickShareDTO |
shareContent(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(NodeRef nodeRef) throws QuickShareDisabledException, InvalidNodeRefException
nodeRef - The NodeRef of the content to shareQuickShareDisabledExceptionInvalidNodeRefExceptionQuickShareDTO shareContent(NodeRef nodeRef, Date expiryDate) throws QuickShareDisabledException, InvalidNodeRefException
nodeRef - The NodeRef of the content to shareexpiryDate - The expiry date of the shared linkQuickShareDisabledExceptionInvalidNodeRefExceptionMap<String,Object> getMetaData(NodeRef nodeRef) throws QuickShareDisabledException, InvalidNodeRefException
nodeRef - NodeRefQuickShareDisabledExceptionInvalidNodeRefExceptionMap<String,Object> getMetaData(String shareId) throws QuickShareDisabledException, InvalidSharedIdException
shareId - StringQuickShareDisabledExceptionInvalidSharedIdExceptionPair<String,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(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–2021 Alfresco Software. All rights reserved.