Package de.xima.fc.entities
Class Benutzer
- 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>
,IBenutzerGruppeDependent
,IDescriptionProviding
,ILockingVersionProviding
,IMandantDependent
,INameProviding
,ITransferable
,ITransferableEntity
,ITransferableLockableEntity
,IUUIDEntity
,Serializable
,Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
- Direct Known Subclasses:
AktuellerBenutzer
,LDAPBenutzer
,VirtualBenutzer
@Entity public class Benutzer extends AbstractMandantDependentEntity implements IBenutzerGruppeDependent, INameProviding, IDescriptionProviding, IUUIDEntity
An entity that describes a real-life person.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTR_ALTES_PASSWORT
static String
ATTR_ANREDE
static String
ATTR_BENUTZERTYP
static String
ATTR_CLEARTEXT_PWD
static String
ATTR_EMAIL
static String
ATTR_LAST_LOGIN
static String
ATTR_LOGIN_NAME
static String
ATTR_NNAME
static String
ATTR_PASSWORD_LINK_ID
static String
ATTR_PASSWORD_LINK_TYPE
static String
ATTR_PASSWORD_LINK_VALIDDATE
static String
ATTR_PASSWORT
static String
ATTR_ROLLE
static String
ATTR_STATUS
static String
ATTR_TELEFON
static String
ATTR_VNAME
static String
COL_UUID
-
Fields inherited from class de.xima.fc.entities.AbstractMandantDependentEntity
mandant
-
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.IBenutzerGruppeDependent
ATTR_BENUTZERGRUPPEN
-
Fields inherited from interface de.xima.fc.entities.interfaces.IDescriptionProviding
ATTR_BESCHREIBUNG, ATTR_DESCRIPTION, COL_DESCRIPTION
-
Fields inherited from interface de.xima.fc.entities.interfaces.IMandantDependent
ATTR_MANDANT, COL_CLIENT_ID
-
Fields inherited from interface de.xima.fc.entities.interfaces.INameProviding
ATTR_NAME, COL_NAME
-
Fields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_ID
-
Fields inherited from interface de.xima.fc.entities.interfaces.IUUIDEntity
ATTR_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, TYPE_NAME_UUID
-
-
Constructor Summary
Constructors Constructor Description Benutzer()
-
Method Summary
-
Methods inherited from class de.xima.fc.entities.AbstractMandantDependentEntity
getMandant, setMandant
-
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.entities.interfaces.IDescriptionProviding
getDescription
-
-
-
-
Field Detail
-
ATTR_ANREDE
public static final String ATTR_ANREDE
- See Also:
- Constant Field Values
-
ATTR_VNAME
public static final String ATTR_VNAME
- See Also:
- Constant Field Values
-
ATTR_NNAME
public static final String ATTR_NNAME
- See Also:
- Constant Field Values
-
ATTR_LOGIN_NAME
public static final String ATTR_LOGIN_NAME
- See Also:
- Constant Field Values
-
ATTR_CLEARTEXT_PWD
public static final String ATTR_CLEARTEXT_PWD
- See Also:
- Constant Field Values
-
ATTR_EMAIL
public static final String ATTR_EMAIL
- See Also:
- Constant Field Values
-
ATTR_TELEFON
public static final String ATTR_TELEFON
- See Also:
- Constant Field Values
-
ATTR_ROLLE
public static final String ATTR_ROLLE
- See Also:
- Constant Field Values
-
ATTR_STATUS
public static final String ATTR_STATUS
- See Also:
- Constant Field Values
-
ATTR_PASSWORT
public static final String ATTR_PASSWORT
- See Also:
- Constant Field Values
-
ATTR_ALTES_PASSWORT
public static final String ATTR_ALTES_PASSWORT
- See Also:
- Constant Field Values
-
ATTR_BENUTZERTYP
public static final String ATTR_BENUTZERTYP
- See Also:
- Constant Field Values
-
ATTR_PASSWORD_LINK_TYPE
public static final String ATTR_PASSWORD_LINK_TYPE
- See Also:
- Constant Field Values
-
ATTR_PASSWORD_LINK_VALIDDATE
public static final String ATTR_PASSWORD_LINK_VALIDDATE
- See Also:
- Constant Field Values
-
ATTR_PASSWORD_LINK_ID
public static final String ATTR_PASSWORD_LINK_ID
- See Also:
- Constant Field Values
-
ATTR_LAST_LOGIN
public static final String ATTR_LAST_LOGIN
- See Also:
- Constant Field Values
-
COL_UUID
public static final String COL_UUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUUID
public String getUUID()
- Specified by:
getUUID
in interfaceIUUIDEntity
- Returns:
- UUID (Universal Unique Identifier) that identifies this type of entity. Usually is unique within a context,
e.g.
Mandant
,Projekt
, ...
-
setUUID
public void setUUID(String uuid)
- Specified by:
setUUID
in interfaceIUUIDEntity
-
getUUIDObject
public UUID getUUIDObject()
- Specified by:
getUUIDObject
in interfaceIUUIDEntity
-
setUUIDObject
public void setUUIDObject(UUID uuid)
-
getClearTextPasswort
@Deprecated public String getClearTextPasswort()
Deprecated.Returns a string of *- Returns:
- Z
-
setClearTextPasswort
public void setClearTextPasswort(String ctp)
This method is used to encrypt the plaintext password and then store it in the password attribute- Parameters:
ctp
- - plaintext password, which should be set encrypted
-
getPasswort
public String getPasswort()
This method returns the user's encrypted password- Returns:
- the password
-
setPasswort
public void setPasswort(String passwort)
This method sets the password of the user. This method should only be used, if passwords are not be encrypted or if an already encrypted password exists.- Parameters:
passwort
- - user's password (encrypted, because it will be stored in database)
-
getBeschreibung
public String getBeschreibung()
- Specified by:
getBeschreibung
in interfaceIDescriptionProviding
-
setBeschreibung
public void setBeschreibung(String beschreibung)
-
getLoginName
public String getLoginName()
- Returns:
- The login name of this user.
-
setLoginName
public void setLoginName(String loginname)
-
getEmail
public String getEmail()
- Returns:
- The email address of this user.
-
setEmail
public void setEmail(String email)
-
getTelefon
public String getTelefon()
- Returns:
- The phone number of this user. May be
null
or empty.
-
setTelefon
public void setTelefon(String telefon)
-
getVorname
public String getVorname()
- Returns:
- The personal name part of this user.
-
setVorname
public void setVorname(String vorname)
-
getNachname
public String getNachname()
The family name part of this user.
-
setNachname
public void setNachname(String nachname)
-
getAnrede
public EAnrede getAnrede()
- Returns:
- The form of address for this user.
-
setAnrede
public void setAnrede(EAnrede anrede)
-
getBenutzerstatus
public EBenutzerStatus getBenutzerstatus()
-
setBenutzerstatus
public void setBenutzerstatus(EBenutzerStatus benutzerstatus)
-
getBenutzerGruppen
public List<BenutzerGruppe> getBenutzerGruppen()
- Specified by:
getBenutzerGruppen
in interfaceIBenutzerGruppeDependent
- Returns:
- A
List
ofBenutzerGruppe
s this user belongs to. A user may belong to no, one, or multiple user groups. The user groups determine, for example, which inboxes a user may access.
-
setBenutzerGruppen
public void setBenutzerGruppen(List<BenutzerGruppe> benutzerGruppen)
Ersetzt die zugeordneten Benutzergruppen mit der übergebenen Liste- Specified by:
setBenutzerGruppen
in interfaceIBenutzerGruppeDependent
-
addBenutzerGruppe
public void addBenutzerGruppe(BenutzerGruppe benutzerGruppe)
-
removeBenutzerGruppe
public void removeBenutzerGruppe(BenutzerGruppe benutzerGruppe)
-
getName
public String getName()
- Specified by:
getName
in interfaceINameProviding
- Returns:
- The login name of this user.
-
getFullName
public String getFullName()
- Returns:
- The full name of this user, ie. the personal name (
getVorname()
followed by the family name (getNachname()
.
-
getRolle
public Rolle getRolle()
- Returns:
- The
Rolle
that is assigned to this user. Each user is always assigned to exactly one role. The role determines which permissions are granted to this user.
-
setRolle
public void setRolle(Rolle rolle)
-
getAltesPasswort
public String getAltesPasswort()
-
setAltesPasswort
public void setAltesPasswort(String altesPasswort)
-
getBenutzertyp
public EBenutzerTyp getBenutzertyp()
- Returns:
- The type of this user, ie. whether it is a system user or an external user, such as an LDAP user.
-
setBenutzertyp
public void setBenutzertyp(EBenutzerTyp benutzertyp)
-
getRef
public String getRef()
-
isForcePasswordChange
public boolean isForcePasswordChange()
-
setForcePasswordChange
public void setForcePasswordChange(boolean forcePasswordChange)
-
getPasswordLinkId
public String getPasswordLinkId()
-
setPasswordLinkId
public void setPasswordLinkId(String passwordLinkId)
-
getPasswordLinkValidDate
public Date getPasswordLinkValidDate()
-
setPasswordLinkValidDate
public void setPasswordLinkValidDate(Date passwordLinkValidDate)
-
getPasswordLinkType
public EPasswordLinkType getPasswordLinkType()
-
setPasswordLinkType
public void setPasswordLinkType(EPasswordLinkType passwordLinkType)
-
getPasswordVersion
public Integer getPasswordVersion()
-
setPasswordVersion
public void setPasswordVersion(Integer passwordVersion)
-
getLastLogin
public Date getLastLogin()
-
setLastLogin
public void setLastLogin(Date lastLogin)
-
toString
public String toString()
- Overrides:
toString
in classAbstractLockableEntity
-
-