public class UserAuditFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
IP_ADDRESS |
protected ModelService |
modelService |
protected UserService |
userService |
| Constructor and Description |
|---|
UserAuditFactory() |
| Modifier and Type | Method and Description |
|---|---|
BruteForceLoginDisabledAuditModel |
createBruteForceLoginDisabledAudit(UserModel user,
Integer numFailedLogins) |
UserPasswordChangeAuditModel |
createUserPasswordChangeAudit(PK pk,
String uid,
String previousPassword,
String previousEncoding)
Initializes UserAuditModel with uid, pk, previous password and encoding of the user.
|
protected String |
determineContextPath()
Tries to return context path if in webcontext
|
protected String |
determineCurrentUser()
Returns user of current session
|
protected <X extends AbstractUserAuditModel> |
processAfterCreation(X user)
Extension point that allows to modify or store additional data if UserAudit model is extended.
|
void |
setModelService(ModelService modelService) |
void |
setUserService(UserService userService) |
protected UserService userService
protected ModelService modelService
protected static final String IP_ADDRESS
public UserPasswordChangeAuditModel createUserPasswordChangeAudit(PK pk, String uid, String previousPassword, String previousEncoding)
pk - pk of user that changed passworduid - uid of user that changed passwordpreviousPassword - previous password (hashed)previousEncoding - encoding of previous passwordpublic BruteForceLoginDisabledAuditModel createBruteForceLoginDisabledAudit(UserModel user, Integer numFailedLogins)
protected <X extends AbstractUserAuditModel> X processAfterCreation(X user)
user - protected String determineContextPath()
protected String determineCurrentUser()
public void setUserService(UserService userService)
public void setModelService(ModelService modelService)
Copyright © 2017 SAP SE. All Rights Reserved.