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 Modifier and Type Class Description class
LicenseBean.EntityListModelImpl
-
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
-
-
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
-
getClientLicensesModel
public IEntityListModel<LicenseFile> getClientLicensesModel()
- Returns:
- the model
-
setClientLicensesModel
public void setClientLicensesModel(IEntityListModel<LicenseFile> clientLicensesModel)
- Parameters:
clientLicensesModel
- the model to set
-
getClientLicenseVersionStateMap
public Map<String,ELicenseVersionState> getClientLicenseVersionStateMap()
Gets the clientLicenseVersionStateMap- Returns:
- the clientLicenseVersionStateMap
-
registerClientUpdateStatus
public void registerClientUpdateStatus()
-
registerSystemUpdateStatus
public void registerSystemUpdateStatus()
-
updateClientLicensesModel
public void updateClientLicensesModel()
-
restDemoModel
public void restDemoModel(boolean clientLicense)
-
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)
- Parameters:
evt
-
-
downloadLicense
public org.primefaces.model.StreamedContent downloadLicense(String licenseKey)
- Returns:
-
uploadClientLicense
public void uploadClientLicense(org.primefaces.event.FileUploadEvent evt)
- Parameters:
evt
-
-
checkClientKey
public void checkClientKey(String licenseKey)
- Parameters:
licenseKey
-
-
checkSystemKey
public void checkSystemKey(String licenseKey)
-
swapHardwareId
public void swapHardwareId(String swapTargetId)
- Parameters:
swapTargetId
-
-
updateSystemVersionState
public void updateSystemVersionState()
-
updateClientsVersionState
public void updateClientsVersionState()
-
updateSystemLicense
public void updateSystemLicense(byte[] fileData)
- Parameters:
fileData
-checkKey
-
-
updateClientToLicense
public void updateClientToLicense(LicenseFile license)
- Parameters:
license
-
-
getSystemLicense
public LicenseModel getSystemLicense()
- Returns:
-
getLicenseModel
public LicenseModel getLicenseModel(LicenseFile file)
- Parameters:
file
-- Returns:
-
getSystemLicenseSnapshot
public LicenseDataSnapshot getSystemLicenseSnapshot()
- Returns:
-
getClientLicenseSnapshot
public LicenseDataSnapshot getClientLicenseSnapshot(LicenseFile licenseFile)
- Parameters:
client
-- Returns:
-
getCurrentHardwareId
public String getCurrentHardwareId()
- Returns:
-
-