@EntityResource(name="process-definitions", title="Process definitions") public class ProcessDefinitionsRestEntityResource extends Object implements EntityResourceAction.Read<ProcessDefinition>, EntityResourceAction.ReadById<ProcessDefinition>, BinaryResourceAction.Read
Constructor and Description |
---|
ProcessDefinitionsRestEntityResource() |
Modifier and Type | Method and Description |
---|---|
CollectionWithPagingInfo<ProcessDefinition> |
readAll(Parameters params)
Reads all the entries from the collection.
|
ProcessDefinition |
readById(String id,
Parameters parameters) |
BinaryResource |
readProperty(String id,
Parameters parameters)
Retrieves a binary property by returning a BinaryResource object.
|
void |
setProcessDefinitions(ProcessDefinitions processDefinitions) |
public ProcessDefinitionsRestEntityResource()
public void setProcessDefinitions(ProcessDefinitions processDefinitions)
public CollectionWithPagingInfo<ProcessDefinition> readAll(Parameters params)
EntityResourceAction.Read
readAll
in interface EntityResourceAction.Read<ProcessDefinition>
params
- - will never be null and will have the PAGING default valuespublic ProcessDefinition readById(String id, Parameters parameters) throws EntityNotFoundException
readById
in interface EntityResourceAction.ReadById<ProcessDefinition>
EntityNotFoundException
public BinaryResource readProperty(String id, Parameters parameters) throws EntityNotFoundException
BinaryResourceAction.Read
Parameters
object.
See Parameters.hasBinaryProperty(String)
or Parameters.getBinaryProperty()
readProperty
in interface BinaryResourceAction.Read
id
- unique idparameters
- Parameters
FileBinaryResource
or NodeBinaryResource
EntityNotFoundException
Copyright © 2005–2017 Alfresco Software. All rights reserved.