Package de.xima.fc.gui.bean.settings
Class ClientBean
- All Implemented Interfaces:
ISupportChangeEventBean
,Serializable
- See Also:
-
Nested Class Summary
Nested ClassesNested 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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
callbackExecutor
(Runnable runnable) void
Deprecated.void
deleteClient
(Mandant client) void
deleteClients
(List<Mandant> clients) void
destroy()
Deprecated.Deprecated.Deprecated.UsePasswordPolicyBean.getGlobalPwdRulesHint()
instead.getDisplayName
(Object value) org.primefaces.model.file.UploadedFile
getFile()
com.alibaba.fastjson.JSONObject
getLicenseDataAsJson
(LicenseModel license) Gets the licensedataSnapshotGets the licenseModelDeprecated.Deprecated.int
Deprecated.UsePasswordPolicyBean.getGlobalMinPwdLength()
instead.getModel()
Method to return a hashed String of the uploaded files byte Array for an hidden input fieldlong
void
Deprecated.void
init()
void
boolean
Deprecated.boolean
boolean
boolean
boolean
boolean
isHasClientAdmin
(Mandant client) boolean
Deprecated.boolean
boolean
void
void
onOpenDeleteConfirmationDialog
(List<Mandant> clients) void
Method to remove active image from selected clientvoid
removeDirectClientAuthorization
(DirectClientAuthorization authorization) void
resendInvitation
(DirectClientAuthorization authorization) void
setApplicationEventBusBean
(ApplicationEventBusBean applicationEventBusBean) Deprecated.void
setBackendBean
(BackendBean backendBean) Deprecated.void
setClientsToDelete
(List<Mandant> clientsToDelete) void
setDeleteClientExclusiveUsers
(boolean deleteClientExclusiveUsers) void
setDeleteConfirmation
(String deleteConfirmation) void
setFile
(org.primefaces.model.file.UploadedFile file) void
setLicensedataSnapshot
(LicenseDataSnapshot licensedataSnapshot) Sets the licensedataSnapshotvoid
setLicenseModel
(LicenseModel licenseModel) Sets the licenseModelvoid
setMailData
(MandantMailData mailData) void
void
setNewAdminEmail
(UserEmailQueryResult newAdminEmail) void
setTestmailReceiver
(String testmailReceiver) void
setUsedDiskSapce
(long usedDiskSapce) void
void
void
upload
(org.primefaces.event.FileUploadEvent evt) Method to handle upload event of a new client picturevoid
validateDeleteConfirmation
(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value) Methods inherited from class de.xima.fc.gui.bean.FCContextBean
getNavigationBean, getSessionBean, isSetupUser, redirectToDashboard, setNavigationBean, 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, 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, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, errorMsg, errorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg, msg
Methods inherited from class de.xima.fc.gui.common.utils.msg.I18nUtils
getFacesContext, getLocale, rbValue, rbValue, rbValue, rbValueOrDefault, rbValueOrDefault
-
Constructor Details
-
ClientBean
public ClientBean()
-
-
Method Details
-
init
@PostConstruct public void init() -
destroy
@PreDestroy public void destroy() -
getLicenseModel
Gets the licenseModel- Returns:
- the licenseModel
-
setLicenseModel
Sets the licenseModel- Parameters:
licenseModel
- the licenseModel to set
-
getLicensedataSnapshot
Gets the licensedataSnapshot- Returns:
- the licensedataSnapshot
-
setLicensedataSnapshot
Sets the licensedataSnapshot- Parameters:
licensedataSnapshot
- the licensedataSnapshot to set
-
getNewAdminEmail
-
setNewAdminEmail
-
getClientsToDelete
-
setClientsToDelete
-
getClientsToDeleteConfirmationString
-
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
- 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
-
getMailData
- Returns:
- the mailData
-
setMailData
- Parameters:
mailData
- the mailData to set
-
getAdminRole
-
getTestmailReceiver
- Returns:
- the testmailReceiver
-
setTestmailReceiver
- 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
-
getModel
- Returns:
- the model
-
setModel
- Parameters:
model
- the model to set
-
updateModel
public void updateModel() -
getUserCountOfSelected
-
getActiveFormCountOfSelected
-
getClientAdminsOfSelected
-
getDisplayName
-
inviteNewClientAdmin
public void inviteNewClientAdmin() -
resendInvitation
-
removeDirectClientAuthorization
-
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
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) -
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
-
onOpenDeleteConfirmationDialog
-
callbackExecutor
-
getDeleteCallback
-
isHasClientAdmin
-
isClientSpecificSupportAdressAllowed
public boolean isClientSpecificSupportAdressAllowed() -
findUsers
-
testMailserver
public void testMailserver() -
isCurrentClientSelected
public boolean isCurrentClientSelected() -
isCurrentClientMarked
public boolean isCurrentClientMarked() -
isShowRemoveActiveImageButton
public boolean isShowRemoveActiveImageButton() -
isShowAdminRoleSettings
public boolean isShowAdminRoleSettings() -
deleteClient
-
deleteClients
-
getContractData
- Returns:
- A JSON array with client relevant data for contract view. Used by the contract view of the client.
-
getLicenseDataAsJson
-
getMailServerData
-
getSystemMailSender
-
getSystemMailSenderName
-
checkPasswordStrength
Deprecated.UsePasswordPolicyBean.checkPasswordStrength()
instead. -
getMinPwdLength
Deprecated.UsePasswordPolicyBean.getGlobalMinPwdLength()
instead. -
handleChangeEvent
Deprecated.- Specified by:
handleChangeEvent
in interfaceISupportChangeEventBean
-
getConfiguredPwdRules
Deprecated.UsePasswordPolicyBean.getGlobalPwdRulesHint()
instead. -
isInviteLicensed
Deprecated. -
isAppointmentsLicensed
Deprecated. -
getMaxFormRecordsDefault
Deprecated. -
getMaxInvitesDefault
Deprecated. -
getBackendBean
Deprecated. -
setBackendBean
Deprecated. -
getApplicationEventBusBean
Deprecated. -
setApplicationEventBusBean
Deprecated.
-
PasswordPolicyBean.checkPasswordStrength()
instead.