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 java.lang.Object implements EntityResourceAction.Read<ProcessInfo>, EntityResourceAction.ReadById<ProcessInfo>, EntityResourceAction.Create<ProcessInfo>, EntityResourceAction.Delete, BinaryResourceAction.Read
-
-
Constructor Summary
Constructors Constructor Description ProcessesRestEntityResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ProcessInfo>
create(java.util.List<ProcessInfo> entity, Parameters parameters)
void
delete(java.lang.String id, Parameters parameters)
CollectionWithPagingInfo<ProcessInfo>
readAll(Parameters params)
Reads all the entries from the collection.ProcessInfo
readById(java.lang.String id, Parameters parameters)
BinaryResource
readProperty(java.lang.String entityId, Parameters parameters)
Retrieves a binary property by returning a BinaryResource object.void
setProcesses(Processes processes)
-
-
-
Method Detail
-
setProcesses
public void setProcesses(Processes processes)
-
create
public java.util.List<ProcessInfo> create(java.util.List<ProcessInfo> entity, Parameters parameters)
- Specified by:
create
in interfaceEntityResourceAction.Create<ProcessInfo>
-
readAll
public CollectionWithPagingInfo<ProcessInfo> readAll(Parameters params)
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(java.lang.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
public ProcessInfo readById(java.lang.String id, Parameters parameters) throws EntityNotFoundException
- Specified by:
readById
in interfaceEntityResourceAction.ReadById<ProcessInfo>
- Throws:
EntityNotFoundException
-
delete
public void delete(java.lang.String id, Parameters parameters)
- Specified by:
delete
in interfaceEntityResourceAction.Delete
-
-