Package org.alfresco.rm.rest.api.records
Class RecordsEntityResource
java.lang.Object
org.alfresco.rm.rest.api.records.RecordsEntityResource
- All Implemented Interfaces:
BinaryResourceAction.Read,EntityResourceAction.Delete,EntityResourceAction.ReadById<Record>,EntityResourceAction.Update<Record>,ResourceAction,org.springframework.beans.factory.InitializingBean
@EntityResource(name="records",
title="Records")
public class RecordsEntityResource
extends Object
implements BinaryResourceAction.Read, EntityResourceAction.ReadById<Record>, EntityResourceAction.Delete, EntityResourceAction.Update<Record>, org.springframework.beans.factory.InitializingBean
An implementation of an Entity Resource for a record
- Since:
- 2.6
- Author:
- Ana Bozianu, Tuna Aksoy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompleteRecord(String recordId, Void body, Parameters parameters, WithResponse withResponse) voiddelete(String recordId, Parameters parameters) fileRecord(String recordId, TargetContainer target, Parameters parameters, WithResponse withResponse) readById(String recordId, Parameters parameters) readProperty(String recordId, Parameters parameters) Download contentvoidsetApiUtils(FilePlanComponentsApiUtils apiUtils) voidsetFileFolderService(FileFolderService fileFolderService) voidsetNodeService(NodeService nodeService) voidsetNodesModelFactory(ApiNodesModelFactory nodesModelFactory) voidsetRecordService(RecordService recordService) voidsetTransactionService(TransactionService transactionService) update(String recordId, Record recordInfo, Parameters parameters)
-
Constructor Details
-
RecordsEntityResource
public RecordsEntityResource()
-
-
Method Details
-
setNodesModelFactory
-
setApiUtils
-
setRecordService
-
setNodeService
-
setFileFolderService
-
setTransactionService
-
readProperty
public BinaryResource readProperty(String recordId, Parameters parameters) throws EntityNotFoundException Download content- Specified by:
readPropertyin interfaceBinaryResourceAction.Read- Parameters:
recordId- the id of the record to get the content fromparameters-Parameters- Returns:
- binary content resource
- Throws:
EntityNotFoundException
-
fileRecord
public Record fileRecord(String recordId, TargetContainer target, Parameters parameters, WithResponse withResponse) -
readById
- Specified by:
readByIdin interfaceEntityResourceAction.ReadById<Record>
-
update
- Specified by:
updatein interfaceEntityResourceAction.Update<Record>
-
completeRecord
public Record completeRecord(String recordId, Void body, Parameters parameters, WithResponse withResponse) -
delete
- Specified by:
deletein interfaceEntityResourceAction.Delete
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-