Class IdUCmdAbstract<C extends IdProtocolMessageType>
java.lang.Object
com.io7m.idstore.server.controller.user.IdUCmdAbstract<C>
- Type Parameters:
C- The type of accepted commands
- All Implemented Interfaces:
IdCommandExecutorType<IdSessionUser,IdUCommandContext, C, IdUResponseType>
- Direct Known Subclasses:
IdUCmdEmailAddBegin,IdUCmdEmailAddDeny,IdUCmdEmailAddPermit,IdUCmdEmailRemoveBegin,IdUCmdEmailRemoveDeny,IdUCmdEmailRemovePermit,IdUCmdPasswordUpdate,IdUCmdRealNameUpdate,IdUCmdUserSelf
public abstract class IdUCmdAbstract<C extends IdProtocolMessageType>
extends Object
implements IdCommandExecutorType<IdSessionUser,IdUCommandContext,C,IdUResponseType>
The abstract base command class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal IdUResponseTypeexecute(IdUCommandContext context, C command) Execute a command.protected abstract IdUResponseTypeexecuteActual(IdUCommandContext context, C command)
-
Constructor Details
-
IdUCmdAbstract
protected IdUCmdAbstract()
-
-
Method Details
-
execute
public final IdUResponseType execute(IdUCommandContext context, C command) throws IdCommandExecutionFailure Description copied from interface:IdCommandExecutorTypeExecute a command.- Specified by:
executein interfaceIdCommandExecutorType<IdSessionUser,IdUCommandContext, C extends IdProtocolMessageType, IdUResponseType> - Parameters:
context- The execution contextcommand- The command- Returns:
- The result of execution
- Throws:
IdCommandExecutionFailure- On errors
-
executeActual
protected abstract IdUResponseType executeActual(IdUCommandContext context, C command) throws IdValidityException, IdException, IdCommandExecutionFailure
-