Class ClientBean

    • Constructor Detail

      • ClientBean

        public ClientBean()
    • Method Detail

      • onOpenApplyFormThemeDialog

        public void onOpenApplyFormThemeDialog()
      • getDefaultThemeOptions

        public List<javax.faces.model.SelectItem> getDefaultThemeOptions()
        Gets a list of options representing the default form themes that can be selected for the default client form theme. Includes all system themes, client form theme and plugin themes.
        Returns:
        The list of options for the parent theme select box.
      • getLicenseModel

        public LicenseModel getLicenseModel()
        Gets the licenseModel
        Returns:
        the licenseModel
      • setLicenseModel

        public void setLicenseModel​(LicenseModel licenseModel)
        Sets the licenseModel
        Parameters:
        licenseModel - the licenseModel to set
      • getLicensedataSnapshot

        public LicenseDataSnapshot getLicensedataSnapshot()
        Gets the licensedataSnapshot
        Returns:
        the licensedataSnapshot
      • setLicensedataSnapshot

        public void setLicensedataSnapshot​(LicenseDataSnapshot licensedataSnapshot)
        Sets the licensedataSnapshot
        Parameters:
        licensedataSnapshot - the licensedataSnapshot to set
      • getClientsToDelete

        public List<Mandant> getClientsToDelete()
      • setClientsToDelete

        public void setClientsToDelete​(List<Mandant> clientsToDelete)
      • getClientsToDeleteConfirmationString

        public String getClientsToDeleteConfirmationString()
      • getDeleteConfirmation

        public String getDeleteConfirmation()
        Returns:
        A list of clients to be deleted, separated by commas. The user needs to enter the names to confirm that they want to delete those client.
      • setDeleteConfirmation

        public void setDeleteConfirmation​(String deleteConfirmation)
        Parameters:
        deleteConfirmation - A list of clients to be deleted, separated by commas. The user needs to enter the names to confirm that they want to delete those client.
      • isDeleteClientExclusiveUsers

        public boolean isDeleteClientExclusiveUsers()
      • setDeleteClientExclusiveUsers

        public void setDeleteClientExclusiveUsers​(boolean deleteClientExclusiveUsers)
      • getUserProfilesToDelete

        public Set<UserProfile> getUserProfilesToDelete()
      • getClientProjects

        public List<javax.faces.model.SelectItem> getClientProjects()
      • setClientProjects

        public void setClientProjects​(List<javax.faces.model.SelectItem> clientProjects)
      • getSelectedProjects

        public Long[] getSelectedProjects()
      • setSelectedProjects

        public void setSelectedProjects​(Long[] selectedProjects)
      • setFormThemeToApply

        public void setFormThemeToApply​(FormThemeReference formThemeToApply)
      • setMailData

        public void setMailData​(MandantMailData mailData)
        Parameters:
        mailData - the mailData to set
      • getAdminRole

        public Rolle getAdminRole()
      • getTestmailReceiver

        public String getTestmailReceiver()
        Returns:
        the testmailReceiver
      • setTestmailReceiver

        public void setTestmailReceiver​(String testmailReceiver)
        Parameters:
        testmailReceiver - the testmailReceiver to set
      • getFile

        public org.primefaces.model.file.UploadedFile getFile()
        Returns:
        the uploaded file containing a picture
      • setFile

        public void setFile​(org.primefaces.model.file.UploadedFile file)
        Parameters:
        file - the picture to set
      • updateModel

        public void updateModel()
      • getUserCountOfSelected

        public Integer getUserCountOfSelected()
      • getActiveFormCountOfSelected

        public Integer getActiveFormCountOfSelected()
      • getDisplayName

        public String getDisplayName​(Object value)
      • inviteNewClientAdmin

        public void inviteNewClientAdmin()
      • upload

        public void upload​(org.primefaces.event.FileUploadEvent evt)
        Method to handle upload event of a new client picture
        Parameters:
        evt - the upload event
      • getResourceDataString

        public String getResourceDataString()
        Method to return a hashed String of the uploaded files byte Array for an hidden input field
        Returns:
        hased String
      • removeActiveProfilePic

        public void removeActiveProfilePic()
        Method to remove active image from selected client
      • getUsedDiskSapce

        public long getUsedDiskSapce()
      • setUsedDiskSapce

        public void setUsedDiskSapce​(long usedDiskSapce)
      • applyFormTheme

        public void applyFormTheme()
        Method to apply the selected form theme to the selected projects. Updating the project is done via pagedDaoAction to avoid loading all projects at once. The form theme is stored in the form properties of the active form version and in the file entity as a JSON object.
      • validateDeleteConfirmation

        public void validateDeleteConfirmation​(javax.faces.context.FacesContext context,
                                               javax.faces.component.UIComponent component,
                                               Object value)
                                        throws javax.faces.validator.ValidatorException
        Throws:
        javax.faces.validator.ValidatorException
      • onOpenDeleteConfirmationDialog

        public void onOpenDeleteConfirmationDialog​(List<Mandant> clients)
      • onOpenDeleteConfirmationDialog

        public void onOpenDeleteConfirmationDialog​(Mandant client)
      • callbackExecutor

        public void callbackExecutor​(Runnable runnable)
      • getDeleteCallback

        public Runnable getDeleteCallback()
      • isHasClientAdmin

        public boolean isHasClientAdmin​(Mandant client)
      • isClientSpecificSupportAdressAllowed

        public boolean isClientSpecificSupportAdressAllowed()
      • testMailserver

        public void testMailserver()
      • isCurrentClientSelected

        public boolean isCurrentClientSelected()
      • isCurrentClientMarked

        public boolean isCurrentClientMarked()
      • isShowRemoveActiveImageButton

        public boolean isShowRemoveActiveImageButton()
      • isShowAdminRoleSettings

        public boolean isShowAdminRoleSettings()
      • deleteClient

        public void deleteClient​(Mandant client)
      • deleteClients

        public void deleteClients​(List<Mandant> clients)
      • getContractData

        public String getContractData()
        Returns:
        A JSON array with client relevant data for contract view. Used by the contract view of the client.
      • getLicenseDataAsJson

        public com.alibaba.fastjson.JSONObject getLicenseDataAsJson​(LicenseModel license)
      • getSystemMailSender

        public String getSystemMailSender()
      • getSystemMailSenderName

        public String getSystemMailSenderName()
      • isInviteLicensed

        @Deprecated
        public boolean isInviteLicensed()
        Deprecated.
      • isAppointmentsLicensed

        @Deprecated
        public boolean isAppointmentsLicensed()
        Deprecated.
      • getMaxFormRecordsDefault

        @Deprecated
        public String getMaxFormRecordsDefault()
        Deprecated.
      • getMaxInvitesDefault

        @Deprecated
        public String getMaxInvitesDefault()
        Deprecated.