Class EliteLifetimeLevelCommand
java.lang.Object
org.deltava.commands.AbstractCommand
org.deltava.commands.AbstractFormCommand
org.deltava.commands.AbstractAuditFormCommand
org.deltava.commands.econ.EliteLifetimeLevelCommand
- All Implemented Interfaces:
Command
A Web Site Command to update lifetime Elite status level definitions.
- Since:
- 11.5
- Version:
- 12.4
- Author:
- Luke
-
Nested Class Summary
Nested classes/interfaces inherited from interface Command
Command.Scope -
Field Summary
Fields inherited from interface Command
ID, OPERATION, PAGE, REQUEST, SESSIONModifier and TypeFieldDescriptionstatic final intstatic final intstatic final Command.Scopestatic final Command.Scopestatic final Command.Scope -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecEdit(CommandContext ctx) Callback method called when editing the lifetime Elite level.protected voidexecRead(CommandContext ctx) Not implemented - calls @see EliteLifetimeLevelCommand#execEdit(CommandContext)protected voidexecSave(CommandContext ctx) Callback method called when saving the lifetime Elite level.Methods inherited from class AbstractAuditFormCommand
readAuditLog, writeAuditLogModifier and TypeMethodDescriptionprotected static voidreadAuditLog(CommandContext ctx, Auditable a) Loads the audit log for an object.protected static voidwriteAuditLog(CommandContext ctx, AuditLog ae) Writes an audit log entry for an object.Methods inherited from class AbstractFormCommand
executeModifier and TypeMethodDescriptionfinal voidexecute(CommandContext ctx) Executes the command, and based on the operation calls an implementation method for the particular operation.Methods inherited from class AbstractCommand
forgottenException, getID, getName, getRoles, init, notFoundException, notFoundException, parseDateTime, parseDateTime, securityException, setRolesModifier and TypeMethodDescriptionprotected static CommandExceptionHelper method to generate a content blocked exception.final StringgetID()Return the ID of the command.final StringgetName()Return the name of the command.final Collection<String> getRoles()Return the roles authorized to execute this command.voidInitialize the Command.protected static CommandExceptionnotFoundException(String msg, int id) Helper method to generate an "item not found" exception for a given database ID.protected static CommandExceptionnotFoundException(String msg, Object id) Helper method to generate an "item not found" exception for a given ID.protected static InstantparseDateTime(CommandContext ctx, String paramHdr) Parses one or two HTTP request parameters into a date/time value, using the user's format patterns or the default format patterns if the user is not authenticated.protected static InstantparseDateTime(CommandContext ctx, String paramHdr, String dfmt, String tfmt) Parses one or two HTTP request parameters into a date/time value.protected static CommandExceptionsecurityException(String msg) Helper method to generate a security exception.final voidsetRoles(Collection<String> roles) Updates the roles authorized to execute this command.
-
Constructor Details
-
EliteLifetimeLevelCommand
public EliteLifetimeLevelCommand()
-
-
Method Details
-
execSave
Callback method called when saving the lifetime Elite level.- Specified by:
execSavein classAbstractFormCommand- Parameters:
ctx- the Command context- Throws:
CommandException- if an error occurs
-
execEdit
Callback method called when editing the lifetime Elite level.- Specified by:
execEditin classAbstractFormCommand- Parameters:
ctx- the Command context- Throws:
CommandException- if an error occurs
-
execRead
Not implemented - calls @see EliteLifetimeLevelCommand#execEdit(CommandContext)- Specified by:
execReadin classAbstractFormCommand- Parameters:
ctx- the Command context- Throws:
CommandException- if an error occurs
-