Package de.xima.fc.api.entity
Class BenutzerAPI
- java.lang.Object
-
- de.xima.fc.api.ASubAPI
-
- de.xima.fc.api.entity.AEntityAPI<Benutzer>
-
- de.xima.fc.api.entity.BenutzerAPI
-
@Deprecated public class BenutzerAPI extends AEntityAPI<Benutzer>
Deprecated.TheBenutzerhas been replaced byUserProfile.API class for manipulation ofBenutzerentities.- Author:
- XIMA MEDIA GmbH
-
-
Field Summary
-
Fields inherited from class de.xima.fc.api.entity.AEntityAPI
entityClass
-
-
Constructor Summary
Constructors Constructor Description BenutzerAPI()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanaddBenutzerToGruppe(UserContext uc, Benutzer ben, BenutzerGruppe bg)Deprecated.Method to add a user to a user group.BenutzerbyLDAPGruppe(UserContext uc, String username, Mandant mandant)Deprecated.BenutzerbyLDAPGruppeLogin(UserContext uc, Mandant man, String username, String clearTextPassword)Deprecated.BenutzerbyLogin(UserContext uc, String username, String clearTextPassword, Mandant mandant)Deprecated.Method for determining a user based on his login data.BenutzerbyNameAndMandant(UserContext uc, String username, Mandant mandant)Deprecated.BenutzercheckLDAPGroupsActiveUser(UserContext uc, Long clientId, String userName)Deprecated.booleancheckLDAPLogin(UserContext uc, Mandant man, String username, String clearTextPassword)Deprecated.Method for determining a user based on his LDAP login.BooleancheckLogin(UserContext uc, String username, String clearTextPassword, Mandant man)Deprecated.Method for checking login data of a user.StringgeneratePassword()Deprecated.List<BenutzerGruppe>getBenutzergruppen(UserContext uc, Benutzer ben)Deprecated.Method for determining all user groups of a user.BenutzergetByLDAPData(UserContext uc, Mandant mandant, String userName, byte[] objectID)Deprecated.List<Benutzer>getByMandant(UserContext uc, Mandant mandant)Deprecated.Method for determining all user of aMandant.BenutzergetByUUID(UserContext uc, Mandant client, String uuid)Deprecated.Returns the user with the given UUID stringBenutzergetByUUID(UserContext uc, Mandant client, UUID uuid)Deprecated.Returns the user with the given UUIDcom.alibaba.fastjson.JSONObjectgetLDAPUserData(UserContext uc, Benutzer benutzer)Deprecated.UserAccessgetUserAccess(Mandant client)Deprecated.Creates an useraccess based on an clientUserAccessgetUserAccess(LicenseAccess licenseAccess)Deprecated.Creates an useraccess based on an license accessBenutzerhandleUserLogin(UserContext uc, Benutzer user)Deprecated.Method to register an successful user-loginbooleanisLDAPUserActive(UserContext uc, Mandant man, String username)Deprecated.BenutzerregisterBenutzer(UserContext uc, Benutzer benutzer, Mandant mandant)Deprecated.Method for creating a new user for aMandant.-
Methods inherited from class de.xima.fc.api.entity.AEntityAPI
create, create, delete, delete, deleteAllBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getEntityRefs, getPagedResult, getSingleAttributes, getSingleAttributes, resultTotalCount, resultTotalCount, update, update
-
Methods inherited from class de.xima.fc.api.ASubAPI
getHandlerProvider
-
-
-
-
Method Detail
-
checkLogin
public Boolean checkLogin(UserContext uc, String username, String clearTextPassword, Mandant man)
Deprecated.Method for checking login data of a user.- Parameters:
uc-UserContextthe user context in which the action is to be performed.username-Stringthe user name.clearTextPassword-Stringthe password of a user.man-Mandantto which the user is assigned.- Returns:
Booleanwhether the user could log-in.- Since:
- 2.4.3
-
checkLDAPLogin
public boolean checkLDAPLogin(UserContext uc, Mandant man, String username, String clearTextPassword)
Deprecated.Method for determining a user based on his LDAP login.- Parameters:
uc-UserContextthe user context in which the action is to be performed.man-Mandantto which the user is assigned.username-Stringthe user name.clearTextPassword-Stringthe password of the user.- Returns:
Booleanwhether the user could log-in.
-
isLDAPUserActive
public boolean isLDAPUserActive(UserContext uc, Mandant man, String username)
Deprecated.
-
checkLDAPGroupsActiveUser
public Benutzer checkLDAPGroupsActiveUser(UserContext uc, Long clientId, String userName)
Deprecated.- Parameters:
uc-UserContextthe user context in which the action is to be performed.clientId-Longthe id of the clientuserName-Stringthe name of the user- Returns:
Booleanif the LDAP-user is active
-
handleUserLogin
public Benutzer handleUserLogin(UserContext uc, Benutzer user)
Deprecated.Method to register an successful user-login- Parameters:
uc-UserContextthe user context in which the action is to be performed.user-Benutzerwhich should be checked.- Returns:
- The found
Benutzer.
-
getByMandant
public List<Benutzer> getByMandant(UserContext uc, Mandant mandant)
Deprecated.Method for determining all user of aMandant.- Parameters:
uc-UserContextthe user context in which the action is to be performed.mandant-Mandantwhose users are to be determined.- Returns:
Listthe foundBenutzerof aMandant.- Since:
- 2.4.3
-
byLogin
public Benutzer byLogin(UserContext uc, String username, String clearTextPassword, Mandant mandant)
Deprecated.Method for determining a user based on his login data.- Parameters:
uc-UserContextthe user context in which the action is to be performed.username-Stringthe user name.clearTextPassword-Stringthe password of the user.mandant-Mandantto which the user is assigned.- Returns:
Benutzerwhich can be registered with the committed data ornull.- Since:
- 2.4.3
-
byLDAPGruppeLogin
public Benutzer byLDAPGruppeLogin(UserContext uc, Mandant man, String username, String clearTextPassword)
Deprecated.
-
byNameAndMandant
public Benutzer byNameAndMandant(UserContext uc, String username, Mandant mandant)
Deprecated.
-
byLDAPGruppe
public Benutzer byLDAPGruppe(UserContext uc, String username, Mandant mandant)
Deprecated.
-
getByLDAPData
public Benutzer getByLDAPData(UserContext uc, Mandant mandant, String userName, byte[] objectID)
Deprecated.
-
getLDAPUserData
public com.alibaba.fastjson.JSONObject getLDAPUserData(UserContext uc, Benutzer benutzer)
Deprecated.
-
getBenutzergruppen
public List<BenutzerGruppe> getBenutzergruppen(UserContext uc, Benutzer ben)
Deprecated.Method for determining all user groups of a user.- Parameters:
uc-UserContextthe user context in which the action is to be performed.ben-Benutzerthe user whose groups are searched.- Returns:
ListofBenutzer.- Since:
- 2.4.3
-
getByUUID
public Benutzer getByUUID(UserContext uc, Mandant client, String uuid)
Deprecated.Returns the user with the given UUID string- Parameters:
uc-UserContextto useclient-Mandantcontext in which to look for useruuid-StringUUID string of the user- Returns:
Benutzerfor the given UUID and client- Since:
- 6.x.x
-
getByUUID
public Benutzer getByUUID(UserContext uc, Mandant client, UUID uuid)
Deprecated.Returns the user with the given UUID- Parameters:
uc-UserContextto useclient-Mandantcontext in which to look for useruuid-UUIDUUID of the user- Returns:
Benutzerfor the given UUID and client- Since:
- 6.x.x
-
addBenutzerToGruppe
public boolean addBenutzerToGruppe(UserContext uc, Benutzer ben, BenutzerGruppe bg)
Deprecated.Method to add a user to a user group.- Parameters:
uc-UserContextthe user context in which the action is to be performed.ben- theBenutzerto which the group should be added.bg- theBenutzerGruppeto be added to the user.- Returns:
trueif the update was successful.- Since:
- 2.4.3
-
registerBenutzer
public Benutzer registerBenutzer(UserContext uc, Benutzer benutzer, Mandant mandant)
Deprecated.Method for creating a new user for aMandant.- Parameters:
uc-UserContextthe user context in which the action is to be performed.benutzer-Benutzerto be created.mandant-Mandantto be assigned to the user.- Returns:
trueif the user was created successfully.
-
generatePassword
public String generatePassword()
Deprecated.
-
getUserAccess
public UserAccess getUserAccess(LicenseAccess licenseAccess)
Deprecated.Creates an useraccess based on an license access- Parameters:
licenseAccess- the license access- Returns:
- the useraccess
-
getUserAccess
public UserAccess getUserAccess(Mandant client)
Deprecated.Creates an useraccess based on an client- Parameters:
client- the client- Returns:
- the useraccess
-
-