Class IdACmdAbstract<T extends IdCommandContext<R>,C extends IdProtocolMessageType,R extends IdProtocolMessageType>
java.lang.Object
com.io7m.idstore.server.internal.admin.IdACmdAbstract<T,C,R>
- Type Parameters:
T- The type of command contextsC- The type of accepted commandsR- The type of responses
- All Implemented Interfaces:
IdCommandExecutorType<T,C, R>
- Direct Known Subclasses:
IdACmdAdminBanCreate,IdACmdAdminBanDelete,IdACmdAdminBanGet,IdACmdAdminCreate,IdACmdAdminDelete,IdACmdAdminEmailAdd,IdACmdAdminEmailRemove,IdACmdAdminGet,IdACmdAdminGetByEmail,IdACmdAdminPermissionGrant,IdACmdAdminPermissionRevoke,IdACmdAdminSearchBegin,IdACmdAdminSearchByEmailBegin,IdACmdAdminSearchByEmailNext,IdACmdAdminSearchByEmailPrevious,IdACmdAdminSearchNext,IdACmdAdminSearchPrevious,IdACmdAdminSelf,IdACmdAdminUpdate,IdACmdAuditSearchBegin,IdACmdAuditSearchNext,IdACmdAuditSearchPrevious,IdACmdUserBanCreate,IdACmdUserBanDelete,IdACmdUserBanGet,IdACmdUserCreate,IdACmdUserDelete,IdACmdUserEmailAdd,IdACmdUserEmailRemove,IdACmdUserGet,IdACmdUserGetByEmail,IdACmdUserLoginHistory,IdACmdUserSearchBegin,IdACmdUserSearchByEmailBegin,IdACmdUserSearchByEmailNext,IdACmdUserSearchByEmailPrevious,IdACmdUserSearchNext,IdACmdUserSearchPrevious,IdACmdUserUpdate
public abstract class IdACmdAbstract<T extends IdCommandContext<R>,C extends IdProtocolMessageType,R extends IdProtocolMessageType>
extends Object
implements IdCommandExecutorType<T,C,R>
The abstract base command class.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IdACmdAbstract
protected IdACmdAbstract()
-
-
Method Details
-
execute
public final R execute(T context, C command) throws IdCommandExecutionFailure, IOException, InterruptedException Description copied from interface:IdCommandExecutorTypeExecute a command.- Specified by:
executein interfaceIdCommandExecutorType<T extends IdCommandContext<R>,C extends IdProtocolMessageType, R extends IdProtocolMessageType> - Parameters:
context- The execution contextcommand- The command- Returns:
- The result of execution
- Throws:
IdCommandExecutionFailure- On errorsIOExceptionInterruptedException
-
executeActual
protected abstract R executeActual(T context, C command) throws IdValidityException, IdException, IdCommandExecutionFailure
-