public final class UpdateSettings extends java.lang.Object implements PersistentStateComponent<UpdateOptions>
Constructor and Description |
---|
UpdateSettings() |
Modifier and Type | Method and Description |
---|---|
void |
forceCheckForUpdateAfterRestart() |
java.util.List<ChannelStatus> |
getActiveChannels() |
java.util.List<java.lang.String> |
getEnabledExternalUpdateSources() |
java.util.Map<java.lang.String,java.lang.String> |
getExternalUpdateChannels() |
java.util.List<java.lang.String> |
getIgnoredBuildNumbers() |
static UpdateSettings |
getInstance() |
java.util.List<java.lang.String> |
getKnownExternalUpdateSources() |
java.lang.String |
getLastBuildChecked() |
long |
getLastTimeChecked() |
java.util.List<java.lang.String> |
getPluginHosts() |
ChannelStatus |
getSelectedActiveChannel() |
ChannelStatus |
getSelectedChannelStatus() |
UpdateOptions |
getState() |
java.util.List<java.lang.String> |
getStoredPluginHosts() |
boolean |
isCheckNeeded() |
boolean |
isPlatformUpdateEnabled() |
boolean |
isThirdPartyPluginsAllowed() |
void |
loadState(UpdateOptions state)
This method is called when new component state is loaded.
|
void |
saveLastCheckedInfo() |
void |
setCheckNeeded(boolean value) |
void |
setSelectedChannelStatus(ChannelStatus channel) |
void |
setThirdPartyPluginsAllowed(boolean value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public static UpdateSettings getInstance()
public boolean isPlatformUpdateEnabled()
public UpdateOptions getState()
getState
in interface PersistentStateComponent<UpdateOptions>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void loadState(UpdateOptions state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<UpdateOptions>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public java.lang.String getLastBuildChecked()
public java.util.List<java.lang.String> getStoredPluginHosts()
public boolean isCheckNeeded()
public void setCheckNeeded(boolean value)
public java.util.List<java.lang.String> getEnabledExternalUpdateSources()
public java.util.List<java.lang.String> getKnownExternalUpdateSources()
public java.util.Map<java.lang.String,java.lang.String> getExternalUpdateChannels()
public long getLastTimeChecked()
public java.util.List<java.lang.String> getIgnoredBuildNumbers()
public ChannelStatus getSelectedChannelStatus()
public void setSelectedChannelStatus(ChannelStatus channel)
public java.util.List<ChannelStatus> getActiveChannels()
public ChannelStatus getSelectedActiveChannel()
public java.util.List<java.lang.String> getPluginHosts()
public void forceCheckForUpdateAfterRestart()
public void saveLastCheckedInfo()
public boolean isThirdPartyPluginsAllowed()
public void setThirdPartyPluginsAllowed(boolean value)