Interface QuickShareService
- All Known Implementing Classes:
QuickShareServiceImpl
public interface QuickShareService
The QuickShare service.
Responsible for creating, updating and retrieving Quick share metadata,
- Since:
- Cloud/4.2
- Author:
- Alex Miller, janv
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanDeleteSharedLink(NodeRef nodeRef, String sharedByUserId) Determine if the current user has permission to delete the shared link.booleanDetermine if the current user has permission to read the shared content.voiddeleteQuickShareLinkExpiryAction(QuickShareLinkExpiryAction quickShareLinkExpiryAction) Removes (hard deletes) the previously persistedQuickShareLinkExpiryActionand its related scheduleScheduledPersistedActionfrom the repository.getMetaData(String shareId) Get QuickShare related metadata for the given shareId.getMetaData(NodeRef nodeRef) Get QuickShare related metadata for the given node.getTenantNodeRefFromSharedId(String sharedId) Get the tenant domain and node reference for the the given share id.booleanWhether the quick share is enabled or not.voidNotifies users by email that a content has been shared with them, and the details of it.shareContent(NodeRef nodeRef) Share content identified by nodeRef.shareContent(NodeRef nodeRef, Date expiryDate) Share content identified by nodeRef and optionally set an expiry date for the shared link.voidunshareContent(String sharedId) Unshare the content identified by sharedId
-
Method Details
-
getMetaData
Map<String,Object> getMetaData(NodeRef nodeRef) throws QuickShareDisabledException, InvalidNodeRefException Get QuickShare related metadata for the given node.- Parameters:
nodeRef- NodeRef- Returns:
- Map
- Throws:
QuickShareDisabledExceptionInvalidNodeRefException
-
getMetaData
Map<String,Object> getMetaData(String shareId) throws QuickShareDisabledException, InvalidSharedIdException Get QuickShare related metadata for the given shareId.- Parameters:
shareId- String- Returns:
- Map
- Throws:
QuickShareDisabledExceptionInvalidSharedIdException
-
canRead
Determine if the current user has permission to read the shared content.