Class UpdateFacilitySettingsCommand
Represents a command that updates a specific setting for a facility.
public class UpdateFacilitySettingsCommand : AbstractCommand, ICommand
- Inheritance
-
UpdateFacilitySettingsCommand
- Implements
- Inherited Members
Remarks
The UpdateFacilitySettingsCommand is used to modify configuration settings for a facility identified by its unique ID. This command requires the facility ID, the name of the setting to update, and the new value for that setting as parameters. The required permission to execute this command is determined by the implementation of GetRequiredPermission().
Fields
Key
Represents the key used to identify the "update facility settings" operation in configuration or API contexts.
public const string Key = "updatefacilitysettings"
Field Value
Properties
CommandKey
Gets the unique key that identifies the command.
public override string CommandKey { get; }
Property Value
Description
Gets a textual description of the current object.
public override string Description { get; }
Property Value
Methods
ExecuteCore(CommandParameters, SessionContext?)
Executes the core logic for the command using the specified parameters and session context.
protected override CommandResult ExecuteCore(CommandParameters parameters, SessionContext? session)
Parameters
parametersCommandParametersThe parameters that define the command to execute. Must not be
null.sessionSessionContextThe session context in which the command is executed, or
nullto execute without a session.
Returns
- CommandResult
A CommandResult representing the outcome of the command execution.
Exceptions
GetRequiredPermission()
Returns the Permission required to access the associated resource or perform the operation.
public override Permission? GetRequiredPermission()
Returns
- Permission?
The Permission required for access, or null if no specific permission is required.
Exceptions
ValidateParameters(CommandParameters)
Validates the specified command parameters and returns the result of the validation.
protected override CommandValidationResult ValidateParameters(CommandParameters parameters)
Parameters
parametersCommandParametersThe parameters to validate for the command. Cannot be
null.
Returns
- CommandValidationResult
A CommandValidationResult that indicates whether the parameters are valid and provides details about any validation errors.