public class KickstartLocaleCommand extends BaseKickstartCommand
ksdata, rebuildPartitionCommands, user
Constructor and Description |
---|
KickstartLocaleCommand(KickstartData data,
User userIn)
constructor
Construct a command with a KSdata provided.
|
KickstartLocaleCommand(java.lang.Long ksidIn,
User userIn)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
doNotUseUtc()
Remove the --utc flag
|
java.lang.String |
getTimezone()
Get the timezone from the KickstartData object
|
java.util.ArrayList |
getValidTimezones()
Get a list of valid timezones
|
java.lang.Boolean |
isUsingUtc()
Will the system hardware clock use UTC
|
java.lang.Boolean |
isValidTimezone(java.lang.String timezone)
Determine if the timezone provided is valid for the current configuration.
|
void |
setTimezone(java.lang.String timezoneIn)
Set the timezone
|
void |
useUtc()
Add the --utc flag if it does not already exist in the kickstart's 'timezone' command
|
findCommandName, getKickstartData, getUser, store
public KickstartLocaleCommand(java.lang.Long ksidIn, User userIn)
ksidIn
- id of the Kickstart to lookupuserIn
- userIn who owns the Kickstartpublic KickstartLocaleCommand(KickstartData data, User userIn)
data
- the kickstart datauserIn
- Logged in Userpublic java.lang.String getTimezone()
public void setTimezone(java.lang.String timezoneIn)
timezoneIn
- The timezonepublic java.util.ArrayList getValidTimezones()
public java.lang.Boolean isValidTimezone(java.lang.String timezone)
timezone
- The timezone to checkpublic java.lang.Boolean isUsingUtc()
public void useUtc()
public void doNotUseUtc()