Class QuickShareLinkEntityResource
java.lang.Object
org.alfresco.rest.api.quicksharelinks.QuickShareLinkEntityResource
- All Implemented Interfaces:
BinaryResourceAction.Read,EntityResourceAction.Create<QuickShareLink>,EntityResourceAction.Delete,EntityResourceAction.Read<QuickShareLink>,EntityResourceAction.ReadById<QuickShareLink>,ResourceAction,org.springframework.beans.factory.InitializingBean
@EntityResource(name="shared-links",
title="Shared Links")
public class QuickShareLinkEntityResource
extends Object
implements EntityResourceAction.ReadById<QuickShareLink>, BinaryResourceAction.Read, EntityResourceAction.Delete, EntityResourceAction.Create<QuickShareLink>, EntityResourceAction.Read<QuickShareLink>, org.springframework.beans.factory.InitializingBean
An implementation of an Entity Resource for Shared Links.
- Author:
- janv, Jamal Kaabi-Mofrad
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(List<QuickShareLink> nodeIds, Parameters parameters) Create quick share.voiddelete(String sharedId, Parameters parameters) Delete the shared link.voidemail(String sharedId, QuickShareLinkEmailRequest emailRequest, Parameters parameters, WithResponse response) readAll(Parameters parameters) Find shared linksreadById(String sharedId, Parameters parameters) Returns limited metadata regarding the shared (content) link.readProperty(String sharedId, Parameters parameters) Download content via shared link.voidsetQuickShareLinks(QuickShareLinks quickShareLinks)
-
Constructor Details
-
QuickShareLinkEntityResource
public QuickShareLinkEntityResource()
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
readById
Returns limited metadata regarding the shared (content) link. Note: does *not* require authenticated access for (public) shared link.- Specified by:
readByIdin interfaceEntityResourceAction.ReadById<QuickShareLink>
-
readProperty
@WebApiNoAuth public BinaryResource readProperty(String sharedId, Parameters parameters) throws EntityNotFoundException Download content via shared link. Note: does *not* require authenticated access for (public) shared link.- Specified by:
readPropertyin interfaceBinaryResourceAction.Read- Parameters:
sharedId-parameters-Parameters- Returns:
- Throws:
EntityNotFoundException
-
delete
Delete the shared link. 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.- Specified by:
deletein interfaceEntityResourceAction.Delete- Parameters:
sharedId- String id of the quick share
-
create
Create quick share. Requires authenticated access.- Specified by:
createin interfaceEntityResourceAction.Create<QuickShareLink>- Parameters:
nodeIds-parameters-- Returns:
-
readAll
Find shared links- Specified by:
readAllin interfaceEntityResourceAction.Read<QuickShareLink>- Parameters:
parameters- - will never be null and will have the PAGING default values