Class UserAuditFactory

java.lang.Object
de.hybris.platform.servicelayer.user.impl.UserAuditFactory

public class UserAuditFactory extends Object
  • Field Details

  • Constructor Details

    • UserAuditFactory

      public UserAuditFactory()
  • Method Details

    • createUserPasswordChangeAudit

      public UserPasswordChangeAuditModel createUserPasswordChangeAudit(PK pk, String uid, String previousPassword, String previousEncoding)
      Initializes UserAuditModel with uid, pk, previous password and encoding of the user. Additionally ip address, user and context path of application that caused the change are stored.
      Parameters:
      pk - pk of user that changed password
      uid - uid of user that changed password
      previousPassword - previous password (hashed)
      previousEncoding - encoding of previous password
      Returns:
    • createBruteForceLoginDisabledAudit

      public BruteForceLoginDisabledAuditModel createBruteForceLoginDisabledAudit(UserModel user, Integer numFailedLogins)
    • processAfterCreation

      protected <X extends AbstractUserAuditModel> X processAfterCreation(X user)
      Extension point that allows to modify or store additional data if UserAudit model is extended. This method is called after createUserAudit and returned object will be the one that is returned by factory.
      Parameters:
      user -
      Returns:
    • determineContextPath

      protected String determineContextPath()
      Tries to return context path if in webcontext
      Returns:
      servlet context path or null if not exists
    • determineCurrentUser

      protected String determineCurrentUser()
      Returns user of current session
      Returns:
      uid of current user
    • setUserService

      public void setUserService(UserService userService)
    • setModelService

      public void setModelService(ModelService modelService)