Class ActionLogsService

java.lang.Object
com.jk.webstack.services.logging.ActionLogsService

public class ActionLogsService extends Object
This class is a service class used for managing action logs and user action logs.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Constructor Details

    • ActionLogsService

      public ActionLogsService()
  • Method Details

    • logAction

      public void logAction(String statType)
      This method logs an action of a specified type and updates the corresponding action log count.
      Parameters:
      statType - Specifies the type of the action to be logged.
    • getActionLogCount

      public int getActionLogCount(String logType)
      This method retrieves the count of a specific type of action log.
      Parameters:
      logType - Specifies the type of action log for which to retrieve the count.
      Returns:
      the count of the specified action log type.
    • logUserAction

      public void logUserAction(String className, String actionName, String userName)
      This method logs a user action, recording details such as class name, action name, user name, and time stamp.
      Parameters:
      className - Specifies the name of the class where the action occurred.
      actionName - Specifies the name of the action performed.
      userName - Specifies the name of the user who initiated the action.