@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 and Description |
---|
ProcessesRestEntityResource() |
Modifier and Type | Method and Description |
---|---|
List<ProcessInfo> |
create(List<ProcessInfo> entity,
Parameters parameters) |
void |
delete(String id,
Parameters parameters) |
CollectionWithPagingInfo<ProcessInfo> |
readAll(Parameters params)
Reads all the entries from the collection.
|
ProcessInfo |
readById(String id,
Parameters parameters) |
BinaryResource |
readProperty(String entityId,
Parameters parameters)
Retrieves a binary property by returning a BinaryResource object.
|
void |
setProcesses(Processes processes) |
public void setProcesses(Processes processes)
public List<ProcessInfo> create(List<ProcessInfo> entity, Parameters parameters)
create
in interface EntityResourceAction.Create<ProcessInfo>
public CollectionWithPagingInfo<ProcessInfo> readAll(Parameters params)
EntityResourceAction.Read
readAll
in interface EntityResourceAction.Read<ProcessInfo>
params
- - will never be null and will have the PAGING default valuespublic BinaryResource readProperty(String entityId, Parameters parameters) throws EntityNotFoundException
BinaryResourceAction.Read
Parameters
object.
See Parameters.hasBinaryProperty(String)
or Parameters.getBinaryProperty()
readProperty
in interface BinaryResourceAction.Read
entityId
- unique idparameters
- Parameters
FileBinaryResource
or NodeBinaryResource
EntityNotFoundException
public ProcessInfo readById(String id, Parameters parameters) throws EntityNotFoundException
readById
in interface EntityResourceAction.ReadById<ProcessInfo>
EntityNotFoundException
public void delete(String id, Parameters parameters)
delete
in interface EntityResourceAction.Delete
Copyright © 2005–2017 Alfresco Software. All rights reserved.