public class QuickShareLinksImpl extends Object implements QuickShareLinks, RecognizedParamsExtractor, org.springframework.beans.factory.InitializingBean
PARAM_INCLUDE_ALLOWABLEOPERATIONS, PARAM_INCLUDE_PATH, PARAM_SHAREDBY
KNOWN_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, wait
findPaging, getClause, getFilter, getFilter, getIncludeClause, getPaging, getRecognizedParams, getRelationFilter, getRequestParameters, getSelectClause, getSort, getWhereClause, rpeLogger
public 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.InitializingBean
public QuickShareLink readById(String sharedId, Parameters parameters)
Note: does *not* require authenticated access for (public) shared link.
readById
in interface QuickShareLinks
public BinaryResource readProperty(String sharedId, String renditionId, Parameters parameters) throws EntityNotFoundException
Note: does *not* require authenticated access for (public) shared link.
readProperty
in interface QuickShareLinks
sharedId
- renditionId
- - optionalparameters
- Parameters
EntityNotFoundException
public 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 QuickShareLinks
sharedId
- String id of the quick sharepublic List<QuickShareLink> create(List<QuickShareLink> nodeIds, Parameters parameters)
Requires authenticated access.
create
in interface QuickShareLinks
nodeIds
- parameters
- public void emailSharedLink(String sharedId, QuickShareLinkEmailRequest emailRequest, Parameters parameters)
QuickShareLinks
emailSharedLink
in interface QuickShareLinks
sharedId
- 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)
QuickShareLinks
getRendition
in interface QuickShareLinks
Rendition
objectpublic CollectionWithPagingInfo<Rendition> getRenditions(String sharedId)
QuickShareLinks
getRenditions
in interface QuickShareLinks
public CollectionWithPagingInfo<QuickShareLink> findLinks(Parameters parameters)
QuickShareLinks
findLinks
in interface QuickShareLinks
Copyright © 2005–2018 Alfresco Software. All rights reserved.