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
|
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)
Check login.
|
List<BenutzerGruppe> |
getBenutzergruppen(UserContext uc,
Benutzer ben)
Gets the benutzergruppen.
|
Benutzer |
getByLDAPData(UserContext uc,
Mandant mandant,
String userName,
byte[] objectID) |
List<Benutzer> |
getByMandant(UserContext uc,
Mandant man)
Gets the by mandant.
|
com.alibaba.fastjson.JSONObject |
getLDAPUserData(UserContext uc,
Benutzer benutzer) |
Benutzer |
registerBenutzer(UserContext uc,
Benutzer benutzer,
Mandant mandant)
Methode zum Anlegen eines neuen Benutzers zu einem Mandanten
|
create, create, delete, delete, deleteBy, deleteById, getAll, getAllBy, getBy, getById, getById, resultTotalCount, update, update
getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, create, delete, delete, deleteBy, deleteById, getAll, getAllBy, getBy, getById, getById, resultTotalCount, update, update
getName
public List<BenutzerGruppe> getBenutzergruppen(UserContext uc, Benutzer ben)
getBenutzergruppen
in interface IBenutzerHandler
uc
- the ucben
- the benpublic Boolean checkLogin(UserContext uc, String username, String passwort, Mandant man)
checkLogin
in interface IBenutzerHandler
uc
- the ucusername
- the usernamepasswort
- the passwortpublic List<Benutzer> getByMandant(UserContext uc, Mandant man)
getByMandant
in interface IBenutzerHandler
uc
- the ucman
- the manpublic Benutzer byLogin(UserContext uc, String userName, String passwd, Mandant man)
byLogin
in interface IBenutzerHandler
uc
- the ucuserName
- the user namepasswd
- the passwdpublic boolean addBenutzerToGruppe(UserContext uc, Benutzer ben, BenutzerGruppe bg)
addBenutzerToGruppe
in interface IBenutzerHandler
uc
- 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 IBenutzerHandler
uc
- 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)
IBenutzerHandler
byNameAndMandant
in interface IBenutzerHandler
public boolean checkLDAPLogin(UserContext uc, Mandant man, String userLogin, String userPwd)
IBenutzerHandler
checkLDAPLogin
in interface IBenutzerHandler
public Benutzer byLDAPGruppeLogin(UserContext uc, Mandant man, String userLogin, String userPwd)
IBenutzerHandler
byLDAPGruppeLogin
in interface IBenutzerHandler
public Benutzer byLDAPGruppe(UserContext uc, String username, Mandant mandant)
byLDAPGruppe
in interface IBenutzerHandler
public com.alibaba.fastjson.JSONObject getLDAPUserData(UserContext uc, Benutzer benutzer)
getLDAPUserData
in interface IBenutzerHandler
public Benutzer getByLDAPData(UserContext uc, Mandant mandant, String userName, byte[] objectID)
getByLDAPData
in interface IBenutzerHandler
Copyright © 2018 XIMA MEDIA GmbH. All rights reserved.