Class CAICmdAbstract<C extends CAProtocolMessageType>
java.lang.Object
com.io7m.cardant.server.controller.inventory.CAICmdAbstract<C>
- Type Parameters:
C- The type of accepted commands
- All Implemented Interfaces:
CACommandExecutorType<CAICommandContext, C, CAIResponseType>
- Direct Known Subclasses:
CAICmdAuditSearchBegin, CAICmdAuditSearchNext, CAICmdAuditSearchPrevious, CAICmdFileDelete, CAICmdFileGet, CAICmdFilePut, CAICmdFileSearchBegin, CAICmdFileSearchNext, CAICmdFileSearchPrevious, CAICmdItemAttachmentAdd, CAICmdItemAttachmentRemove, CAICmdItemCreate, CAICmdItemDelete, CAICmdItemGet, CAICmdItemMetadataPut, CAICmdItemMetadataRemove, CAICmdItemSearchBegin, CAICmdItemSearchNext, CAICmdItemSearchPrevious, CAICmdItemSetName, CAICmdItemTypesAssign, CAICmdItemTypesRevoke, CAICmdLocationAttachmentAdd, CAICmdLocationAttachmentRemove, CAICmdLocationDelete, CAICmdLocationGet, CAICmdLocationMetadataPut, CAICmdLocationMetadataRemove, CAICmdLocationPut, CAICmdLocationsList, CAICmdLocationTypesAssign, CAICmdLocationTypesRevoke, CAICmdRolesAssign, CAICmdRolesGet, CAICmdRolesRevoke, CAICmdStockCount, CAICmdStockReposit, CAICmdStockSearchBegin, CAICmdStockSearchNext, CAICmdStockSearchPrevious, CAICmdTypePackageGetText, CAICmdTypePackageInstall, CAICmdTypePackageSearchBegin, CAICmdTypePackageSearchNext, CAICmdTypePackageSearchPrevious, CAICmdTypePackageUninstall, CAICmdTypePackageUpgrade
public abstract class CAICmdAbstract<C extends CAProtocolMessageType>
extends Object
implements CACommandExecutorType<CAICommandContext, C, CAIResponseType>
The abstract base command class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal CAIResponseTypeexecute(CAICommandContext context, C command) Execute a command.protected abstract CAIResponseTypeexecuteActual(CAICommandContext context, C command)
-
Constructor Details
-
CAICmdAbstract
protected CAICmdAbstract()
-
-
Method Details
-
execute
public final CAIResponseType execute(CAICommandContext context, C command) throws CACommandExecutionFailure Description copied from interface:CACommandExecutorTypeExecute a command.- Specified by:
executein interfaceCACommandExecutorType<CAICommandContext, C extends CAProtocolMessageType, CAIResponseType>- Parameters:
context- The execution contextcommand- The command- Returns:
- The result of execution
- Throws:
CACommandExecutionFailure- On errors
-
executeActual
protected abstract CAIResponseType executeActual(CAICommandContext context, C command) throws CAValidityException, CAException, CACommandExecutionFailure, CASecurityException, CADatabaseException
-