public class UserAuditFactory
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
IP_ADDRESS |
protected ModelService |
modelService |
protected UserService |
userService |
| Constructor and Description |
|---|
UserAuditFactory() |
| Modifier and Type | Method and Description |
|---|---|
BruteForceLoginDisabledAuditModel |
createBruteForceLoginDisabledAudit(UserModel user,
java.lang.Integer numFailedLogins) |
UserPasswordChangeAuditModel |
createUserPasswordChangeAudit(PK pk,
java.lang.String uid,
java.lang.String previousPassword,
java.lang.String previousEncoding)
Initializes UserAuditModel with uid, pk, previous password and encoding of the user.
|
protected java.lang.String |
determineContextPath()
Tries to return context path if in webcontext
|
protected java.lang.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 java.lang.String IP_ADDRESS
public UserPasswordChangeAuditModel createUserPasswordChangeAudit(PK pk, java.lang.String uid, java.lang.String previousPassword, java.lang.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, java.lang.Integer numFailedLogins)
protected <X extends AbstractUserAuditModel> X processAfterCreation(X user)
user - protected java.lang.String determineContextPath()
protected java.lang.String determineCurrentUser()
public void setUserService(UserService userService)
public void setModelService(ModelService modelService)
Copyright © 2018 SAP SE. All Rights Reserved.