public class AutomatedInstallData extends Object implements InstallData
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTOINSTALL_PANELROOT_ATTR_ID
The attribute for a panel ID in the auto-install.xml record
|
static String |
DEFAULT_INSTALL_DRIVE
The default install drive (Windows only, otherwise not set)
|
static String |
DEFAULT_INSTALL_PATH
The default install path
|
static String |
INSTALL_DRIVE
The install drive (Windows only, otherwise not set)
|
ESTIMATED_SIZE, INSTALL_PATH, INSTALLATION_INFORMATION, INSTALLER_MODE, INSTALLER_MODE_AUTO, INSTALLER_MODE_CONSOLE, INSTALLER_MODE_GUI, MEDIA_PATH, MODIFY_INSTALLATION| Constructor and Description |
|---|
AutomatedInstallData(Variables variables,
Platform platform)
Constructs an AutomatedInstallData.
|
| Modifier and Type | Method and Description |
|---|---|
List<Pack> |
getAllPacks()
Returns all packs.
|
Object |
getAttribute(String name)
Returns the value of the named attribute.
|
Map<String,Object> |
getAttributes() |
List<Pack> |
getAvailablePacks()
Returns the packs available to be installed on the current platform.
|
String |
getDefaultInstallPath()
Returns the default install path.
|
List<DynamicInstallerRequirementValidator> |
getDynamicInstallerRequirements()
Returns the dynamic installer requirement validators.
|
Info |
getInfo()
Returns the installation information.
|
IXMLElement |
getInstallationRecord()
Returns the XML data for automated installation.
|
IXMLElement |
getInstallationRecordPanelRoot(String panelId) |
List<InstallerRequirement> |
getInstallerRequirements()
Returns the installer requirements.
|
String |
getInstallPath()
Returns the install path.
|
Locale |
getLocale()
Returns the current locale.
|
String |
getLocaleISO2()
Returns the current locale's ISO2 language code.
|
String |
getLocaleISO3()
Returns the current locale's ISO3 language code.
|
String |
getMediaPath()
Returns the media path for multi-volume installation.
|
Messages |
getMessages()
Returns the localised messages.
|
List<Panel> |
getPanelsOrder()
Returns the panels.
|
Platform |
getPlatform()
Returns the current platform.
|
RulesEngine |
getRules()
Returns the rules.
|
List<Pack> |
getSelectedPacks()
Returns the selected packs.
|
String |
getVariable(String name)
Returns the current value of the specified variable.
|
Variables |
getVariables()
Returns the variables.
|
boolean |
isCanClose()
Determines if the installer can close.
|
boolean |
isInstallSuccess()
Determines if the installation was successful.
|
boolean |
isRebootNecessary()
Determines if a reboot is required after installation.
|
void |
refreshVariables()
Refreshes dynamic variables.
|
void |
setAllPacks(List<Pack> allPacks) |
void |
setAttribute(String name,
Object value)
Sets a named attribute.
|
void |
setAttributes(Map<String,Object> attributes) |
void |
setAvailablePacks(List<Pack> availablePacks) |
void |
setCanClose(boolean canClose) |
void |
setDefaultInstallPath(String path)
Sets the default install path.
|
void |
setDynamicInstallerRequirements(List<DynamicInstallerRequirementValidator> requirements) |
void |
setInfo(Info info) |
void |
setInstallationRecord(IXMLElement xmlData) |
void |
setInstallerRequirements(List<InstallerRequirement> requirements) |
void |
setInstallPath(String path)
Sets the install path.
|
void |
setInstallSuccess(boolean installSuccess)
Determines if the installation was successful.
|
void |
setLocale(Locale locale,
String code)
Sets the locale.
|
void |
setMediaPath(String path)
Sets the media path for multi-volume installation.
|
void |
setMessages(Messages messages)
Sets the localised messages.
|
void |
setPanelsOrder(List<Panel> panelsOrder) |
void |
setRebootNecessary(boolean rebootNecessary)
Determines if a reboot is required after installation.
|
void |
setRules(RulesEngine rules) |
void |
setSelectedPacks(List<Pack> selectedPacks)
Sets the selected packs.
|
void |
setVariable(String name,
String value)
Sets a variable to the specified value.
|
public static final String AUTOINSTALL_PANELROOT_ATTR_ID
public static final String DEFAULT_INSTALL_PATH
public static final String INSTALL_DRIVE
public static final String DEFAULT_INSTALL_DRIVE
public Variables getVariables()
getVariables in interface InstallDatapublic void setVariable(String name, String value)
getVariables().set(name, value).setVariable in interface InstallDataname - the name of the variablevalue - the new value of the variablegetVariable(java.lang.String)public String getVariable(String name)
getVariables().get(name).getVariable in interface InstallDataname - the name of the variablesetVariable(java.lang.String, java.lang.String)public void refreshVariables()
getVariables().refresh().refreshVariables in interface InstallDatapublic void setInstallPath(String path)
setInstallPath in interface InstallDatapath - the new install pathgetInstallPath()public String getInstallPath()
getInstallPath in interface InstallDatasetInstallPath(java.lang.String)public void setDefaultInstallPath(String path)
setDefaultInstallPath in interface InstallDatapath - the default install pathgetDefaultInstallPath()public String getDefaultInstallPath()
getDefaultInstallPath in interface InstallDatasetDefaultInstallPath(java.lang.String)public void setMediaPath(String path)
setMediaPath in interface InstallDatapath - the media path. May be nullpublic String getMediaPath()
getMediaPath in interface InstallDatapublic Object getAttribute(String name)
getAttribute in interface InstallDataname - the name of the attributesetAttribute(java.lang.String, java.lang.Object)public void setAttribute(String name, Object value)
setAttribute in interface InstallDataname - the name of the attribute to setvalue - the value of the attribute or null to unset the attributegetAttribute(java.lang.String)public RulesEngine getRules()
InstallDatagetRules in interface InstallDatapublic void setRules(RulesEngine rules)
public String getLocaleISO3()
InstallDatagetLocaleISO3 in interface InstallDatanullpublic String getLocaleISO2()
InstallDatagetLocaleISO2 in interface InstallDatanullpublic Locale getLocale()
InstallDatagetLocale in interface InstallDatanullpublic void setLocale(Locale locale, String code)
ISO3 variable to be the
the lowercase version of the supplied ISO code.locale - the localecode - the 3 character ISO code used to select the locale. May be an ISO country code or an ISO language
codepublic void setMessages(Messages messages)
messages - the localised messagespublic Messages getMessages()
getMessages in interface InstallDatapublic Info getInfo()
InstallDatagetInfo in interface InstallDatapublic void setInfo(Info info)
public Platform getPlatform()
getPlatform in interface InstallDatapublic List<Pack> getAllPacks()
InstallDatagetAllPacks in interface InstallDatapublic List<Pack> getAvailablePacks()
InstallDatagetAvailablePacks in interface InstallDatapublic List<Pack> getSelectedPacks()
InstallDatagetSelectedPacks in interface InstallDatapublic void setSelectedPacks(List<Pack> selectedPacks)
InstallDatasetSelectedPacks in interface InstallDataselectedPacks - the selected packspublic List<Panel> getPanelsOrder()
InstallDatagetPanelsOrder in interface InstallDatapublic boolean isCanClose()
InstallDataisCanClose in interface InstallDatatrue if the installer can close; otherwise falsepublic void setCanClose(boolean canClose)
public boolean isInstallSuccess()
InstallDataisInstallSuccess in interface InstallDatatrue if the installation was successfulpublic void setInstallSuccess(boolean installSuccess)
InstallDatasetInstallSuccess in interface InstallDatainstallSuccess - if true indicates installation was successfulpublic boolean isRebootNecessary()
InstallDataisRebootNecessary in interface InstallDatatrue if a reboot is requiredpublic void setRebootNecessary(boolean rebootNecessary)
InstallDatasetRebootNecessary in interface InstallDatarebootNecessary - if true indicates a reboot is requiredpublic IXMLElement getInstallationRecord()
InstallDatagetInstallationRecord in interface InstallDatapublic IXMLElement getInstallationRecordPanelRoot(String panelId)
public void setInstallationRecord(IXMLElement xmlData)
public List<DynamicInstallerRequirementValidator> getDynamicInstallerRequirements()
InstallDatagetDynamicInstallerRequirements in interface InstallDatapublic void setDynamicInstallerRequirements(List<DynamicInstallerRequirementValidator> requirements)
public void setInstallerRequirements(List<InstallerRequirement> requirements)
public List<InstallerRequirement> getInstallerRequirements()
InstallDatagetInstallerRequirements in interface InstallDataCopyright © 2001–2025. All rights reserved.