Package de.xima.fc.gui.bean.settings
Class UpdateBean
- java.lang.Object
-
- de.xima.fc.gui.bean.settings.UpdateBean
-
- All Implemented Interfaces:
Serializable
@Named @ViewScoped public class UpdateBean extends Object implements Serializable
Bean for handling Liquibase / migration / system updates.- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classUpdateBean.DbEncryptionclassUpdateBean.DbSettingsclassUpdateBean.SystemUpdate
-
Constructor Summary
Constructors Constructor Description UpdateBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclearUpdate()List<String>getCallbackMails()StringgetCallbackMailsCsv()UpdateBean.DbEncryptiongetDbEncryption()DbEncryptionBeangetDbEncryptionBean()Deprecated, for removal: This API element is subject to removal in a future version.UpdateBean.DbSettingsgetDbSettings()DbSettingsBeangetDbSettingsBean()Deprecated, for removal: This API element is subject to removal in a future version.FCMessagegetDbStateMessage()InternalMessageBeangetInternalMessageBean()Deprecated, for removal: This API element is subject to removal in a future version.UpdateBean.SystemUpdategetSystemUpdate()FormcycleUpdategetUpdate()List<UpdateContext>getUpdateContexts()EDbUpdateStepgetUpdateStep()Deprecated, for removal: This API element is subject to removal in a future version.voidhandleDriverUpload(org.primefaces.event.FileUploadEvent event)booleanisAutoUpdateDisabled()booleanisAutoUpdatePluginsDisabled()booleanisCallbackMailsDisabled()booleanisDbDriverAvailable()booleanisDbRunningAndSystemUpToDate()booleanisHasSystemUpdateLock()booleanisHasValidLookingJdbcUrl()booleanisPolling()booleanisShowUpdateScreen()booleanisUpdateRunning()booleanisUserCanUploadDriver()booleanisWriteProtected(String configKey)voidonPoll()AJAX listener invoked when polling for changes during the system / DB update.voidremoveSystemUpdateLock()voidsetCallbackMails(List<String> callbackMails)voidsetDbEncryptionBean(DbEncryptionBean dbEncryptionBean)Deprecated, for removal: This API element is subject to removal in a future version.voidsetDbSettingsBean(DbSettingsBean dbSettingsBean)Deprecated, for removal: This API element is subject to removal in a future version.voidsetInternalMessageBean(InternalMessageBean internalMessageBean)Deprecated, for removal: This API element is subject to removal in a future version.voidsetUpdateStep(EDbUpdateStep updateStep)Deprecated, for removal: This API element is subject to removal in a future version.voidupdate()voidupdatePlugins(boolean viaServer)
-
-
-
Method Detail
-
clearUpdate
public void clearUpdate()
-
getCallbackMailsCsv
public String getCallbackMailsCsv()
-
getDbEncryptionBean
@Deprecated(since="8.5.0", forRemoval=true) public DbEncryptionBean getDbEncryptionBean()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setDbEncryptionBean
@Deprecated(since="8.5.0", forRemoval=true) public void setDbEncryptionBean(DbEncryptionBean dbEncryptionBean)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getDbSettingsBean
@Deprecated(since="8.5.0", forRemoval=true) public DbSettingsBean getDbSettingsBean()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setDbSettingsBean
@Deprecated(since="8.5.0", forRemoval=true) public void setDbSettingsBean(DbSettingsBean dbSettingsBean)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getInternalMessageBean
@Deprecated(since="8.5.0", forRemoval=true) public InternalMessageBean getInternalMessageBean()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setInternalMessageBean
@Deprecated(since="8.5.0", forRemoval=true) public void setInternalMessageBean(InternalMessageBean internalMessageBean)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getUpdateContexts
public List<UpdateContext> getUpdateContexts()
-
getUpdateStep
@Deprecated(since="8.5.0", forRemoval=true) public EDbUpdateStep getUpdateStep()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setUpdateStep
@Deprecated(since="8.5.0", forRemoval=true) public void setUpdateStep(EDbUpdateStep updateStep)
Deprecated, for removal: This API element is subject to removal in a future version.
-
handleDriverUpload
public void handleDriverUpload(org.primefaces.event.FileUploadEvent event)
-
isDbDriverAvailable
public boolean isDbDriverAvailable()
-
isDbRunningAndSystemUpToDate
public boolean isDbRunningAndSystemUpToDate()
-
isHasValidLookingJdbcUrl
public boolean isHasValidLookingJdbcUrl()
-
isPolling
public boolean isPolling()
-
isShowUpdateScreen
public boolean isShowUpdateScreen()
-
isUserCanUploadDriver
public boolean isUserCanUploadDriver()
-
isWriteProtected
public boolean isWriteProtected(String configKey)
-
onPoll
public void onPoll()
AJAX listener invoked when polling for changes during the system / DB update.
-
removeSystemUpdateLock
public void removeSystemUpdateLock()
-
update
public void update()
-
updatePlugins
public void updatePlugins(boolean viaServer)
-
getDbSettings
public UpdateBean.DbSettings getDbSettings()
-
getDbEncryption
public UpdateBean.DbEncryption getDbEncryption()
-
getSystemUpdate
public UpdateBean.SystemUpdate getSystemUpdate()
-
isUpdateRunning
public boolean isUpdateRunning()
-
isAutoUpdateDisabled
public boolean isAutoUpdateDisabled()
-
isAutoUpdatePluginsDisabled
public boolean isAutoUpdatePluginsDisabled()
-
isCallbackMailsDisabled
public boolean isCallbackMailsDisabled()
-
getDbStateMessage
public FCMessage getDbStateMessage()
-
getUpdate
public FormcycleUpdate getUpdate()
-
isHasSystemUpdateLock
public boolean isHasSystemUpdateLock()
-
-