Class UserProfileConfigBean
- java.lang.Object
-
- de.xima.fc.gui.common.bean.profile.UserProfileConfigBean
-
- All Implemented Interfaces:
Serializable
@Named @ViewScoped public class UserProfileConfigBean extends Object implements Serializable
View scoped Bean for handling of displaying and changing user data- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserProfileConfigBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChangePwdModel
getChangePwdModel()
org.primefaces.model.file.UploadedFile
getFile()
UserProfile
getProfile()
String
getResourceDataString()
Method to return a hashed String of the uploaded files byte Array for an hidden input fieldString
getSaveButtonValue()
String
getSuperUserName()
String
getSuperUserPwdPanelMode()
void
init()
boolean
isShowBaseSettings()
boolean
isShowDefaultClientPreferences()
boolean
isShowPreferences()
boolean
isShowSaveButton()
boolean
isShowUserEmailsPanel()
boolean
isShowUserIdentitiesPanel()
boolean
isShowUserSecurityPanel()
boolean
isSuperUser()
Runnable
profileUpdatedCallback()
BiConsumer<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse>
profileUpdatedConsumer()
void
removeActiveProfilePic()
void
saveCurrentUser()
Method to be called from profile.xhtml to save User data in anUserProfile
or for sadmin in application.propertiesvoid
sendDeleteRequestEmail()
void
setChangePwdModel(ChangePwdModel changePwdModel)
void
setFile(org.primefaces.model.file.UploadedFile file)
void
setSuperUserName(String superUserName)
void
setSuperUserPwdPanelMode(String superUserPwdPanelMode)
void
upload(org.primefaces.event.FileUploadEvent evt)
-
-
-
Method Detail
-
init
@PostConstruct public void init()
-
getProfile
public UserProfile getProfile()
-
getSaveButtonValue
public String getSaveButtonValue()
-
getSuperUserName
public String getSuperUserName()
-
setSuperUserName
public void setSuperUserName(String superUserName)
-
isSuperUser
public boolean isSuperUser()
-
getSuperUserPwdPanelMode
public String getSuperUserPwdPanelMode()
-
setSuperUserPwdPanelMode
public void setSuperUserPwdPanelMode(String superUserPwdPanelMode)
-
isShowBaseSettings
public boolean isShowBaseSettings()
-
isShowSaveButton
public boolean isShowSaveButton()
-
isShowPreferences
public boolean isShowPreferences()
-
isShowDefaultClientPreferences
public boolean isShowDefaultClientPreferences()
-
isShowUserIdentitiesPanel
public boolean isShowUserIdentitiesPanel()
-
isShowUserEmailsPanel
public boolean isShowUserEmailsPanel()
-
isShowUserSecurityPanel
public boolean isShowUserSecurityPanel()
-
getChangePwdModel
public ChangePwdModel getChangePwdModel()
-
setChangePwdModel
public void setChangePwdModel(ChangePwdModel changePwdModel)
-
getFile
public org.primefaces.model.file.UploadedFile getFile()
-
setFile
public void setFile(org.primefaces.model.file.UploadedFile file)
-
getResourceDataString
public String getResourceDataString()
Method to return a hashed String of the uploaded files byte Array for an hidden input field- Returns:
- hased String
-
saveCurrentUser
public void saveCurrentUser()
Method to be called from profile.xhtml to save User data in anUserProfile
or for sadmin in application.properties
-
upload
public void upload(org.primefaces.event.FileUploadEvent evt)
-
removeActiveProfilePic
public void removeActiveProfilePic()
-
sendDeleteRequestEmail
public void sendDeleteRequestEmail()
-
profileUpdatedCallback
public Runnable profileUpdatedCallback()
-
profileUpdatedConsumer
public BiConsumer<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> profileUpdatedConsumer()
-
-