Package de.xima.fc.gui.bean.settings
Class LicenseBean
-
- All Implemented Interfaces:
Serializable
@Named @ViewScoped public class LicenseBean extends FCContextBean
- Author:
- XIMA MEDIA GmbH, Dresden
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
AJSFContext.RedirectOptions, AJSFContext.RedirectOptionsBuilder
-
-
Field Summary
-
Fields inherited from class de.xima.fc.gui.bean.FCContextBean
systemUC
-
Fields inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
localeBean
-
-
Constructor Summary
Constructors Constructor Description LicenseBean()
-
Method Summary
-
Methods inherited from class de.xima.fc.gui.bean.FCContextBean
getSessionBean, isSetupUser, redirectToDashboard, setSessionBean, switchMainView, switchMainView, switchSubView, switchSubView
-
Methods inherited from class de.xima.fc.gui.bean.ABackendJSFContext
ec, findEntityContext, isDetached, isHasDB
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
destroySessionBean, encodeURL, findBean, findBean, findBean, findBean, findBean, findBean, findBean, findCurrentView, findUserContext, getBeanName, getBeanName, getContext, getCurrentViewBean, getLocaleBean, getRequest, getResponse, getSession, getSession, getSessionAttribute, isMasterServerContext, loadLazy, redirect, redirect, redirect, redirect, redirectToDashboard, redirectToDashboard, setLocaleBean, setSessionAttribute, uc
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.MessageUtils
addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsgFromString, addErrorMsgFromString, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsgFromString, addInfoMsgFromString, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addMsg, addMsg, addMsg, addMsg, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg
-
-
-
-
Method Detail
-
init
@PostConstruct public void init()
-
isAllowDemo
public boolean isAllowDemo()
-
getNavigationBean
public NavigationBean getNavigationBean()
- Overrides:
getNavigationBean
in classFCContextBean
- Returns:
- the navigationBean
-
getSystemLicenseVersionState
public ELicenseVersionState getSystemLicenseVersionState()
- Returns:
- the systemLicenseVersionState
-
setNavigationBean
public void setNavigationBean(NavigationBean navigationBean)
- Overrides:
setNavigationBean
in classFCContextBean
- Parameters:
navigationBean
- the navigationBean to set
-
getClientLicenses
public List<LicenseViewModel> getClientLicenses()
- Returns:
- the clientLicenses
-
setClientLicenses
public void setClientLicenses(List<LicenseViewModel> clientLicenses)
- Parameters:
clientLicenses
- the clientLicenses to set
-
getClientLicenseVersionStateMap
public Map<String,ELicenseVersionState> getClientLicenseVersionStateMap()
Gets the clientLicenseVersionStateMap- Returns:
- the clientLicenseVersionStateMap
-
registerClientUpdateStatus
public void registerClientUpdateStatus()
-
registerSystemUpdateStatus
public void registerSystemUpdateStatus()
-
updateClientLicenses
public void updateClientLicenses()
-
restDemoModel
public void restDemoModel(boolean clientLicense)
-
selectLicense
public void selectLicense(Long licenseFileId)
-
deleteLicense
public void deleteLicense(Long licenseFileId)
-
getSelectedLicense
public LicenseFile getSelectedLicense()
- Returns:
- the selectedLicense
-
createDemoRequest
public void createDemoRequest()
-
getDemoModel
public LicenseDemoData getDemoModel()
-
getSystemLicenseKey
public String getSystemLicenseKey()
-
setSystemLicenseKey
public void setSystemLicenseKey(String licenseKey)
-
getClientLicenseKey
public String getClientLicenseKey()
-
setClientLicenseKey
public void setClientLicenseKey(String licenseKey)
-
ajaxError
public void ajaxError()
-
licenseSuccess
public void licenseSuccess(boolean clientLicense)
-
demoLicenseSuccess
public void demoLicenseSuccess(boolean clientLicense)
-
uploadSystemLicense
public void uploadSystemLicense(org.primefaces.event.FileUploadEvent evt)
-
downloadLicense
public org.primefaces.model.StreamedContent downloadLicense(String licenseKey)
-
uploadClientLicense
public void uploadClientLicense(org.primefaces.event.FileUploadEvent evt)
-
checkClientKey
public void checkClientKey(String licenseKey)
-
checkSystemKey
public void checkSystemKey(String licenseKey, boolean isUpdate)
-
swapHardwareId
public void swapHardwareId(String swapTargetId)
-
updateSystemVersionState
public void updateSystemVersionState()
-
updateClientsVersionState
public void updateClientsVersionState()
-
updateSystemLicense
public void updateSystemLicense(byte[] fileData)
-
updateClientToLicense
public void updateClientToLicense(LicenseViewModel licenseViewModel)
-
getSystemLicense
public LicenseModel getSystemLicense()
-
getLicenseModel
public LicenseModel getLicenseModel(LicenseFile file)
-
getSystemLicenseSnapshot
public LicenseDataSnapshot getSystemLicenseSnapshot()
- Returns:
- A snapshot of the current system license file.
-
getClientLicenseSnapshot
public LicenseDataSnapshot getClientLicenseSnapshot(LicenseFile licenseFile)
- Parameters:
licenseFile
- The file for which to get a snapshot.- Returns:
- A snapshot of the given client license file.
-
getCurrentHardwareId
public String getCurrentHardwareId()
- Returns:
- The current hardware ID of the system running this application.
-
getSwapHardwareIdValue
public String getSwapHardwareIdValue()
-
setSwapHardwareIdValue
public void setSwapHardwareIdValue(String swapHardwareIdValue)
-
-