Class ProcessesRestEntityResource
java.lang.Object
org.alfresco.rest.workflow.api.processes.ProcessesRestEntityResource
- All Implemented Interfaces:
BinaryResourceAction.Read,EntityResourceAction.Create<ProcessInfo>,EntityResourceAction.Delete,EntityResourceAction.Read<ProcessInfo>,EntityResourceAction.ReadById<ProcessInfo>,ResourceAction
@EntityResource(name="processes",
title="Processes")
public class ProcessesRestEntityResource
extends Object
implements EntityResourceAction.Read<ProcessInfo>, EntityResourceAction.ReadById<ProcessInfo>, EntityResourceAction.Create<ProcessInfo>, EntityResourceAction.Delete, BinaryResourceAction.Read
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(List<ProcessInfo> entity, Parameters parameters) voiddelete(String id, Parameters parameters) readAll(Parameters params) Reads all the entries from the collection.readById(String id, Parameters parameters) readProperty(String entityId, Parameters parameters) Retrieves a binary property by returning a BinaryResource object.voidsetProcesses(Processes processes)
-
Constructor Details
-
ProcessesRestEntityResource
public ProcessesRestEntityResource()
-
-
Method Details
-
setProcesses
-
create
- Specified by:
createin interfaceEntityResourceAction.Create<ProcessInfo>
-
readAll
Description copied from interface:EntityResourceAction.ReadReads all the entries from the collection. Paging information is provided.- Specified by:
readAllin interfaceEntityResourceAction.Read<ProcessInfo>- Parameters:
params- - will never be null and will have the PAGING default values
-
readProperty
public BinaryResource readProperty(String entityId, Parameters parameters) throws EntityNotFoundException Description copied from interface:BinaryResourceAction.ReadRetrieves a binary property by returning a BinaryResource object. The specific property is specified in theParametersobject. SeeParameters.hasBinaryProperty(String)orParameters.getBinaryProperty()- Specified by:
readPropertyin interfaceBinaryResourceAction.Read- Parameters:
entityId- unique idparameters-Parameters- Returns:
- BinaryResource - Either
FileBinaryResourceorNodeBinaryResource - Throws:
EntityNotFoundException
-
readById
- Specified by:
readByIdin interfaceEntityResourceAction.ReadById<ProcessInfo>- Throws:
EntityNotFoundException
-
delete
- Specified by:
deletein interfaceEntityResourceAction.Delete
-