@ApiController public class WorkObjectDefinitionController extends Object
Provides public REST API for com.edorasware.commons.core.entity.WorkObjectDefinition manipulation
| Constructor and Description | 
|---|
WorkObjectDefinitionController(WorkObjectDefinitionManager workObjectDefinitionManager,
                              FormDefinitionManager formDefinitionManager)  | 
| Modifier and Type | Method and Description | 
|---|---|
QueryResponse | 
getEntityTemplatesByType(String modelId)
Returns all the work object definitions matching the provided query. 
 | 
ValueMap | 
getInstance(String workObjectDefinitionId,
           String view,
           List<String> fields)
Returns the work object definitions matching the id. 
 | 
Map<String,Object> | 
getWorkObjectDefinitionInitFormDefinition(String modelId,
                                         Locale locale)  | 
public WorkObjectDefinitionController(WorkObjectDefinitionManager workObjectDefinitionManager, FormDefinitionManager formDefinitionManager)
@RequestMapping(value={"/definitions","/v1/definitions"},
                method=GET,
                produces="application/json")
 @ResponseBody
public QueryResponse getEntityTemplatesByType(@RequestParam(required=true)
                                                                                                                                                                                                String modelId)
Returns all the work object definitions matching the provided query.
modelId - query definitions based on a global model id@RequestMapping(value={"/definitions/{workObjectDefinitionId}","/v1/definitions/{workObjectDefinitionId}"},
                method=GET,
                produces="application/json")
 @ResponseBody
public ValueMap getInstance(@PathVariable
                                                                                                                                                                                                                                String workObjectDefinitionId,
                                                                                                                                                                                                                                @RequestParam(required=false)
                                                                                                                                                                                                                                String view,
                                                                                                                                                                                                                                @RequestParam(required=false)
                                                                                                                                                                                                                                List<String> fields)
Returns the work object definitions matching the id.
workObjectDefinitionId - query definitions based on a global model id@ResponseBody
 @RequestMapping(value={"/definitions/{modelId}/init-form","/v1/definitions/{modelId}/init-form"},
                method=GET,
                produces="application/json")
public Map<String,Object> getWorkObjectDefinitionInitFormDefinition(@PathVariable
                                                                                                                                                                                                                                                              String modelId,
                                                                                                                                                                                                                                                              Locale locale)
                                                                                                                                                                                                                                                       throws Exception
ExceptionCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.