Class CAICommandContext

java.lang.Object
com.io7m.cardant.server.controller.command_exec.CACommandContext<CAIResponseType>
com.io7m.cardant.server.controller.inventory.CAICommandContext

public final class CAICommandContext extends CACommandContext<CAIResponseType>
The command context for inventory API commands.
  • Constructor Details

    • CAICommandContext

      public CAICommandContext(com.io7m.repetoir.core.RPServiceDirectoryType inServices, UUID inRequestId, CADatabaseTransactionType inTransaction, CASession inSession, String inRemoteHost, String inRemoteUserAgent)
      The context for execution of a command (or set of commands in a transaction).
      Parameters:
      inServices - The service directory
      inRequestId - The request ID
      inTransaction - The transaction
      inSession - The user session
      inRemoteHost - The remote host
      inRemoteUserAgent - The remote user agent
  • Method Details

    • securityCheck

      public void securityCheck(com.io7m.medrina.api.MObject object, com.io7m.medrina.api.MActionName action) throws CASecurityException
      Perform a security check for the given action.
      Parameters:
      object - The object
      action - The action
      Throws:
      CASecurityException - On security policy denials