Package de.xima.fc.entities
Class AAuthenticatorConfig
- java.lang.Object
-
- de.xima.cmn.dao.model.AEntity<Long>
-
- de.xima.fc.entities.AbstractEntity
-
- de.xima.fc.entities.AbstractLockableEntity
-
- de.xima.fc.entities.ALockableEntity
-
- de.xima.fc.entities.AAuthenticatorConfig
-
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>
,de.xima.cmn.dao.interfaces.ILockableEntity<Long>
,IAuthenticatorConfig
,ILockingVersionProviding
,ITransferable
,ITransferableEntity
,ITransferableLockableEntity
,IStringAttributesMixin
,Serializable
,Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
- Direct Known Subclasses:
ProjectAuthenticatorConfig
,WorkflowStateAuthenticatorConfig
@MappedSuperclass public abstract class AAuthenticatorConfig extends ALockableEntity implements IAuthenticatorConfig
Abstract base class for authenticator configurations- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTR_AUTHENTICATOR_TYPE
static String
ATTR_CLIENTAUTHENTICATOR
static String
ATTR_ORDER_IDX
static String
ATTR_SYSTEMAUTHENTICATOR
protected @NotNull EAuthClientType
authenticatorType
protected ClientAuthenticator
clientAuthenticator
protected SystemAuthenticator
systemAuthenticator
-
Fields inherited from class de.xima.fc.entities.AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersion
-
Fields inherited from class de.xima.fc.entities.AbstractEntity
COL_ID, id
-
Fields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_ID
-
-
Constructor Summary
Constructors Constructor Description AAuthenticatorConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IAuthenticator<?>
getAuthenticator()
String
getAuthenticatorToken()
EAuthClientType
getAuthenticatorType()
ClientAuthenticator
getClientAuthenticator()
String
getDisplayName(Locale locale)
String
getI18nPlaceholder()
String
getIdentifier()
SystemAuthenticator
getSystemAuthenticator()
void
setAuthenticator(IAuthenticator<?> authenticator)
void
setAuthenticatorType(EAuthClientType authenticatorType)
void
setClientAuthenticator(ClientAuthenticator clientAuthenticator)
void
setSystemAuthenticator(SystemAuthenticator systemAuthenticator)
String
toString()
-
Methods inherited from class de.xima.fc.entities.AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion
-
Methods inherited from class de.xima.fc.entities.AbstractEntity
asIntValue, isPersisted, setId, setId
-
Methods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface de.xima.fc.interfaces.mixin.attributes.IStringAttributesMixin
getAttributes, getAttributeValue, getAttributeValueList, getAttributeValueMap, putAttribute, putAttributes, putAttributes, removeAttribute
-
-
-
-
Field Detail
-
ATTR_CLIENTAUTHENTICATOR
public static final String ATTR_CLIENTAUTHENTICATOR
- See Also:
- Constant Field Values
-
ATTR_SYSTEMAUTHENTICATOR
public static final String ATTR_SYSTEMAUTHENTICATOR
- See Also:
- Constant Field Values
-
ATTR_AUTHENTICATOR_TYPE
public static final String ATTR_AUTHENTICATOR_TYPE
- See Also:
- Constant Field Values
-
ATTR_ORDER_IDX
public static final String ATTR_ORDER_IDX
- See Also:
- Constant Field Values
-
authenticatorType
@NotNull protected @NotNull EAuthClientType authenticatorType
-
clientAuthenticator
protected ClientAuthenticator clientAuthenticator
-
systemAuthenticator
protected SystemAuthenticator systemAuthenticator
-
-
Method Detail
-
getAuthenticatorType
public EAuthClientType getAuthenticatorType()
- Specified by:
getAuthenticatorType
in interfaceIAuthenticatorConfig
- Returns:
- Type of authenticator represented by this config
-
setAuthenticatorType
public void setAuthenticatorType(EAuthClientType authenticatorType)
-
getClientAuthenticator
public ClientAuthenticator getClientAuthenticator()
-
setClientAuthenticator
public void setClientAuthenticator(ClientAuthenticator clientAuthenticator)
-
getSystemAuthenticator
public SystemAuthenticator getSystemAuthenticator()
-
setSystemAuthenticator
public void setSystemAuthenticator(SystemAuthenticator systemAuthenticator)
-
getAuthenticator
public IAuthenticator<?> getAuthenticator()
- Specified by:
getAuthenticator
in interfaceIAuthenticatorConfig
- Returns:
- persisted authenticator entity to be used. If
null
then a custom authenticator is defined
-
setAuthenticator
public void setAuthenticator(IAuthenticator<?> authenticator)
-
getIdentifier
public String getIdentifier()
- Specified by:
getIdentifier
in interfaceIAuthenticatorConfig
- Returns:
- a unique key identifying this authenticator config
-
getAuthenticatorToken
public String getAuthenticatorToken()
- Specified by:
getAuthenticatorToken
in interfaceIAuthenticatorConfig
- Returns:
- name (if it is a system authenticator) or callback UUID (if it is a client authenticator)
-
getI18nPlaceholder
public String getI18nPlaceholder()
- Specified by:
getI18nPlaceholder
in interfaceIAuthenticatorConfig
- Returns:
- the I18N placeholder for the authenticator button name
-
toString
public String toString()
- Overrides:
toString
in classAbstractLockableEntity
-
-