Class DeleteNamedOperationHandler
- java.lang.Object
-
- uk.gov.gchq.gaffer.store.operation.handler.named.DeleteNamedOperationHandler
-
- All Implemented Interfaces:
OperationHandler<DeleteNamedOperation>
public class DeleteNamedOperationHandler extends Object implements OperationHandler<DeleteNamedOperation>
Operation Handler for DeleteNamedOperation.
-
-
Constructor Summary
Constructors Constructor Description DeleteNamedOperationHandler(String suffixNamedOperationCacheName)
DeleteNamedOperationHandler(NamedOperationCache cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Void
doOperation(DeleteNamedOperation operation, Context context, Store store)
Deletes a NamedOperation from the cache specified in the Operations Declarations file (assuming the user has write privileges on the specified NamedOperation).String
getSuffixCacheName()
-
-
-
Constructor Detail
-
DeleteNamedOperationHandler
public DeleteNamedOperationHandler(String suffixNamedOperationCacheName)
-
DeleteNamedOperationHandler
public DeleteNamedOperationHandler(NamedOperationCache cache)
-
-
Method Detail
-
getSuffixCacheName
public String getSuffixCacheName()
-
doOperation
public Void doOperation(DeleteNamedOperation operation, Context context, Store store) throws OperationException
Deletes a NamedOperation from the cache specified in the Operations Declarations file (assuming the user has write privileges on the specified NamedOperation). The user needs only to provide the name of the operation they want to delete.- Specified by:
doOperation
in interfaceOperationHandler<DeleteNamedOperation>
- Parameters:
operation
- theOperation
to be executedcontext
- the operation chain context, containing the user who executed the operationstore
- theStore
the operation should be run on- Returns:
- null (as output of this operation is void)
- Throws:
OperationException
- thrown if the user doesn't have permission to delete the NamedOperation
-
-