Class ProcessDefinitionsRestEntityResource
- java.lang.Object
-
- org.alfresco.rest.workflow.api.processdefinitions.ProcessDefinitionsRestEntityResource
-
- All Implemented Interfaces:
BinaryResourceAction.Read
,EntityResourceAction.Read<ProcessDefinition>
,EntityResourceAction.ReadById<ProcessDefinition>
,ResourceAction
@EntityResource(name="process-definitions", title="Process definitions") public class ProcessDefinitionsRestEntityResource extends java.lang.Object implements EntityResourceAction.Read<ProcessDefinition>, EntityResourceAction.ReadById<ProcessDefinition>, BinaryResourceAction.Read
-
-
Constructor Summary
Constructors Constructor Description ProcessDefinitionsRestEntityResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectionWithPagingInfo<ProcessDefinition>
readAll(Parameters params)
Reads all the entries from the collection.ProcessDefinition
readById(java.lang.String id, Parameters parameters)
BinaryResource
readProperty(java.lang.String id, Parameters parameters)
Retrieves a binary property by returning a BinaryResource object.void
setProcessDefinitions(ProcessDefinitions processDefinitions)
-
-
-
Method Detail
-
setProcessDefinitions
public void setProcessDefinitions(ProcessDefinitions processDefinitions)
-
readAll
public CollectionWithPagingInfo<ProcessDefinition> 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<ProcessDefinition>
- Parameters:
params
- - will never be null and will have the PAGING default values
-
readById
public ProcessDefinition readById(java.lang.String id, Parameters parameters) throws EntityNotFoundException
- Specified by:
readById
in interfaceEntityResourceAction.ReadById<ProcessDefinition>
- Throws:
EntityNotFoundException
-
readProperty
public BinaryResource readProperty(java.lang.String id, 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:
id
- unique idparameters
-Parameters
- Returns:
- BinaryResource - Either
FileBinaryResource
orNodeBinaryResource
- Throws:
EntityNotFoundException
-
-