Package com.jk.webstack.services.logging
Class ActionLogsService
java.lang.Object
com.jk.webstack.services.logging.ActionLogsService
This class is a service class used for managing action logs and user action
logs.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getActionLogCount
(String logType) This method retrieves the count of a specific type of action log.void
This method logs an action of a specified type and updates the corresponding action log count.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.
-
Constructor Details
-
ActionLogsService
public ActionLogsService()
-
-
Method Details
-
logAction
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
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
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.
-