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,CAICmdFileGet,CAICmdFilePut,CAICmdFileRemove,CAICmdFileSearchBegin,CAICmdFileSearchNext,CAICmdFileSearchPrevious,CAICmdItemAttachmentAdd,CAICmdItemAttachmentRemove,CAICmdItemCreate,CAICmdItemGet,CAICmdItemLocationsList,CAICmdItemMetadataPut,CAICmdItemMetadataRemove,CAICmdItemReposit,CAICmdItemSearchBegin,CAICmdItemSearchNext,CAICmdItemSearchPrevious,CAICmdItemSetName,CAICmdItemsRemove,CAICmdItemTypesAssign,CAICmdItemTypesRevoke,CAICmdLocationAttachmentAdd,CAICmdLocationAttachmentRemove,CAICmdLocationGet,CAICmdLocationMetadataPut,CAICmdLocationMetadataRemove,CAICmdLocationPut,CAICmdLocationsList,CAICmdLocationTypesAssign,CAICmdLocationTypesRevoke,CAICmdRolesAssign,CAICmdRolesGet,CAICmdRolesRevoke,CAICmdTypePackageGetText,CAICmdTypePackageInstall,CAICmdTypePackageSearchBegin,CAICmdTypePackageSearchNext,CAICmdTypePackageSearchPrevious,CAICmdTypePackageUninstall,CAICmdTypePackageUpgrade,CAICmdTypeRecordGet,CAICmdTypeRecordSearchBegin,CAICmdTypeRecordSearchNext,CAICmdTypeRecordSearchPrevious,CAICmdTypeScalarGet,CAICmdTypeScalarSearchBegin,CAICmdTypeScalarSearchNext,CAICmdTypeScalarSearchPrevious
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
-