@Controller @Scope(value="session") @RequestMapping(value="api/command") public class CommandController extends Object
| Constructor and Description |
|---|
CommandController() |
| Modifier and Type | Method and Description |
|---|---|
org.openforis.commons.web.Response |
addAttribute(AddAttributeCommand command) |
Object |
addEntity(AddEntityCommand command) |
org.openforis.commons.web.Response |
addOrUpdateAttributes(org.openforis.collect.web.controller.CommandController.UpdateAttributesCommandWrapper commandsWrapper) |
org.openforis.commons.web.Response |
createRecord(CreateRecordCommand command) |
List<org.openforis.collect.web.controller.CommandController.RecordEventView> |
createRecordPreview(CreateRecordPreviewCommand command) |
Object |
deleteNode(DeleteNodeCommand command) |
org.openforis.commons.web.Response |
deleteRecord(DeleteRecordCommand command) |
Object |
updateAttribute(org.openforis.collect.web.controller.CommandController.UpdateAttributeCommandWrapper commandWrapper) |
@RequestMapping(value="record",
method=POST,
consumes="application/json")
@Transactional
@ResponseBody
public org.openforis.commons.web.Response createRecord(@RequestBody
CreateRecordCommand command)
@RequestMapping(value="record_preview",
method=POST,
consumes="application/json")
@ResponseBody
public List<org.openforis.collect.web.controller.CommandController.RecordEventView> createRecordPreview(@RequestBody
CreateRecordPreviewCommand command)
@RequestMapping(value="record",
method=DELETE,
consumes="application/json")
@Transactional
@ResponseBody
public org.openforis.commons.web.Response deleteRecord(@RequestBody
DeleteRecordCommand command)
@RequestMapping(value="record/attribute/new",
method=POST,
consumes="application/json")
@Transactional
@ResponseBody
public org.openforis.commons.web.Response addAttribute(@RequestBody
AddAttributeCommand command)
@RequestMapping(value="record/attributes",
method=POST,
consumes="application/json")
@Transactional
@ResponseBody
public org.openforis.commons.web.Response addOrUpdateAttributes(@RequestBody
org.openforis.collect.web.controller.CommandController.UpdateAttributesCommandWrapper commandsWrapper)
@RequestMapping(value="record/attribute",
method=POST,
consumes="application/json")
@Transactional
@ResponseBody
public Object updateAttribute(@RequestBody
org.openforis.collect.web.controller.CommandController.UpdateAttributeCommandWrapper commandWrapper)
@RequestMapping(value="record/entity",
method=POST,
consumes="application/json")
@Transactional
@ResponseBody
public Object addEntity(@RequestBody
AddEntityCommand command)
@RequestMapping(value="record/node",
method=DELETE,
consumes="application/json")
@Transactional
@ResponseBody
public Object deleteNode(@RequestBody
DeleteNodeCommand command)
Copyright © 2020 Open Foris. All rights reserved.