Package de.xima.fc.gui.bean
Class AExternalUserBean<F extends IAuthentticatorFile<?,?>,E extends AAuthenticator<F>>
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ExternalUserClientBean
,ExternalUserSystemBean
public abstract class AExternalUserBean<F extends IAuthentticatorFile<?,?>,E extends AAuthenticator<F>> extends FCContextBean
- Author:
- XIMA MEDIA GmbH, Dresden - Michael Kohlsche - 09.04.2020
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
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
-
Fields inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
localeBean
-
-
Constructor Summary
Constructors Constructor Description AExternalUserBean()
-
Method Summary
-
Methods inherited from class de.xima.fc.gui.bean.FCContextBean
isSetupUser, redirectToDashboard, 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
-
-
-
-
Field Detail
-
pluginViewURL
protected URL pluginViewURL
-
usedBeanHelpers
protected final Map<String,PluginBeanHelper<IPluginAuthenticatorCustomGUIBean,IPluginAuthenticatorType>> usedBeanHelpers
AList
of authentication GUI plugins that were used at some point. Used for cleaning up.
-
navigationBean
@Inject protected NavigationBean navigationBean
-
sessionBean
@Inject protected SessionBean sessionBean
-
viewBean
@Inject protected ViewBean viewBean
-
enumBean
@Inject protected EnumBean enumBean
-
model
protected IEntityListModelSelectByView<E extends AAuthenticator<F>> model
-
custParameter
protected List<ParameterModel> custParameter
-
availableTypes
protected List<EAuthClientType> availableTypes
-
uploadKeyStore
protected boolean uploadKeyStore
-
newKSPassword
protected String newKSPassword
-
newKPPassword
protected String newKPPassword
-
newKSFile
protected F extends IAuthentticatorFile<?,?> newKSFile
-
wrapper
protected IAuthenticatorWrapper<E extends AAuthenticator<F>> wrapper
-
mapFirstName
protected String mapFirstName
-
mapLastName
protected String mapLastName
-
mapDisplayName
protected String mapDisplayName
-
mapUserName
protected String mapUserName
-
mapMail
protected String mapMail
-
mapProfileUrl
protected String mapProfileUrl
-
mapPictureUrl
protected String mapPictureUrl
-
mapLocation
protected String mapLocation
-
mapLocale
protected String mapLocale
-
uuidString
protected String uuidString
-
pluginFiles
protected List<AuthPluginParameterModel<F extends IAuthentticatorFile<?,?>>> pluginFiles
-
authenticationMethods
protected List<org.apache.commons.lang3.tuple.Pair<String,String>> authenticationMethods
-
-
Method Detail
-
createEmptyFile
public abstract F createEmptyFile(byte[] data, org.primefaces.event.FileUploadEvent event)
-
getNameValidatorId
public abstract String getNameValidatorId()
-
validateAlias
public abstract boolean validateAlias(String alias)
-
isNameExists
public abstract boolean isNameExists(String name)
-
createNewKeyStore
public abstract void createNewKeyStore()
-
canAccessAuthenticatorType
public abstract boolean canAccessAuthenticatorType(EAuthClientType type)
-
createServiceProviderMetadata
public abstract org.primefaces.model.StreamedContent createServiceProviderMetadata()
-
getViewBean
public ViewBean getViewBean()
-
setViewBean
public void setViewBean(ViewBean viewBean)
-
getNavigationBean
public NavigationBean getNavigationBean()
- Overrides:
getNavigationBean
in classFCContextBean
- Returns:
- the navigationBean
-
setNavigationBean
public void setNavigationBean(NavigationBean navigationBean)
- Overrides:
setNavigationBean
in classFCContextBean
- Parameters:
navigationBean
- the navigationBean to set
-
getCustParameter
public List<ParameterModel> getCustParameter()
-
setCustParameter
public void setCustParameter(List<ParameterModel> parameter)
-
getSessionBean
public SessionBean getSessionBean()
- Overrides:
getSessionBean
in classFCContextBean
-
setSessionBean
public void setSessionBean(SessionBean sessionBean)
- Overrides:
setSessionBean
in classFCContextBean
-
getWrapper
public IAuthenticatorWrapper<?> getWrapper()
-
getEnumBean
public EnumBean getEnumBean()
-
setEnumBean
public void setEnumBean(EnumBean enumBean)
-
getAuthenticationMethods
public List<org.apache.commons.lang3.tuple.Pair<String,String>> getAuthenticationMethods()
-
getAvailableTypes
public List<EAuthClientType> getAvailableTypes()
-
setAvailableTypes
public void setAvailableTypes(List<EAuthClientType> availableTypes)
-
isUploadKeyStore
public boolean isUploadKeyStore()
-
setUploadKeyStore
public void setUploadKeyStore(boolean uploadKeyStore)
-
getNewKSPassword
public String getNewKSPassword()
-
setNewKSPassword
public void setNewKSPassword(String newKSPassword)
-
getNewKPPassword
public String getNewKPPassword()
-
setNewKPPassword
public void setNewKPPassword(String newKPPassword)
-
getNewKSFile
public F getNewKSFile()
-
setNewKSFile
public void setNewKSFile(F newKSFile)
-
getMapFirstName
public String getMapFirstName()
-
setMapFirstName
public void setMapFirstName(String mapFirstName)
-
getMapLastName
public String getMapLastName()
-
setMapLastName
public void setMapLastName(String mapLastName)
-
getMapDisplayName
public String getMapDisplayName()
-
setMapDisplayName
public void setMapDisplayName(String mapDisplayName)
-
getMapUserName
public String getMapUserName()
-
setMapUserName
public void setMapUserName(String mapUserName)
-
getMapMail
public String getMapMail()
-
setMapMail
public void setMapMail(String mapMail)
-
getMapLocale
public String getMapLocale()
-
setMapLocale
public void setMapLocale(String mapLocale)
-
getMapLocation
public String getMapLocation()
-
setMapLocation
public void setMapLocation(String mapLocation)
-
getMapPictureUrl
public String getMapPictureUrl()
-
setMapPictureUrl
public void setMapPictureUrl(String mapPictureUrl)
-
getMapProfileUrl
public String getMapProfileUrl()
-
setMapProfileUrl
public void setMapProfileUrl(String mapProfileUrl)
-
getPluginFiles
public List<AuthPluginParameterModel<F>> getPluginFiles()
-
setPluginFiles
public void setPluginFiles(List<AuthPluginParameterModel<F>> pluginFiles)
-
getUuidString
public String getUuidString()
-
setUuidString
public void setUuidString(String uUIDString)
-
uploadFile
public void uploadFile(org.primefaces.event.FileUploadEvent event)
-
addNewCustParameter
public ParameterModel addNewCustParameter()
-
addNewCustParameter
public void addNewCustParameter(ParameterModel model)
-
removeCustParameter
public void removeCustParameter(int idx)
-
removeFileParameter
public void removeFileParameter(int idx)
-
addFileParameter
public void addFileParameter(AuthPluginParameterModel<F> model)
-
processUpload
protected byte[] processUpload(org.primefaces.event.FileUploadEvent event)
-
save
public void save()
saves current configuration in selected model
-
activateConfigState
public void activateConfigState()
-
getGeneratedKeyStoreInfos
public String getGeneratedKeyStoreInfos()
-
updateWrapper
public void updateWrapper()
creates Attributes from selected ClientAuthentificator model
-
resetAttribtues
public void resetAttribtues()
resets all Bean Attribtues
-
saveTempAttributes
public void saveTempAttributes()
-
initParameterModels
public void initParameterModels()
-
onSetType
public void onSetType(EAuthClientType type)
-
onSetType
public void onSetType(EAuthClientType type, String pluginName)
-
openHelp
public String openHelp()
-
getPluginViewURL
public URL getPluginViewURL()
-
downloadFile
public org.primefaces.model.StreamedContent downloadFile(String fileAttribute)
-
downloadFile
public org.primefaces.model.StreamedContent downloadFile(F file)
-
setType
public void setType(EAuthClientType type)
-
getCallbackUrlType
public EAuthCallbackUrlType getCallbackUrlType()
-
setCallbackUrlType
public void setCallbackUrlType(EAuthCallbackUrlType type)
-
getEMailContent
public String getEMailContent()
-
isCanAccessAnyStandardAuthenticators
public boolean isCanAccessAnyStandardAuthenticators()
-
destroyPluginBeans
@PreDestroy protected void destroyPluginBeans()
-
getPluginForAuthenticator
protected IPluginAuthenticatorType getPluginForAuthenticator(AAuthenticator<?> selected)
-
getBeanHelperForSelected
protected PluginBeanHelper<IPluginAuthenticatorCustomGUIBean,IPluginAuthenticatorType> getBeanHelperForSelected(AAuthenticator<?> selected, Mandant client)
-
getBeanHelperForPlugin
protected PluginBeanHelper<IPluginAuthenticatorCustomGUIBean,IPluginAuthenticatorType> getBeanHelperForPlugin(IPluginAuthenticatorType plugin, Mandant client)
-
getClientScope
protected abstract Mandant getClientScope()
-
invokeOnAuthenticatorSelectedCallback
protected void invokeOnAuthenticatorSelectedCallback(PluginBeanHelper<IPluginAuthenticatorCustomGUIBean,IPluginAuthenticatorType> beanHelper, AAuthenticator<?> selected)
-
invokeOnAuthenticatorBeforeSaveCallback
protected boolean invokeOnAuthenticatorBeforeSaveCallback(PluginBeanHelper<IPluginAuthenticatorCustomGUIBean,IPluginAuthenticatorType> beanHelper, AAuthenticator<?> selected)
-
-