public class BenutzerHandler extends GenericHandler implements IBenutzerHandler
LOG| Constructor and Description |
|---|
BenutzerHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addBenutzerToGruppe(UserContext uc,
Benutzer ben,
BenutzerGruppe bg)
Methode um einen Benutzer einer Benutzergruppe hinzuzufügen.
|
Benutzer |
byLDAPGruppe(UserContext uc,
String username,
Mandant mandant) |
Benutzer |
byLDAPGruppeLogin(UserContext uc,
Mandant man,
String userLogin,
String userPwd)
Methode zum Auslesen und Erzeugen eines temporären Benutzers aus einer LDAP-Gruppe
|
Benutzer |
byLogin(UserContext uc,
String userName,
String passwd,
Mandant man)
By login.
|
Benutzer |
byNameAndMandant(UserContext uc,
String username,
Mandant mandant)
Methode zum Ermitteln eines Benutzers anhand seines Namens und des Mandantens
|
Benutzer |
checkLDAPGroupsActiveUser(UserContext uc,
Long clientId,
String encryptUserLogin) |
boolean |
checkLDAPLogin(UserContext uc,
Mandant man,
String userLogin,
String userPwd)
Methode zum Prüfen des LDAP-Logins eines Benutzers
|
Boolean |
checkLogin(UserContext uc,
String username,
String passwort,
Mandant man)
Checks the login of an user.
|
String |
generatePassword()
Generates a new password according the system configured password policies.
|
List<BenutzerGruppe> |
getBenutzergruppen(UserContext uc,
Benutzer ben)
Gets the
BenutzerGruppes. |
Benutzer |
getByLDAPData(UserContext uc,
Mandant mandant,
String userName,
byte[] objectID) |
List<Benutzer> |
getByMandant(UserContext uc,
Mandant man)
Gets the by mandant.
|
Benutzer |
getByUUID(UserContext uc,
Mandant client,
String uuid)
Returns the user with the given UUID string
|
Benutzer |
getByUUID(UserContext uc,
Mandant client,
UUID uuid)
Returns the user with the given UUID
|
com.alibaba.fastjson.JSONObject |
getLDAPUserData(UserContext uc,
Benutzer benutzer) |
Benutzer |
handleUserLogin(UserContext uc,
Benutzer user) |
boolean |
isLDAPUserActive(UserContext uc,
Mandant man,
String encryptUserLogin) |
Benutzer |
registerBenutzer(UserContext uc,
Benutzer benutzer,
Mandant mandant)
Methode zum Anlegen eines neuen Benutzers zu einem Mandanten
|
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, resultTotalCount, serializableList, update, updategetNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, resultTotalCount, update, updategetNamepublic List<BenutzerGruppe> getBenutzergruppen(UserContext uc, Benutzer ben)
BenutzerGruppes.getBenutzergruppen in interface IBenutzerHandleruc - the UserContext to useben - the user to get the BenutzerGruppesList of BenutzerGruppespublic Boolean checkLogin(UserContext uc, String username, String passwort, Mandant man)
checkLogin in interface IBenutzerHandleruc - the UserContext to useusername - the name of the userpasswort - the passwort of the userman - the client of the userpublic List<Benutzer> getByMandant(UserContext uc, Mandant man)
getByMandant in interface IBenutzerHandleruc - the UserContext to use to userman - the manList of Benutzer of the Mandantpublic Benutzer byLogin(UserContext uc, String userName, String passwd, Mandant man)
byLogin in interface IBenutzerHandleruc - the UserContext to useuserName - the user namepasswd - the passwdman - the clientBenutzer or nullpublic boolean addBenutzerToGruppe(UserContext uc, Benutzer ben, BenutzerGruppe bg)
addBenutzerToGruppe in interface IBenutzerHandleruc - UserContext der Benutzerkontext in welchem die Aktion durchgeführt werden sollben - der Benutzer dem die Gruppe hinzugefügt werden sollbg - die BenutzerGruppe die dem Benutzer hinzugefügt werden solltrue wenn die Aktualisierung erfolgreich warpublic Benutzer registerBenutzer(UserContext uc, Benutzer benutzer, Mandant mandant)
registerBenutzer in interface IBenutzerHandleruc - UserContext der Benutzerkontext in welchem die Aktion durchgeführt werden sollbenutzer - der angelegt werden sollmandant - der dem Benutzer zugeordnet werden solltrue wenn der Benutzer erfolgreich angelegt wurdepublic Benutzer byNameAndMandant(UserContext uc, String username, Mandant mandant)
IBenutzerHandlerbyNameAndMandant in interface IBenutzerHandleruc - the UserContext to useusername - the usernamemandant - the clientBenutzer or nullpublic boolean checkLDAPLogin(UserContext uc, Mandant man, String userLogin, String userPwd)
IBenutzerHandlercheckLDAPLogin in interface IBenutzerHandleruc - the UserContext to useman - the clientuserLogin - the user loginuserPwd - the user passwordtrue if the login was successful, false otherwisepublic boolean isLDAPUserActive(UserContext uc, Mandant man, String encryptUserLogin)
isLDAPUserActive in interface IBenutzerHandleruc - the UserContext to useman - the clientencryptUserLogin - the user logintrue if the user is active, false otherwisepublic Benutzer checkLDAPGroupsActiveUser(UserContext uc, Long clientId, String encryptUserLogin)
checkLDAPGroupsActiveUser in interface IBenutzerHandleruc - the UserContext to useclientId - the id of the clientencryptUserLogin - the encrypted user loginBenutzer or nullpublic Benutzer byLDAPGruppeLogin(UserContext uc, Mandant man, String userLogin, String userPwd)
IBenutzerHandlerbyLDAPGruppeLogin in interface IBenutzerHandleruc - the UserContext to useman - the clientuserLogin - the user nameuserPwd - the user passwordBenutzer or nullpublic Benutzer byLDAPGruppe(UserContext uc, String username, Mandant mandant)
byLDAPGruppe in interface IBenutzerHandlerpublic com.alibaba.fastjson.JSONObject getLDAPUserData(UserContext uc, Benutzer benutzer)
getLDAPUserData in interface IBenutzerHandlerpublic Benutzer getByLDAPData(UserContext uc, Mandant mandant, String userName, byte[] objectID)
getByLDAPData in interface IBenutzerHandlerpublic Benutzer getByUUID(UserContext uc, Mandant client, String uuid)
IBenutzerHandlergetByUUID in interface IBenutzerHandleruc - UserContext to useclient - Mandant context in which to look for useruuid - String UUID string of the userBenutzer for the given UUID and clientpublic Benutzer getByUUID(UserContext uc, Mandant client, UUID uuid)
IBenutzerHandlergetByUUID in interface IBenutzerHandleruc - UserContext to useclient - Mandant context in which to look for useruuid - UUID UUID of the userBenutzer for the given UUID and clientpublic Benutzer handleUserLogin(UserContext uc, Benutzer user)
handleUserLogin in interface IBenutzerHandlerpublic String generatePassword()
IBenutzerHandlergeneratePassword in interface IBenutzerHandlerCopyright © 2020 XIMA MEDIA GmbH. All rights reserved.