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
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
-
-
-
-
Field Detail
-
viewContext
@Inject protected ViewContextBean viewContext
-
userManager
@Inject protected SessionUserManager userManager
-
enumBean
@Inject protected EnumBean enumBean
-
selectionBean
@Inject protected SelectionBean selectionBean
-
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.
-
model
protected DataTableEntriesModel<IClientDescriptor> model
-
custParameter
protected List<ParameterModel> custParameter
-
availableTypes
protected List<EAuthClientType> availableTypes
-
newKSPassword
protected String newKSPassword
-
newKPPassword
protected String newKPPassword
-
newKSFileData
protected byte[] newKSFileData
-
newKSFileName
protected String newKSFileName
-
authProps
protected IAuthenticatorProperties<E extends AAuthenticator<F>> authProps
-
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
-
viewBean
@Deprecated @Inject protected ViewBean viewBean
Deprecated.
-
-
Method Detail
-
getCallbackUrlTemplate
public String getCallbackUrlTemplate()
-
getNameValidatorId
public abstract String getNameValidatorId()
-
validateAlias
public abstract boolean validateAlias(String alias)
-
isNameExists
public abstract boolean isNameExists(String name)
-
canAccessAuthenticatorType
public abstract boolean canAccessAuthenticatorType(EAuthClientType type)
-
addNew
public abstract void addNew()
-
isSystem
public abstract boolean isSystem()
-
getDao
protected abstract IGenericDao<E> getDao()
-
save
protected abstract IAuthenticator<F> save(IEntityContext ec, E authenticator)
-
save
protected abstract void save(IEntityContext ec, EAuthClientType type)
-
newModel
protected abstract DataTableEntriesModel<IClientDescriptor> newModel()
-
getEntitySelectionType
protected abstract EEntityKeySelectionType getEntitySelectionType()
-
getAuthenticatorTypeOptions
protected abstract List<EAuthClientType> getAuthenticatorTypeOptions()
-
initNewSamlProps
protected abstract void initNewSamlProps(E authenticator)
-
buildServerOptions
protected abstract List<IServerModel> buildServerOptions()
-
isShowOmitWelcomeMail
public boolean isShowOmitWelcomeMail()
-
validateDelete
public void validateDelete(E entity)
-
delete
public void delete(E entity)
-
getIconStyleClass
public String getIconStyleClass(IClientDescriptor client)
-
getIconStyle
public String getIconStyle(IClientDescriptor client)
-
getIconValue
public String getIconValue(IClientDescriptor client)
-
deleteMarkedEntities
public void deleteMarkedEntities()
-
getConfirmDeleteMessages
public List<javax.faces.application.FacesMessage> getConfirmDeleteMessages()
-
getModel
public DataTableEntriesModel<IClientDescriptor> getModel()
-
getToDelete
public E getToDelete()
-
getSelectedServer
public IServerModel getSelectedServer()
-
setSelectedServer
public void setSelectedServer(IServerModel selectedServer)
-
getSelectedServers
public List<IServerModel> getSelectedServers()
-
setSelectedServers
public void setSelectedServers(List<IServerModel> selectedServers)
-
getServerOptions
public List<IServerModel> getServerOptions()
-
getSamlSpGeneratedMetadata
public org.primefaces.model.StreamedContent getSamlSpGeneratedMetadata()
-
getCustParameter
public List<ParameterModel> getCustParameter()
-
setCustParameter
public void setCustParameter(List<ParameterModel> parameter)
-
getAuthProps
public IAuthenticatorProperties<E> getAuthProps()
-
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()
-
getNewKSPassword
public String getNewKSPassword()
-
setNewKSPassword
public void setNewKSPassword(String newKSPassword)
-
getNewKPPassword
public String getNewKPPassword()
-
setNewKPPassword
public void setNewKPPassword(String newKPPassword)
-
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)
-
isSelectionDisabled
public boolean isSelectionDisabled(IClientDescriptor descriptor)
-
hasCallbackUrl
public boolean hasCallbackUrl(IClientDescriptor descriptor)
-
isRedirectClient
public boolean isRedirectClient(IClientDescriptor descriptor)
-
getSelectColumnStyleClass
public String getSelectColumnStyleClass(IClientDescriptor descriptor)
-
getRowStyleClass
public String getRowStyleClass(IClientDescriptor descriptor)
-
getNameStyleClass
public String getNameStyleClass(IClientDescriptor descriptor)
-
getRowKey
public String getRowKey(IClientDescriptor descriptor)
-
getName
public String getName(IClientDescriptor descriptor)
-
getDescription
public String getDescription(IClientDescriptor descriptor)
-
save
public void save()
saves current configuration in selected model
-
setKeystoreFile
public boolean setKeystoreFile(byte[] data, String filename, String keystorePassword, String keypairPassword, boolean isCustom)
-
generateNewKeyStore
public void generateNewKeyStore()
-
uploadCustomKeyStore
public void uploadCustomKeyStore(org.primefaces.event.FileUploadEvent event)
-
setIdPMetadataFile
public void setIdPMetadataFile(byte[] data, String filename)
-
uploadIdentityProviderMetadata
public void uploadIdentityProviderMetadata(org.primefaces.event.FileUploadEvent event)
-
refreshClient
public void refreshClient()
-
generateServiceProviderMetadata
public void generateServiceProviderMetadata()
-
isCustom
public boolean isCustom(IServerModel serverModel)
-
isServerOptionsMultiSelect
public boolean isServerOptionsMultiSelect()
-
activateConfigState
public void activateConfigState()
-
getGeneratedKeyStoreInfos
public String getGeneratedKeyStoreInfos()
-
updateAuthProps
public void updateAuthProps()
creates Attributes from selected ClientAuthenticator model
-
resetAttribtues
public void resetAttribtues()
resets all Bean Attribtues
-
saveTempAttributes
public void saveTempAttributes()
-
addCustomServerOption
public void addCustomServerOption(String baseUrl)
-
initServerOptions
public void initServerOptions()
-
initParameterModels
public void initParameterModels()
-
onSetType
public void onSetType(EAuthClientType type)
-
onSetType
public void onSetType(EAuthClientType type, String pluginName)
-
getHtmlHelpSnippet
public String getHtmlHelpSnippet()
-
getHelpPath
public String getHelpPath()
-
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()
-
checkConnection
public void checkConnection()
-
showLicenseHint
public boolean showLicenseHint(EAuthClientType type)
-
isShowCheckConnectionBtn
public boolean isShowCheckConnectionBtn()
-
isCheckConnectionBtnDisabled
public boolean isCheckConnectionBtnDisabled()
-
isShowTestUserRedirectClientButton
public boolean isShowTestUserRedirectClientButton()
-
isShowTestUserInputClientButton
public boolean isShowTestUserInputClientButton()
-
isLicensed
public boolean isLicensed(EAuthClientType authType)
-
getSelectionStoreValue
protected static String getSelectionStoreValue(IClientDescriptor descriptor)
-
processUpload
protected byte[] processUpload(org.primefaces.event.FileUploadEvent event)
-
resetProps
protected void resetProps()
-
getViewBean
@Deprecated public ViewBean getViewBean()
Deprecated.
-
setViewBean
@Deprecated public void setViewBean(ViewBean viewBean)
Deprecated.
-
getEnumBean
@Deprecated public EnumBean getEnumBean()
Deprecated.
-
setEnumBean
@Deprecated public void setEnumBean(EnumBean enumBean)
Deprecated.
-
loadCommonData
@PostConstruct protected void loadCommonData()
-
destroyPluginBeans
@PreDestroy protected void destroyPluginBeans()
-
getPluginForAuthenticator
protected abstract IPluginAuthenticatorType getPluginForAuthenticator(IClientDescriptor selected)
-
getBeanHelperForSelected
protected PluginBeanHelper<IPluginAuthenticatorCustomGUIBean,IPluginAuthenticatorType> getBeanHelperForSelected(IClientDescriptor selected, Mandant client)
-
getBeanHelperForPlugin
protected PluginBeanHelper<IPluginAuthenticatorCustomGUIBean,IPluginAuthenticatorType> getBeanHelperForPlugin(IPluginAuthenticatorType plugin, Mandant client)
-
isKerberosExtensionAllowed
public abstract boolean isKerberosExtensionAllowed(EAuthClientType type)
-
getClientScope
protected abstract Mandant getClientScope()
-
invokeOnAuthenticatorSelectedCallback
protected void invokeOnAuthenticatorSelectedCallback(PluginBeanHelper<IPluginAuthenticatorCustomGUIBean,IPluginAuthenticatorType> beanHelper, IClientDescriptor selected)
-
invokeOnAuthenticatorBeforeSaveCallback
protected boolean invokeOnAuthenticatorBeforeSaveCallback(PluginBeanHelper<IPluginAuthenticatorCustomGUIBean,IPluginAuthenticatorType> beanHelper, AAuthenticator<?> selected)
-
-