public interface QuickShareService
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead(String sharedId)
Determine if the current user has permission to read the shared content.
|
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.
|
QuickShareDTO |
shareContent(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Share content identified by nodeRef.
|
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.InvalidNodeRefExceptionMap<String,Object> getMetaData(org.alfresco.service.cmr.repository.NodeRef nodeRef) throws QuickShareDisabledException, org.alfresco.service.cmr.repository.InvalidNodeRefException
nodeRef - QuickShareDisabledExceptionorg.alfresco.service.cmr.repository.InvalidNodeRefExceptionMap<String,Object> getMetaData(String shareId) throws QuickShareDisabledException, InvalidSharedIdException
shareId - QuickShareDisabledExceptionInvalidSharedIdExceptionorg.alfresco.util.Pair<String,org.alfresco.service.cmr.repository.NodeRef> getTenantNodeRefFromSharedId(String sharedId) throws QuickShareDisabledException, InvalidSharedIdException
sharedId - QuickShareDisabledExceptionInvalidSharedIdExceptionvoid unshareContent(String sharedId) throws QuickShareDisabledException, InvalidSharedIdException
sharedId - The shared id of the content to unshare.QuickShareDisabledExceptionInvalidSharedIdExceptionboolean canRead(String sharedId)
Copyright © 2005–2014 Alfresco Software. All rights reserved.