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 singletonGraphgenerated 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.ObjectMappermapper
-
Constructor Summary
Constructors Constructor Description OperationServiceV2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Responseexecute(Operation operation)javax.ws.rs.core.ResponseexecuteChunked(Operation operation)javax.ws.rs.core.ResponseexecuteChunkedChain(OperationChain opChain)javax.ws.rs.core.ResponsegetOperationDetails()javax.ws.rs.core.ResponsegetOperations()javax.ws.rs.core.ResponsenextOperations(String operationClassName)javax.ws.rs.core.ResponseoperationDetails(String className)javax.ws.rs.core.ResponseoperationExample(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:
getOperationsin interfaceIOperationServiceV2
-
getOperationDetails
public javax.ws.rs.core.Response getOperationDetails()
- Specified by:
getOperationDetailsin interfaceIOperationServiceV2
-
execute
public javax.ws.rs.core.Response execute(Operation operation)
- Specified by:
executein interfaceIOperationServiceV2
-
executeChunked
public javax.ws.rs.core.Response executeChunked(Operation operation)
- Specified by:
executeChunkedin interfaceIOperationServiceV2
-
executeChunkedChain
public javax.ws.rs.core.Response executeChunkedChain(OperationChain opChain)
- Specified by:
executeChunkedChainin interfaceIOperationServiceV2
-
operationDetails
public javax.ws.rs.core.Response operationDetails(String className) throws InstantiationException, IllegalAccessException
- Specified by:
operationDetailsin interfaceIOperationServiceV2- Throws:
InstantiationExceptionIllegalAccessException
-
operationExample
public javax.ws.rs.core.Response operationExample(String className) throws InstantiationException, IllegalAccessException
- Specified by:
operationExamplein interfaceIOperationServiceV2- Throws:
InstantiationExceptionIllegalAccessException
-
nextOperations
public javax.ws.rs.core.Response nextOperations(String operationClassName)
- Specified by:
nextOperationsin interfaceIOperationServiceV2
-
-