@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
Constructor and Description |
---|
QuickShareLinkEntityResource() |
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 |
email(String sharedId,
QuickShareLinkEmailRequest emailRequest,
Parameters parameters,
WithResponse response) |
CollectionWithPagingInfo<QuickShareLink> |
readAll(Parameters parameters)
Find shared links
|
QuickShareLink |
readById(String sharedId,
Parameters parameters)
Returns limited metadata regarding the shared (content) link.
|
BinaryResource |
readProperty(String sharedId,
Parameters parameters)
Download content via shared link.
|
void |
setQuickShareLinks(QuickShareLinks quickShareLinks) |
public void setQuickShareLinks(QuickShareLinks quickShareLinks)
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
@WebApiNoAuth public QuickShareLink readById(String sharedId, Parameters parameters)
readById
in interface EntityResourceAction.ReadById<QuickShareLink>
@WebApiNoAuth public BinaryResource readProperty(String sharedId, Parameters parameters) throws EntityNotFoundException
readProperty
in interface BinaryResourceAction.Read
sharedId
- parameters
- Parameters
EntityNotFoundException
public void delete(String sharedId, Parameters parameters)
delete
in interface EntityResourceAction.Delete
sharedId
- String id of the quick sharepublic List<QuickShareLink> create(List<QuickShareLink> nodeIds, Parameters parameters)
create
in interface EntityResourceAction.Create<QuickShareLink>
nodeIds
- parameters
- public void email(String sharedId, QuickShareLinkEmailRequest emailRequest, Parameters parameters, WithResponse response)
public CollectionWithPagingInfo<QuickShareLink> readAll(Parameters parameters)
readAll
in interface EntityResourceAction.Read<QuickShareLink>
parameters
- - will never be null and will have the PAGING default valuesCopyright © 2005–2017 Alfresco Software. All rights reserved.