Class IdACommandExecutor
java.lang.Object
com.io7m.idstore.server.controller.admin.IdACommandExecutor
- All Implemented Interfaces:
IdCommandExecutorType<IdSessionAdmin,
IdACommandContext, IdACommandType<? extends IdAResponseType>, IdAResponseType>
public final class IdACommandExecutor
extends Object
implements IdCommandExecutorType<IdSessionAdmin,IdACommandContext,IdACommandType<? extends IdAResponseType>,IdAResponseType>
A command executor for public commands.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexecute
(IdACommandContext context, IdACommandType<? extends IdAResponseType> command) Execute a command.
-
Constructor Details
-
IdACommandExecutor
public IdACommandExecutor()A command executor for public commands.
-
-
Method Details
-
execute
public IdAResponseType execute(IdACommandContext context, IdACommandType<? extends IdAResponseType> command) throws IdCommandExecutionFailure Description copied from interface:IdCommandExecutorType
Execute a command.- Specified by:
execute
in interfaceIdCommandExecutorType<IdSessionAdmin,
IdACommandContext, IdACommandType<? extends IdAResponseType>, IdAResponseType> - Parameters:
context
- The execution contextcommand
- The command- Returns:
- The result of execution
- Throws:
IdCommandExecutionFailure
- On errors
-