Class LicenseBean

    • Constructor Detail

      • LicenseBean

        public LicenseBean()
    • Method Detail

      • init

        @PostConstruct
        public void init()
      • isAllowDemo

        public boolean isAllowDemo()
      • getSystemLicenseVersionState

        public ELicenseVersionState getSystemLicenseVersionState()
        Returns:
        the systemLicenseVersionState
      • 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()
      • 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)
      • 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.
      • getSwapHardwareIdList

        public List<String> getSwapHardwareIdList()
      • setSwapHardwareIdList

        public void setSwapHardwareIdList​(List<String> swapHardwareIdList)
      • getSwapHardwareIdValue

        public String getSwapHardwareIdValue()
      • setSwapHardwareIdValue

        public void setSwapHardwareIdValue​(String swapHardwareIdValue)