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:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
AJSFContext.RedirectOptions, AJSFContext.RedirectOptionsBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IAuthenticatorProperties<E>
protected List<EAuthClientType>
protected List<ParameterModel>
protected EnumBean
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected DataTableEntriesModel<IClientDescriptor>
protected String
protected byte[]
protected String
protected String
protected List<AuthPluginParameterModel<F>>
protected URL
protected SelectionBean
protected final Map<String,
PluginBeanHelper<IPluginAuthenticatorCustomGUIBean, IPluginAuthenticatorType>> AList
of authentication GUI plugins that were used at some point.protected SessionUserManager
protected String
protected ViewBean
Deprecated.protected ViewContextBean
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
void
addCustomServerOption
(String baseUrl) void
abstract void
addNew()
void
protected abstract List<IServerModel>
abstract boolean
void
abstract F
createNewFile
(byte[] data, String filename) void
void
protected void
org.primefaces.model.StreamedContent
downloadFile
(F file) org.primefaces.model.StreamedContent
downloadFile
(String fileAttribute) void
void
getAuthenticationJwsAlgos
(boolean includeNone) protected abstract List<EAuthClientType>
getBeanHelperForPlugin
(IPluginAuthenticatorType plugin, Mandant client) getBeanHelperForSelected
(IClientDescriptor selected, Mandant client) getCallbackURL
(boolean withClientName) protected abstract Mandant
List<javax.faces.application.FacesMessage>
protected abstract IGenericDao<E>
getDao()
getDefaultSpEntityId
(E authenticator) getDescription
(IClientDescriptor descriptor) protected abstract EEntityKeySelectionType
Deprecated.getIconStyle
(IClientDescriptor client) getIconStyleClass
(IClientDescriptor client) getIconValue
(IClientDescriptor client) getModel()
getName
(IClientDescriptor descriptor) getNameStyleClass
(IClientDescriptor descriptor) abstract String
protected abstract IPluginAuthenticatorType
getPluginForAuthenticator
(IClientDescriptor selected) getRowKey
(IClientDescriptor descriptor) getRowStyleClass
(IClientDescriptor descriptor) org.primefaces.model.StreamedContent
getSelectColumnStyleClass
(IClientDescriptor descriptor) protected static String
getSelectionStoreValue
(IClientDescriptor descriptor) Deprecated.boolean
hasCallbackUrl
(IClientDescriptor descriptor) protected abstract void
initNewSamlProps
(E authenticator) void
void
protected boolean
invokeOnAuthenticatorBeforeSaveCallback
(PluginBeanHelper<IPluginAuthenticatorCustomGUIBean, IPluginAuthenticatorType> beanHelper, AAuthenticator<?> selected) protected void
invokeOnAuthenticatorSelectedCallback
(PluginBeanHelper<IPluginAuthenticatorCustomGUIBean, IPluginAuthenticatorType> beanHelper, IClientDescriptor selected) boolean
boolean
boolean
isCustom
(IServerModel serverModel) abstract boolean
abstract boolean
isNameExists
(String name) boolean
isRedirectClient
(IClientDescriptor descriptor) boolean
isSelectionDisabled
(IClientDescriptor descriptor) boolean
boolean
boolean
boolean
boolean
abstract boolean
isSystem()
boolean
protected void
protected abstract DataTableEntriesModel<IClientDescriptor>
newModel()
void
onSetType
(EAuthClientType type) void
onSetType
(EAuthClientType type, String pluginName) protected byte[]
processUpload
(org.primefaces.event.FileUploadEvent event) void
void
removeCustParameter
(int idx) void
removeFileParameter
(int idx) void
resets all Bean Attribtuesprotected void
void
save()
saves current configuration in selected modelprotected abstract void
save
(IEntityContext ec, EAuthClientType type) protected abstract IAuthenticator<F>
save
(IEntityContext ec, E authenticator) void
void
setAvailableTypes
(List<EAuthClientType> availableTypes) void
void
setCustParameter
(List<ParameterModel> parameter) void
setEnumBean
(EnumBean enumBean) Deprecated.void
setIdPMetadataFile
(byte[] data, String filename) boolean
setKeystoreFile
(byte[] data, String filename, String keystorePassword, String keypairPassword, boolean isCustom) void
setMapDisplayName
(String mapDisplayName) void
setMapFirstName
(String mapFirstName) void
setMapLastName
(String mapLastName) void
setMapLocale
(String mapLocale) void
setMapLocation
(String mapLocation) void
setMapMail
(String mapMail) void
setMapPictureUrl
(String mapPictureUrl) void
setMapProfileUrl
(String mapProfileUrl) void
setMapUserName
(String mapUserName) void
setNewKPPassword
(String newKPPassword) void
setNewKSPassword
(String newKSPassword) void
setPluginFiles
(List<AuthPluginParameterModel<F>> pluginFiles) void
setSelectedServer
(IServerModel selectedServer) void
setSelectedServers
(List<IServerModel> selectedServers) void
setType
(EAuthClientType type) void
setUuidString
(String uUIDString) void
setViewBean
(ViewBean viewBean) Deprecated.boolean
translateAuthReq
(String constant) translateBindingTypes
(String constant) void
creates Attributes from selected ClientAuthenticator modelvoid
uploadCustomKeyStore
(org.primefaces.event.FileUploadEvent event) void
uploadFile
(org.primefaces.event.FileUploadEvent event) void
uploadIdentityProviderMetadata
(org.primefaces.event.FileUploadEvent event) abstract boolean
validateAlias
(String alias) void
validateDelete
(E entity) 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 Details
-
viewContext
-
userManager
-
enumBean
-
selectionBean
-
pluginViewURL
-
usedBeanHelpers
protected final Map<String,PluginBeanHelper<IPluginAuthenticatorCustomGUIBean, usedBeanHelpersIPluginAuthenticatorType>> AList
of authentication GUI plugins that were used at some point. Used for cleaning up. -
model
-
custParameter
-
availableTypes
-
newKSPassword
-
newKPPassword
-
newKSFileData
protected byte[] newKSFileData -
newKSFileName
-
authProps
-
mapFirstName
-
mapLastName
-
mapDisplayName
-
mapUserName
-
mapMail
-
mapProfileUrl
-
mapPictureUrl
-
mapLocation
-
mapLocale
-
uuidString
-
pluginFiles
-
authenticationMethods
-
googleScopes
-
responseModes
-
responseTypes
-
oidDisabledScopeTags
-
azureDisabledScopeTags
-
facebookDisabledScopeTags
-
codeChallengeMethods
-
oauthProfileRequestType
-
viewBean
Deprecated.
-
-
Constructor Details
-
AExternalUserBean
public AExternalUserBean()
-
-
Method Details
-
getCallbackUrlTemplate
-
createNewFile
-
getNameValidatorId
-
validateAlias
-
isNameExists
-
canAccessAuthenticatorType
-
addNew
public abstract void addNew() -
isSystem
public abstract boolean isSystem() -
getDao
-
save
-
save
-
newModel
-
getEntitySelectionType
-
getAuthenticatorTypeOptions
-
initNewSamlProps
-
buildServerOptions
-
isShowOmitWelcomeMail
public boolean isShowOmitWelcomeMail() -
validateDelete
-
delete
-
getIconStyleClass
-
getIconStyle
-
getIconValue
-
deleteMarkedEntities
public void deleteMarkedEntities() -
getConfirmDeleteMessages
-
getModel
-
getToDelete
-
getSelectedServer
-
setSelectedServer
-
getSelectedServers
-
setSelectedServers
-
getServerOptions
-
getSamlSpGeneratedMetadata
public org.primefaces.model.StreamedContent getSamlSpGeneratedMetadata() -
getCustParameter
-
setCustParameter
-
getAuthProps
-
getAuthenticationMethods
-
getGoogleScopes
-
getAvailableTypes
-
getAuthenticationJwsAlgos
-
getResponseModes
-
getResponseTypes
-
setAvailableTypes
-
isUploadKeyStore
public boolean isUploadKeyStore() -
getNewKSPassword
-
setNewKSPassword
-
getNewKPPassword
-
setNewKPPassword
-
getMapFirstName
-
setMapFirstName
-
getMapLastName
-
setMapLastName
-
getMapDisplayName
-
setMapDisplayName
-
getMapUserName
-
setMapUserName
-
getMapMail
-
setMapMail
-
getMapLocale
-
setMapLocale
-
getMapLocation
-
setMapLocation
-
getMapPictureUrl
-
setMapPictureUrl
-
getMapProfileUrl
-
setMapProfileUrl
-
getPluginFiles
-
setPluginFiles
-
getUuidString
-
setUuidString
-
getOidDisabledScopeTags
-
getFacebookDisabledScopeTags
-
uploadFile
public void uploadFile(org.primefaces.event.FileUploadEvent event) -
addNewCustParameter
-
addNewCustParameter
-
removeCustParameter
public void removeCustParameter(int idx) -
removeFileParameter
public void removeFileParameter(int idx) -
addFileParameter
-
isSelectionDisabled
-
hasCallbackUrl
-
isRedirectClient
-
getSelectColumnStyleClass
-
getRowStyleClass
-
getNameStyleClass
-
getRowKey
-
getName
-
getDescription
-
save
public void save()saves current configuration in selected model -
setKeystoreFile
-
generateNewKeyStore
public void generateNewKeyStore() -
uploadCustomKeyStore
public void uploadCustomKeyStore(org.primefaces.event.FileUploadEvent event) -
setIdPMetadataFile
-
uploadIdentityProviderMetadata
public void uploadIdentityProviderMetadata(org.primefaces.event.FileUploadEvent event) -
refreshClient
public void refreshClient() -
getDefaultSpEntityId
-
generateServiceProviderMetadata
public void generateServiceProviderMetadata() -
isCustom
-
isServerOptionsMultiSelect
public boolean isServerOptionsMultiSelect() -
activateConfigState
public void activateConfigState() -
getGeneratedKeyStoreInfos
-
updateAuthProps
public void updateAuthProps()creates Attributes from selected ClientAuthenticator model -
resetAttribtues
public void resetAttribtues()resets all Bean Attribtues -
saveTempAttributes
public void saveTempAttributes() -
addCustomServerOption
-
initServerOptions
public void initServerOptions() -
initParameterModels
public void initParameterModels() -
onSetType
-
onSetType
-
getHtmlHelpSnippet
-
getHelpPath
-
getPluginViewURL
-
downloadFile
-
downloadFile
-
setType
-
getCallbackUrlType
-
setCallbackUrlType
-
getCallbackURL
-
getCallbackURL
-
getEMailContent
-
isCanAccessAnyStandardAuthenticators
public boolean isCanAccessAnyStandardAuthenticators() -
getAuthnRequestBindingTypes
-
getResponseBindingTypes
-
getOAuthProfileRequestTypes
-
translateAuthReq
-
translateBindingTypes
-
checkConnection
public void checkConnection() -
showLicenseHint
-
isShowCheckConnectionBtn
public boolean isShowCheckConnectionBtn() -
isCheckConnectionBtnDisabled
public boolean isCheckConnectionBtnDisabled() -
isShowTestUserRedirectClientButton
public boolean isShowTestUserRedirectClientButton() -
isShowTestUserInputClientButton
public boolean isShowTestUserInputClientButton() -
getSelectionStoreValue
-
processUpload
protected byte[] processUpload(org.primefaces.event.FileUploadEvent event) -
resetProps
protected void resetProps() -
getViewBean
Deprecated. -
setViewBean
Deprecated. -
getEnumBean
Deprecated. -
setEnumBean
Deprecated. -
loadCommonData
@PostConstruct protected void loadCommonData() -
destroyPluginBeans
@PreDestroy protected void destroyPluginBeans() -
getPluginForAuthenticator
-
getBeanHelperForSelected
protected PluginBeanHelper<IPluginAuthenticatorCustomGUIBean,IPluginAuthenticatorType> getBeanHelperForSelected(IClientDescriptor selected, Mandant client) -
getBeanHelperForPlugin
protected PluginBeanHelper<IPluginAuthenticatorCustomGUIBean,IPluginAuthenticatorType> getBeanHelperForPlugin(IPluginAuthenticatorType plugin, Mandant client) -
isKerberosExtensionAllowed
-
getClientScope
-
invokeOnAuthenticatorSelectedCallback
protected void invokeOnAuthenticatorSelectedCallback(PluginBeanHelper<IPluginAuthenticatorCustomGUIBean, IPluginAuthenticatorType> beanHelper, IClientDescriptor selected) -
invokeOnAuthenticatorBeforeSaveCallback
protected boolean invokeOnAuthenticatorBeforeSaveCallback(PluginBeanHelper<IPluginAuthenticatorCustomGUIBean, IPluginAuthenticatorType> beanHelper, AAuthenticator<?> selected) -
getCodeChallengeMethods
-