public interface WorkObjectManager
Manages operations on WorkObject
s
Modifier and Type | Method and Description |
---|---|
WorkObject |
createWorkObject(String typeParam,
ValueMap workObjectData)
Creates work object
|
void |
deleteWorkObject(String type,
String workObjectId)
Delete given work object
|
QueryResponse |
findWorkObjectChildren(String parentId,
String type,
String query,
Integer offset,
Integer limit,
ViewFilter view,
Collection<String> fields)
Finds child work objects of the given parent id and given type according to the query with offset and limit
|
QueryResponse |
findWorkObjects(String type,
String query,
Integer offset,
Integer limit,
ViewFilter view,
Collection<String> fields)
Finds work objects of the given type according to the query with offset and limit
|
ValueMap |
getWorkObject(String ambiguousId,
ViewFilter view,
Collection<String> fields,
String... expectedTypes)
Find the work object by ambiguousId
|
Map<String,Object> |
getWorkObjectWorkForm(String workObjectAmbiguousId,
Locale locale)
Gets the work form of the work object by model global id or work object id
|
WorkObject |
updateWorkObject(String type,
String workObjectId,
ValueMap workObjectData)
Updates given values on the work object instance
|
ValueMap getWorkObject(String ambiguousId, ViewFilter view, Collection<String> fields, String... expectedTypes)
Find the work object by ambiguousId
ambiguousId
- work object ambiguousIdview
- view to apply to the responsefields
- fields to add to the responseexpectedTypes
- types which the returned workObject is expected of. In the case of empty collection any type is acceptableQueryResponse findWorkObjects(String type, String query, Integer offset, Integer limit, ViewFilter view, Collection<String> fields)
Finds work objects of the given type according to the query with offset and limit
type
- work object type to search forquery
- query to performoffset
- the start of the rows to fetchlimit
- the size of fetched dataview
- view to apply to the responsefields
- fields to add to the responseQueryResponse findWorkObjectChildren(String parentId, String type, String query, Integer offset, Integer limit, ViewFilter view, Collection<String> fields)
Finds child work objects of the given parent id and given type according to the query with offset and limit
parentId
- parent work object idtype
- work object type to search forquery
- query to performoffset
- the start of the rows to fetchlimit
- the size of fetched dataview
- view to apply to the responsefields
- fields to add to the responseMap<String,Object> getWorkObjectWorkForm(String workObjectAmbiguousId, Locale locale)
Gets the work form of the work object by model global id or work object id
workObjectAmbiguousId
- model global id or work object idlocale
- the locale to be used for translationWorkObject createWorkObject(String typeParam, ValueMap workObjectData)
Creates work object
typeParam
- work object typeworkObjectData
- work object data templateWorkObject updateWorkObject(String type, String workObjectId, ValueMap workObjectData)
Updates given values on the work object instance
type
- work object type to updateworkObjectId
- work object IdworkObjectData
- work object values to updateCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.