public class BenutzerAPI extends AEntityAPI<Benutzer>
Benutzer
entities.entityClass
Constructor and Description |
---|
BenutzerAPI() |
Modifier and Type | Method and Description |
---|---|
boolean |
addBenutzerToGruppe(UserContext uc,
Benutzer ben,
BenutzerGruppe bg)
Method to add a user to a user group.
|
Benutzer |
byLDAPGruppe(UserContext uc,
String username,
Mandant mandant) |
Benutzer |
byLDAPGruppeLogin(UserContext uc,
Mandant man,
String username,
String clearTextPassword) |
Benutzer |
byLogin(UserContext uc,
String username,
String clearTextPassword,
Mandant mandant)
Method for determining a user based on his login data.
|
Benutzer |
byNameAndMandant(UserContext uc,
String username,
Mandant mandant) |
Benutzer |
checkLDAPGroupsActiveUser(UserContext uc,
Long clientId,
String userName) |
boolean |
checkLDAPLogin(UserContext uc,
Mandant man,
String username,
String clearTextPassword)
Method for determining a user based on his LDAP login.
|
Boolean |
checkLogin(UserContext uc,
String username,
String clearTextPassword,
Mandant man)
Method for checking login data of a user.
|
String |
generatePassword() |
List<BenutzerGruppe> |
getBenutzergruppen(UserContext uc,
Benutzer ben)
Method for determining all user groups of a user.
|
Benutzer |
getByLDAPData(UserContext uc,
Mandant mandant,
String userName,
byte[] objectID) |
List<Benutzer> |
getByMandant(UserContext uc,
Mandant mandant)
Method for determining all user of a
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)
Method to register an successful user-login
|
boolean |
isLDAPUserActive(UserContext uc,
Mandant man,
String username) |
Benutzer |
registerBenutzer(UserContext uc,
Benutzer benutzer,
Mandant mandant)
Method for creating a new user for a
Mandant . |
create, create, delete, delete, deleteAllBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getSingleAttributes, getSingleAttributes, resultTotalCount, resultTotalCount, update, update
getHandlerProvider
public Boolean checkLogin(UserContext uc, String username, String clearTextPassword, Mandant man)
uc
- UserContext
the user context in which the action is to be performed.username
- String
the user name.clearTextPassword
- String
the password of a user.man
- Mandant
to which the user is assigned.Boolean
whether the user could log-in.public boolean checkLDAPLogin(UserContext uc, Mandant man, String username, String clearTextPassword)
uc
- UserContext
the user context in which the action is to be performed.man
- Mandant
to which the user is assigned.username
- String
the user name.clearTextPassword
- String
the password of the user.Boolean
whether the user could log-in.public boolean isLDAPUserActive(UserContext uc, Mandant man, String username)
public Benutzer checkLDAPGroupsActiveUser(UserContext uc, Long clientId, String userName)
uc
- UserContext
the user context in which the action is to be performed.clientId
- Long
the id of the clientuserName
- String
the name of the userBoolean
if the LDAP-user is activepublic Benutzer handleUserLogin(UserContext uc, Benutzer user)
uc
- UserContext
the user context in which the action is to be performed.user
- Benutzer
which should be checked.Benutzer
.public List<Benutzer> getByMandant(UserContext uc, Mandant mandant)
Mandant
.uc
- UserContext
the user context in which the action is to be performed.mandant
- Mandant
whose users are to be determined.List
the found Benutzer
of a Mandant
.public Benutzer byLogin(UserContext uc, String username, String clearTextPassword, Mandant mandant)
uc
- UserContext
the user context in which the action is to be performed.username
- String
the user name.clearTextPassword
- String
the password of the user.mandant
- Mandant
to which the user is assigned.Benutzer
which can be registered with the committed data or null
.public Benutzer byLDAPGruppeLogin(UserContext uc, Mandant man, String username, String clearTextPassword)
public Benutzer byNameAndMandant(UserContext uc, String username, Mandant mandant)
public Benutzer byLDAPGruppe(UserContext uc, String username, Mandant mandant)
public Benutzer getByLDAPData(UserContext uc, Mandant mandant, String userName, byte[] objectID)
public com.alibaba.fastjson.JSONObject getLDAPUserData(UserContext uc, Benutzer benutzer)
public List<BenutzerGruppe> getBenutzergruppen(UserContext uc, Benutzer ben)
uc
- UserContext
the user context in which the action is to be performed.ben
- Benutzer
the user whose groups are searched.List
of Benutzer
.public Benutzer getByUUID(UserContext uc, Mandant client, String uuid)
uc
- 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)
uc
- UserContext
to useclient
- Mandant
context in which to look for useruuid
- UUID
UUID of the userBenutzer
for the given UUID and clientpublic boolean addBenutzerToGruppe(UserContext uc, Benutzer ben, BenutzerGruppe bg)
uc
- UserContext
the user context in which the action is to be performed.ben
- the Benutzer
to which the group should be added.bg
- the BenutzerGruppe
to be added to the user.true
if the update was successful.public Benutzer registerBenutzer(UserContext uc, Benutzer benutzer, Mandant mandant)
Mandant
.uc
- UserContext
the user context in which the action is to be performed.benutzer
- Benutzer
to be created.mandant
- Mandant
to be assigned to the user.true
if the user was created successfully.public String generatePassword()
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.