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 TypeMethodDescriptionvoid
create
(List<QuickShareLink> nodeIds, Parameters parameters) Create quick share.void
delete
(String sharedId, Parameters parameters) Delete the shared link.void
email
(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.void
setQuickShareLinks
(QuickShareLinks quickShareLinks)
-
Constructor Details
-
QuickShareLinkEntityResource
public QuickShareLinkEntityResource()
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in 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:
readById
in 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:
readProperty
in 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:
delete
in interfaceEntityResourceAction.Delete
- Parameters:
sharedId
- String id of the quick share
-
create
Create quick share. Requires authenticated access.- Specified by:
create
in interfaceEntityResourceAction.Create<QuickShareLink>
- Parameters:
nodeIds
-parameters
-- Returns:
-
readAll
Find shared links- Specified by:
readAll
in interfaceEntityResourceAction.Read<QuickShareLink>
- Parameters:
parameters
- - will never be null and will have the PAGING default values