public class UpdatePreferences extends AbstractSubsystemPreferences
Copyright 2010 Partner Software, Inc.
| Constructor and Description |
|---|
UpdatePreferences()
Creates a new UpdatePreferences.
|
UpdatePreferences(Cog state)
Creates a new UpdatePreferences that loads state
from passed Cog.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getForceUpdate()
If true, the main Partner applications (the map viewer) will NOT allow you to skip the update.
|
boolean |
getRestartAutomatically()
If true, the main Partner application (the map viewer) will start automatically after an update and migration,
without prompting the user.
|
java.lang.String |
getUpdateSource()
Location for updates.
|
void |
setForceUpdate(boolean forceUpdate)
Sets force update flag.
|
void |
setRestartAutomatically(boolean restartAutomatically)
Sets restart automatically flag.
|
void |
setUpdateSource(java.lang.String updateSource)
Sets the location for updates.
|
Cog |
toCog()
Returns the complete internal state of this object in the form of a
Cog. |
getName, setNamepublic UpdatePreferences()
public UpdatePreferences(Cog state)
state - - Cog representing object to generatepublic Cog toCog()
CoggableCog.toCog in interface CoggabletoCog in class AbstractSubsystemPreferencespublic java.lang.String getUpdateSource()
public void setUpdateSource(java.lang.String updateSource)
updateSource - - String url for updatepublic boolean getRestartAutomatically()
public void setRestartAutomatically(boolean restartAutomatically)
restartAutomatically - - True for automated restart after update, false otherwise.public boolean getForceUpdate()
public void setForceUpdate(boolean forceUpdate)
forceUpdate - - True if application should not start with update, false otherwise.