public class QuickShareLinksImpl extends Object implements QuickShareLinks, RecognizedParamsExtractor, org.springframework.beans.factory.InitializingBean
PARAM_INCLUDE_ALLOWABLEOPERATIONS, PARAM_INCLUDE_PATH, PARAM_SHAREDBYKNOWN_PARAMS, PARAM_FILTER_FIELDS, PARAM_FILTER_PROPERTIES, PARAM_INCLUDE, PARAM_INCLUDE_SOURCE_ENTITY, PARAM_ORDERBY, PARAM_PAGING_MAX, PARAM_PAGING_SKIP, PARAM_RELATIONS, PARAM_SELECT, PARAM_WHERE| Constructor and Description |
|---|
QuickShareLinksImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
List<QuickShareLink> |
create(List<QuickShareLink> nodeIds,
Parameters parameters)
Create quick share.
|
void |
delete(String sharedId,
Parameters parameters)
Delete the shared link.
|
void |
emailSharedLink(String sharedId,
QuickShareLinkEmailRequest emailRequest,
Parameters parameters)
Notifies users by email that a content has been shared with them.
|
CollectionWithPagingInfo<QuickShareLink> |
findLinks(Parameters parameters)
Find (search) for shared links visible to current user.
|
Rendition |
getRendition(String sharedId,
String renditionId)
Gets information about a rendition of a shared link.
|
CollectionWithPagingInfo<Rendition> |
getRenditions(String sharedId)
List renditions info - note: only returns available (=> created) renditions.
|
QuickShareLink |
readById(String sharedId,
Parameters parameters)
Returns limited metadata regarding the shared (content) link.
|
BinaryResource |
readProperty(String sharedId,
String renditionId,
Parameters parameters)
Download content via shared link.
|
void |
setEnabled(boolean enabled) |
void |
setNodes(Nodes nodes) |
void |
setQuickShareService(org.alfresco.service.cmr.quickshare.QuickShareService quickShareService) |
void |
setRenditions(Renditions renditions) |
void |
setServiceRegistry(org.alfresco.service.ServiceRegistry sr) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindPaging, getClause, getFilter, getFilter, getIncludeClause, getPaging, getRecognizedParams, getRelationFilter, getRequestParameters, getSelectClause, getSort, getWhereClause, rpeLoggerpublic void setServiceRegistry(org.alfresco.service.ServiceRegistry sr)
public void setQuickShareService(org.alfresco.service.cmr.quickshare.QuickShareService quickShareService)
public void setNodes(Nodes nodes)
public void setRenditions(Renditions renditions)
public void setEnabled(boolean enabled)
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic QuickShareLink readById(String sharedId, Parameters parameters)
Note: does *not* require authenticated access for (public) shared link.
readById in interface QuickShareLinkspublic BinaryResource readProperty(String sharedId, String renditionId, Parameters parameters) throws EntityNotFoundException
Note: does *not* require authenticated access for (public) shared link.
readProperty in interface QuickShareLinkssharedId - renditionId - - optionalparameters - ParametersEntityNotFoundExceptionpublic void delete(String sharedId, Parameters parameters)
Once deleted, the shared link will no longer exist hence get/download will no longer work (ie. return 404). If the link is later re-created then a new unique shared id will be generated.
Requires authenticated access.
delete in interface QuickShareLinkssharedId - String id of the quick sharepublic List<QuickShareLink> create(List<QuickShareLink> nodeIds, Parameters parameters)
Requires authenticated access.
create in interface QuickShareLinksnodeIds - parameters - public void emailSharedLink(String sharedId, QuickShareLinkEmailRequest emailRequest, Parameters parameters)
QuickShareLinksemailSharedLink in interface QuickShareLinkssharedId - The string id of the quick shareemailRequest - The email details including its template detailsparameters - The Parameters object to get the parameters passed into the requestpublic Rendition getRendition(String sharedId, String renditionId)
QuickShareLinksgetRendition in interface QuickShareLinksRendition objectpublic CollectionWithPagingInfo<Rendition> getRenditions(String sharedId)
QuickShareLinksgetRenditions in interface QuickShareLinkspublic CollectionWithPagingInfo<QuickShareLink> findLinks(Parameters parameters)
QuickShareLinksfindLinks in interface QuickShareLinksCopyright © 2005–2018 Alfresco Software. All rights reserved.