@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, lockingVersionCOL_ID, idATTR_NAME, COL_NAMEATTR_BESCHREIBUNG, ATTR_DESCRIPTIONATTR_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, TYPE_NAME_UUIDIMPORT_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, setLockingVersionasIntValue, isPersisted, setId, setIdcompareTo, equals, getDBTableName, hashCodeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAttributes, getFileMapcompareTopublic 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 IUUIDEntityMandant, Projekt, ...public void setUUID(String uuid)
setUUID in interface IUUIDEntitypublic UUID getUUIDObject()
getUUIDObject in interface IUUIDEntitypublic void setUUIDObject(UUID uuid)
public String getName()
getName in interface INameProvidingpublic void setName(String name)
public String getBeschreibung()
getBeschreibung in interface IDescriptionProvidingpublic String getDescription()
getDescription in interface IDescriptionProvidingpublic 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),
#removeFile(String, IFileEntity) 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 - T 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 mapT the removed file or null if there wasn't anypublic String toString()
toString in class AbstractLockableEntityCopyright © 2020 XIMA MEDIA GmbH. All rights reserved.