Class IdACommandContext
java.lang.Object
com.io7m.idstore.server.internal.command_exec.IdCommandContext<IdAResponseType>
com.io7m.idstore.server.internal.admin.IdACommandContext
The command context for public API commands.
-
Constructor Summary
ConstructorsConstructorDescriptionIdACommandContext(IdServiceDirectoryType inServices, IdServerStrings inStrings, UUID inRequestId, IdDatabaseTransactionType inTransaction, IdServerClock inClock, IdAdmin inAdmin, IdUserSession inSession, String remoteHost, String remoteUserAgent) The context for execution of a command (or set of commands in a transaction). -
Method Summary
Modifier and TypeMethodDescriptionadmin()protected IdAResponseErrorerror(UUID id, IdErrorCode errorCode, String message) Methods inherited from class com.io7m.idstore.server.internal.command_exec.IdCommandContext
fail, failDatabase, failFormatted, failMail, failPassword, failProtocol, failSecurity, failValidity, now, remoteHost, remoteUserAgent, requestId, securityCheck, services, tracer, transaction, userSession
-
Constructor Details
-
IdACommandContext
public IdACommandContext(IdServiceDirectoryType inServices, IdServerStrings inStrings, UUID inRequestId, IdDatabaseTransactionType inTransaction, IdServerClock inClock, IdAdmin inAdmin, IdUserSession inSession, String remoteHost, String remoteUserAgent) The context for execution of a command (or set of commands in a transaction).- Parameters:
inServices- The service directoryinStrings- The string resourcesinRequestId- The request IDinTransaction- The transactioninClock- The clockinSession- The user sessioninAdmin- The admin executing the commandremoteHost- The remote hostremoteUserAgent- The remote user agent
-
-
Method Details
-
admin
- Returns:
- The admin executing the command.
-
error
- Specified by:
errorin classIdCommandContext<IdAResponseType>
-