Class GetTraitsHandler
- java.lang.Object
-
- uk.gov.gchq.gaffer.store.operation.handler.GetTraitsHandler
-
- All Implemented Interfaces:
OperationHandler<GetTraits>,OutputOperationHandler<GetTraits,Set<StoreTrait>>
public class GetTraitsHandler extends Object implements OutputOperationHandler<GetTraits,Set<StoreTrait>>
-
-
Constructor Summary
Constructors Constructor Description GetTraitsHandler(Set<StoreTrait> storeTraits)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<StoreTrait>doOperation(GetTraits operation, Context context, Store store)Execute the givenOutputoperation.
-
-
-
Constructor Detail
-
GetTraitsHandler
public GetTraitsHandler(Set<StoreTrait> storeTraits)
-
-
Method Detail
-
doOperation
public Set<StoreTrait> doOperation(GetTraits operation, Context context, Store store) throws OperationException
Description copied from interface:OutputOperationHandlerExecute the givenOutputoperation.- Specified by:
doOperationin interfaceOperationHandler<GetTraits>- Specified by:
doOperationin interfaceOutputOperationHandler<GetTraits,Set<StoreTrait>>- Parameters:
operation- theOutputoperation to be executedcontext- the operation chain context, containing the user who executed the operationstore- theStorethe operation should be run on- Returns:
- the output for the operation.
- Throws:
OperationException- thrown if the operation fails
-
-