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) void
delete
(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.void
setProcesses
(Processes processes)
-
Constructor Details
-
ProcessesRestEntityResource
public ProcessesRestEntityResource()
-
-
Method Details
-
setProcesses
-
create
- Specified by:
create
in interfaceEntityResourceAction.Create<ProcessInfo>
-
readAll
Description copied from interface:EntityResourceAction.Read
Reads all the entries from the collection. Paging information is provided.- Specified by:
readAll
in 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.Read
Retrieves a binary property by returning a BinaryResource object. The specific property is specified in theParameters
object. SeeParameters.hasBinaryProperty(String)
orParameters.getBinaryProperty()
- Specified by:
readProperty
in interfaceBinaryResourceAction.Read
- Parameters:
entityId
- unique idparameters
-Parameters
- Returns:
- BinaryResource - Either
FileBinaryResource
orNodeBinaryResource
- Throws:
EntityNotFoundException
-
readById
- Specified by:
readById
in interfaceEntityResourceAction.ReadById<ProcessInfo>
- Throws:
EntityNotFoundException
-
delete
- Specified by:
delete
in interfaceEntityResourceAction.Delete
-