Class CmsUserLog

java.lang.Object
org.opencms.security.CmsUserLog

public class CmsUserLog extends Object
Class with static methods for logging user-related operations in a centralized manner.
  • Constructor Details

  • Method Details

    • logLogin

      public static void logLogin(CmsObject cms, String user)
      Logs a successful login.
      Parameters:
      cms - the CMS context
      user - the name of the user
    • logLoginFailure

      public static void logLoginFailure(CmsObject cms, String user)
      Logs a login failure.
      Parameters:
      cms - the CMS context
      user - the name of the user
    • logLogout

      public static void logLogout(CmsObject cms)
      Logs a successful logout.
      Parameters:
      cms - the CMS context
    • logPasswordChange

      public static void logPasswordChange(CmsObject cms, String user)
      Logs a password change.
      Parameters:
      cms - the CMS context
      user - the user name
    • logPasswordChangeForRequestedReset

      public static void logPasswordChangeForRequestedReset(CmsObject cms, String user)
      Logs a password change originally requested through the 'reset password' button.
      Parameters:
      cms - the CMS context
      user - the user name
    • logPasswordResetRequest

      public static void logPasswordResetRequest(CmsObject cms, String user)
      Logs a password reset request.
      Parameters:
      cms - the CMS context
      user - the user name
    • logSecondFactorAdded

      public static void logSecondFactorAdded(CmsRequestContext requestContext, String name)
      Logs when a second factor was added.
      Parameters:
      requestContext - the request context
      name - the user name
    • logSecondFactorInfoModified

      public static void logSecondFactorInfoModified(CmsRequestContext requestContext, String name)
      Logs when a second factor was modified.
      Parameters:
      requestContext - the request context
      name - the user name
    • logSecondFactorReset

      public static void logSecondFactorReset(CmsRequestContext requestContext, String name)
      Logs when a second factor was removed.
      Parameters:
      requestContext - the request context
      name - the user name
    • logSetForceResetPassword

      public static void logSetForceResetPassword(CmsObject cms, String user)
      Logs that the 'force reset password' status was set on a user.
      Parameters:
      cms - the CMS context
      user - the user name
    • logSwitchUser

      public static void logSwitchUser(CmsObject cms, String name)
      Logs a user switch.
      Parameters:
      cms - the current CMS context
      name - the name of the user to switch to