Class OperationServiceV2
- java.lang.Object
-
- uk.gov.gchq.gaffer.rest.service.v2.AbstractOperationService
-
- uk.gov.gchq.gaffer.rest.service.v2.OperationServiceV2
-
- All Implemented Interfaces:
IOperationServiceV2
public class OperationServiceV2 extends AbstractOperationService implements IOperationServiceV2
An implementation ofIOperationServiceV2
. By default it will use a singletonGraph
generated using theGraphFactory
. All operations are simple delegated to the graph. Pre and post operation hooks are available by extending this class and implementing preOperationHook and/or postOperationHook.
-
-
Field Summary
Fields Modifier and Type Field Description com.fasterxml.jackson.databind.ObjectMapper
mapper
-
Constructor Summary
Constructors Constructor Description OperationServiceV2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
execute(Operation operation)
javax.ws.rs.core.Response
executeChunked(Operation operation)
javax.ws.rs.core.Response
executeChunkedChain(OperationChain opChain)
javax.ws.rs.core.Response
getOperationDetails()
javax.ws.rs.core.Response
getOperations()
javax.ws.rs.core.Response
nextOperations(String operationClassName)
javax.ws.rs.core.Response
operationDetails(String className)
javax.ws.rs.core.Response
operationExample(String className)
-
Methods inherited from class uk.gov.gchq.gaffer.rest.service.v2.AbstractOperationService
getSupportedOperationDetails, getSupportedOperationDetails, getSupportedOperations, getSupportedOperations
-
-
-
-
Method Detail
-
getOperations
public javax.ws.rs.core.Response getOperations()
- Specified by:
getOperations
in interfaceIOperationServiceV2
-
getOperationDetails
public javax.ws.rs.core.Response getOperationDetails()
- Specified by:
getOperationDetails
in interfaceIOperationServiceV2
-
execute
public javax.ws.rs.core.Response execute(Operation operation)
- Specified by:
execute
in interfaceIOperationServiceV2
-
executeChunked
public javax.ws.rs.core.Response executeChunked(Operation operation)
- Specified by:
executeChunked
in interfaceIOperationServiceV2
-
executeChunkedChain
public javax.ws.rs.core.Response executeChunkedChain(OperationChain opChain)
- Specified by:
executeChunkedChain
in interfaceIOperationServiceV2
-
operationDetails
public javax.ws.rs.core.Response operationDetails(String className) throws InstantiationException, IllegalAccessException
- Specified by:
operationDetails
in interfaceIOperationServiceV2
- Throws:
InstantiationException
IllegalAccessException
-
operationExample
public javax.ws.rs.core.Response operationExample(String className) throws InstantiationException, IllegalAccessException
- Specified by:
operationExample
in interfaceIOperationServiceV2
- Throws:
InstantiationException
IllegalAccessException
-
nextOperations
public javax.ws.rs.core.Response nextOperations(String operationClassName)
- Specified by:
nextOperations
in interfaceIOperationServiceV2
-
-