Class ClientAuthenticator
java.lang.Object
de.xima.cmn.dao.model.AEntity<Long>
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>, de.xima.cmn.dao.interfaces.ILockableEntity<Long>, ILocalizationProviding<ClientAuthenticator, ClientAuthenticatorLocalization>, IAuthenticator<ClientAuthenticatorFile>, IDescriptionProviding, ILockingVersionProviding, IMandantDependent, INameProviding, ITransferable, ITransferableEntity, ITransferableLockableEntity, IUUIDEntity, Serializable, Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
@Entity
public class ClientAuthenticator
extends AAuthenticator<ClientAuthenticatorFile>
implements IMandantDependent, ILocalizationProviding<ClientAuthenticator, ClientAuthenticatorLocalization>
Entity model for user authenticators in
Mandant scope- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class AAuthenticator
ATTR_CALLBACK_URL_TYPE, ATTR_CALLBACK_UUID, ATTR_CONFIG_STATE, ATTR_TYPE, attributes, COL_CALLBACK_URL_TYPE, COL_UUID, fileMapFields inherited from class AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersionFields inherited from class AbstractEntity
COL_ID, idFields inherited from interface IDescriptionProviding
ATTR_BESCHREIBUNG, ATTR_DESCRIPTION, COL_DESCRIPTIONFields inherited from interface de.xima.cmn.dao.interfaces.IEntity
ATTR_IDFields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSIONFields inherited from interface IMandantDependent
ATTR_CLIENT, COL_CLIENT_IDFields inherited from interface INameProviding
ATTR_NAME, COL_NAMEFields inherited from interface ITransferableEntity
IMPORT_ID, INVALID_IDFields inherited from interface IUUIDEntity
ATTR_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, NULLABLE_UUID_TYPE, TYPE_NAME_UUID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDisplayName(Locale locale) Get the display name of the authenticator for the given locale.getId()Gets all localization associated with this authenticator.Gets the default locale for this providing object.Creates a new localization object.voidonLoad()putFile(String key, ClientAuthenticatorFile file) voidsetDefaultLocale(Locale defaultLocale) voidsetLocalizations(List<ClientAuthenticatorLocalization> localizations) Sets all localization associated with this authenticator.voidsetMandant(Mandant mandant) Methods inherited from class AAuthenticator
getAttributeValue, getAttributeValue, getAttributeValueList, getAttributeValueMap, getBeschreibung, getCallbackUrlType, getCallbackUUID, getCallbackUUIDString, getConfigState, getDescription, getLoginButtonTitle, getName, getType, getUUID, getUUIDObject, putAttribute, putAttributes, putAttributes, removeAttribute, removeFile, setAttributes, setCallbackUrlType, setCallbackUUID, setCallbackUUIDString, setConfigState, setDescription, setFileMap, setLoginButtonTitle, setName, setType, setUUID, setUUIDObject, toStringMethods inherited from class AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersionMethods inherited from class AbstractEntity
asIntValue, isPersisted, setId, setIdMethods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCodeMethods inherited from interface Comparable
compareToMethods inherited from interface de.xima.cmn.dao.interfaces.IEntity
isPersisted, setIdMethods inherited from interface ILocalizationProviding
getKeys, getLocales, getLocalization, getLocalizationData, setLocalization
-
Field Details
-
ATTR_MANDANT
- See Also:
-
ATTR_LOCALIZATIONS
- See Also:
-
ATTR_DEFAULT_LOCALE
- See Also:
-
COL_CLIENTID
- See Also:
-
COL_DEFAULT_LOCALE
- See Also:
-
-
Constructor Details
-
ClientAuthenticator
public ClientAuthenticator()
-
-
Method Details
-
getId
-
getIdentifier
- Specified by:
getIdentifierin interfaceIAuthenticator<ClientAuthenticatorFile>- Returns:
- a unique key identifying this authenticator within the system, which is used in
IAuthenticatorConfigs
-
getMandant
- Specified by:
getMandantin interfaceIMandantDependent
-
setMandant
- Specified by:
setMandantin interfaceIMandantDependent
-
getDefaultLocale
-
setDefaultLocale
-
getLocalizationsDefaultLocale
Description copied from interface:ILocalizationProvidingGets the default locale for this providing object.- Specified by:
getLocalizationsDefaultLocalein interfaceILocalizationProviding<ClientAuthenticator, ClientAuthenticatorLocalization>- Returns:
- the default locale for this providing object
-
getLocalizations
Gets all localization associated with this authenticator. An authenticator may contain a localized display name.- Specified by:
getLocalizationsin interfaceILocalizationProviding<ClientAuthenticator, ClientAuthenticatorLocalization>- Returns:
- All localization associated with this authenticator.
-
setLocalizations
Sets all localization associated with this authenticator. An authenticator may contain a localized display name.- Parameters:
localizations- All localization associated with this authenticator.
-
newLocalization
Description copied from interface:ILocalizationProvidingCreates a new localization object.- Specified by:
newLocalizationin interfaceILocalizationProviding<ClientAuthenticator, ClientAuthenticatorLocalization>- Returns:
- a new localization object
-
getDisplayName
-
onLoad
public void onLoad() -
getAttributes
- Specified by:
getAttributesin interfaceIAuthenticator<ClientAuthenticatorFile>- Returns:
- A map of all key-value pairs as configured by the user for this authenticator. Please note that the value may be a JSON object, depending on the key.
-
getFileMap
- Specified by:
getFileMapin interfaceIAuthenticator<ClientAuthenticatorFile>- Returns:
- A map of files the user uploaded when they configured this authenticator, such as SSL certificates or configuration files.
-
putFile
Description copied from class:AAuthenticator- Specified by:
putFilein interfaceIAuthenticator<ClientAuthenticatorFile>- Overrides:
putFilein classAAuthenticator<ClientAuthenticatorFile>- Parameters:
key-Stringto store file underfile- the file to put into file map- Returns:
- the file previously stored for the given key or
nullif there wasn't any
-