Package com.io7m.idstore.server.controller.user

# Class IdUCommandExecutor

java.lang.Object
com.io7m.idstore.server.controller.user.IdUCommandExecutor

All Implemented Interfaces:
  `IdCommandExecutorType<IdSessionUser,IdUCommandContext,IdUCommandType<? extends IdUResponseType>,IdUResponseType>`

public final class IdUCommandExecutor extends Object implements IdCommandExecutorType<IdSessionUser,IdUCommandContext,IdUCommandType<? extends IdUResponseType>,IdUResponseType>
A command executor for public commands.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `IdUCommandExecutor()`
  A command executor for public commands.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `IdUResponseType`
  `execute(IdUCommandContext context, IdUCommandType<? extends IdUResponseType> command)`
  Execute a command.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### IdUCommandExecutor

    public IdUCommandExecutor()
    A command executor for public commands.

- ## Method Details

  - ### execute

    public IdUResponseType execute(IdUCommandContext context, IdUCommandType<? extends IdUResponseType> command) throws IdCommandExecutionFailure
    Description copied from interface: `IdCommandExecutorType`
    Execute a command.
    Specified by:
      `execute` in interface `IdCommandExecutorType<IdSessionUser,IdUCommandContext,IdUCommandType<? extends IdUResponseType>,IdUResponseType>`
    Parameters:
      `context` - The execution context
      `command` - The command
    Returns:
      The result of execution
    Throws:
      `IdCommandExecutionFailure` - On errors