Class OperationController
- java.lang.Object
-
- uk.gov.gchq.gaffer.rest.service.v2.AbstractOperationService
-
- uk.gov.gchq.gaffer.rest.controller.OperationController
-
@RestController @RequestMapping("/rest/graph/operations") public class OperationController extends AbstractOperationService
-
-
Field Summary
Fields Modifier and Type Field Description com.fasterxml.jackson.databind.ObjectMapper
mapper
-
Constructor Summary
Constructors Constructor Description OperationController(GraphFactory graphFactory, AbstractUserFactory userFactory, ExamplesFactory examplesFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<Object>
execute(org.springframework.http.HttpHeaders httpHeaders, Operation operation)
org.springframework.http.ResponseEntity<org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody>
executeChunked(org.springframework.http.HttpHeaders httpHeaders, Operation operation)
Set<OperationDetail>
getAllOperationDetails()
Set<OperationDetail>
getAllOperationDetailsIncludingUnsupported()
Set<Class<? extends Operation>>
getNextOperations(String className)
OperationDetail
getOperationDetails(String className)
Operation
getOperationExample(String className)
Set<Class<? extends Operation>>
getOperations()
Set<Class<? extends Operation>>
getOperationsIncludingUnsupported()
-
Methods inherited from class uk.gov.gchq.gaffer.rest.service.v2.AbstractOperationService
getSupportedOperationDetails, getSupportedOperationDetails, getSupportedOperations, getSupportedOperations
-
-
-
-
Constructor Detail
-
OperationController
@Autowired public OperationController(GraphFactory graphFactory, AbstractUserFactory userFactory, ExamplesFactory examplesFactory)
-
-
Method Detail
-
getOperations
@GetMapping(produces="application/json") public Set<Class<? extends Operation>> getOperations()
-
getOperationsIncludingUnsupported
@GetMapping(path="/all", produces="application/json") public Set<Class<? extends Operation>> getOperationsIncludingUnsupported()
-
getAllOperationDetails
@GetMapping(path="/details", produces="application/json") public Set<OperationDetail> getAllOperationDetails()
-
getAllOperationDetailsIncludingUnsupported
@GetMapping(path="/details/all", produces="application/json") public Set<OperationDetail> getAllOperationDetailsIncludingUnsupported()
-
getOperationDetails
@GetMapping(value="{className}", produces="application/json") public OperationDetail getOperationDetails(@PathVariable("className") String className)
-
getNextOperations
@GetMapping(value="{className}/next", produces="application/json") public Set<Class<? extends Operation>> getNextOperations(@PathVariable("className") String className)
-
getOperationExample
@GetMapping(value="{className}/example", produces="application/json") public Operation getOperationExample(@PathVariable("className") String className)
-
execute
@PostMapping(path="/execute", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Object> execute(@RequestHeader org.springframework.http.HttpHeaders httpHeaders, @RequestBody Operation operation)
-
executeChunked
@PostMapping(path="/execute/chunked", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody> executeChunked(@RequestHeader org.springframework.http.HttpHeaders httpHeaders, @RequestBody Operation operation)
-
-