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 givenOutput
operation.
-
-
-
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:OutputOperationHandler
Execute the givenOutput
operation.- Specified by:
doOperation
in interfaceOperationHandler<GetTraits>
- Specified by:
doOperation
in interfaceOutputOperationHandler<GetTraits,Set<StoreTrait>>
- Parameters:
operation
- theOutput
operation to be executedcontext
- the operation chain context, containing the user who executed the operationstore
- theStore
the operation should be run on- Returns:
- the output for the operation.
- Throws:
OperationException
- thrown if the operation fails
-
-