@MappedSuperclass public abstract class AAuthenticator<T extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>,? extends IFileDataEntity<?>>> extends ALockableEntity implements IAuthenticator<T>
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_CALLBACK_UUID |
static String |
ATTR_CONFIG_STATE |
static String |
ATTR_TYPE |
protected Map<String,String> |
attributes |
static String |
COL_UUID |
protected Map<String,T> |
fileMap |
COL_LOCKINGVERSION, lockingVersion
COL_ID, id
ATTR_NAME, COL_NAME
ATTR_BESCHREIBUNG, ATTR_DESCRIPTION
ATTR_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, TYPE_NAME_UUID
IMPORT_ID, INVALID_ID
Constructor and Description |
---|
AAuthenticator() |
Modifier and Type | Method and Description |
---|---|
String |
getAttributeValue(String key)
Get the
String value of the attribute with the given key |
List<String> |
getAttributeValueList(String key)
Get the
List value of the attribute with the given key |
Map<String,String> |
getAttributeValueMap(String key)
Get the
Map value of the attribute with the given key |
String |
getBeschreibung() |
UUID |
getCallbackUUID() |
String |
getCallbackUUIDString() |
EAuthConfigState |
getConfigState() |
String |
getDescription() |
String |
getLoginButtonTitle() |
String |
getName() |
EAuthClientType |
getType() |
String |
getUUID() |
UUID |
getUUIDObject() |
void |
putAttribute(String key,
String value)
Puts the given
String value for the given key in the attribute map of this authenticator |
void |
putAttributes(String key,
List<String> values)
Puts the given
List value for the given key in the attribute map of this authenticator |
void |
putAttributes(String key,
Map<String,String> valueMap)
Puts the given
Map value for the given key in the attribute map of this authenticator |
T |
putFile(String key,
T file)
|
String |
removeAttribute(String key)
Removes the attributes for the given key
|
T |
removeFile(String key)
Removes the file mapping for the given key.
|
void |
setAttributes(Map<String,String> attributes) |
void |
setCallbackUUID(UUID callbackUUID) |
void |
setCallbackUUIDString(String uuidString) |
void |
setConfigState(EAuthConfigState configState) |
void |
setDescription(String description) |
void |
setFileMap(Map<String,T> fileMap)
DON'T USE!
|
void |
setLoginButtonTitle(String loginButtonTitle) |
void |
setName(String name) |
void |
setType(EAuthClientType type) |
void |
setUUID(String uuid) |
void |
setUUIDObject(UUID uuid) |
String |
toString() |
entityHasChanged, getLockingVersion, setLockingVersion
asIntValue, isPersisted, setId, setId
compareTo, equals, getDBTableName, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAttributes, getFileMap
compareTo
public static final String COL_UUID
public static final String ATTR_TYPE
public static final String ATTR_CALLBACK_UUID
public static final String ATTR_CONFIG_STATE
protected Map<String,T extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>,? extends IFileDataEntity<?>>> fileMap
public String getUUID()
getUUID
in interface IUUIDEntity
Mandant
, Projekt
, ...public void setUUID(String uuid)
setUUID
in interface IUUIDEntity
public UUID getUUIDObject()
getUUIDObject
in interface IUUIDEntity
public void setUUIDObject(UUID uuid)
public String getName()
getName
in interface INameProviding
public void setName(String name)
public String getBeschreibung()
getBeschreibung
in interface IDescriptionProviding
public String getDescription()
getDescription
in interface IDescriptionProviding
public void setDescription(String description)
public EAuthClientType getType()
getType
in interface IAuthenticator<T extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>,? extends IFileDataEntity<?>>>
public void setType(EAuthClientType type)
public UUID getCallbackUUID()
getCallbackUUID
in interface IAuthenticator<T extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>,? extends IFileDataEntity<?>>>
public void setCallbackUUID(UUID callbackUUID)
public String getCallbackUUIDString()
public void setCallbackUUIDString(String uuidString)
public String getLoginButtonTitle()
getLoginButtonTitle
in interface IAuthenticator<T extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>,? extends IFileDataEntity<?>>>
public void setLoginButtonTitle(String loginButtonTitle)
public EAuthConfigState getConfigState()
getConfigState
in interface IAuthenticator<T extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>,? extends IFileDataEntity<?>>>
public void setConfigState(EAuthConfigState configState)
public void setAttributes(Map<String,String> attributes)
setAttributes
in interface IAuthenticator<T extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>,? extends IFileDataEntity<?>>>
public String getAttributeValue(String key)
String
value of the attribute with the given keygetAttributeValue
in interface IAuthenticator<T extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>,? extends IFileDataEntity<?>>>
key
- String
attribute nameString
value of the requested attributeIAuthenticator.getAttributes()
public List<String> getAttributeValueList(String key)
List
value of the attribute with the given keypublic Map<String,String> getAttributeValueMap(String key)
Map
value of the attribute with the given keygetAttributeValueMap
in interface IAuthenticator<T extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>,? extends IFileDataEntity<?>>>
key
- String
attribute nameMap
value of the requested attribute or null
if the attribute does not exist or can't
be parsed to a map.public void putAttribute(String key, String value)
String
value for the given key in the attribute map of this authenticatorputAttribute
in interface IAuthenticator<T extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>,? extends IFileDataEntity<?>>>
key
- String
attribute namevalue
- String
value of the attributepublic void putAttributes(String key, List<String> values)
List
value for the given key in the attribute map of this authenticatorputAttributes
in interface IAuthenticator<T extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>,? extends IFileDataEntity<?>>>
key
- String
attribute namevalues
- List
value of the attributepublic void putAttributes(String key, Map<String,String> valueMap)
Map
value for the given key in the attribute map of this authenticatorputAttributes
in interface IAuthenticator<T extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>,? extends IFileDataEntity<?>>>
key
- String
attribute namevalueMap
- Map
value of the attributepublic String removeAttribute(String key)
key
- String
key in the attribute maptrue
if the attribute was removedpublic void setFileMap(Map<String,T> fileMap)
putFile(String, IFileEntity)
, removeFile(String)
or IAuthenticator.getFileMap()
instead to
modify the map.setFileMap
in interface IAuthenticator<T extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>,? extends IFileDataEntity<?>>>
public T putFile(String key, T file)
putFile
in interface IAuthenticator<T extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>,? extends IFileDataEntity<?>>>
key
- String
to store file underfile
- the file to put into file mapnull
if there wasn't anypublic T removeFile(String key)
Map.remove(Object)
.removeFile
in interface IAuthenticator<T extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>,? extends IFileDataEntity<?>>>
key
- String
key in the file mapnull
if there wasn't anypublic String toString()
toString
in class AbstractLockableEntity
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.