Package lumis.util.log
Class AccessAuditLogger
- java.lang.Object
-
- lumis.util.log.AccessAuditLogger
-
- All Implemented Interfaces:
IAccessAuditLogger
public class AccessAuditLogger extends Object implements IAccessAuditLogger
IAccessAuditLogger
implementation.- Since:
- 12.3.0
- Version:
- $Revision: 24822 $ $Date: 2022-01-28 15:40:05 -0300 (Fri, 28 Jan 2022) $
-
-
Constructor Summary
Constructors Constructor Description AccessAuditLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IAccessAuditLogger
accessedUserId(String accessedUserId)
Sets the accessed user identifier (if any).IAccessAuditLogger
action(String action)
Sets the action performed when the access was generated (if any).IAccessAuditLogger
area(String area)
Sets the area from where the access was generated from (if any).IAccessAuditLogger
category(String category)
Sets the category from where the access was generated from (if any).IAccessAuditLogger
currentUserId(String currentUserId)
Sets the current user identifier (if any).IAccessAuditLogger
extraParameters(Map<String,String> extraParameters)
Sets any desired extra parameters to be logged.void
log()
Log an access audit entry with no message.void
log(String message)
Log an access audit entry with the given message.IAccessAuditLogger
url(String url)
Sets the URL that generated the access.
-
-
-
Method Detail
-
url
public IAccessAuditLogger url(String url)
Description copied from interface:IAccessAuditLogger
Sets the URL that generated the access. If the code that will log an access entry runs within a LumisXP request cycle (within a data provider, for example), the access URL will automatically be available to the log entry and may be omitted.- Specified by:
url
in interfaceIAccessAuditLogger
- Parameters:
url
- the accessed URL that generated the access.- Returns:
- this logger to chain commands.
-
area
public IAccessAuditLogger area(String area)
Description copied from interface:IAccessAuditLogger
Sets the area from where the access was generated from (if any).- Specified by:
area
in interfaceIAccessAuditLogger
- Parameters:
area
- the area.- Returns:
- this logger to chain commands.
-
category
public IAccessAuditLogger category(String category)
Description copied from interface:IAccessAuditLogger
Sets the category from where the access was generated from (if any).- Specified by:
category
in interfaceIAccessAuditLogger
- Parameters:
category
- the category.- Returns:
- this logger to chain commands.
-
action
public IAccessAuditLogger action(String action)
Description copied from interface:IAccessAuditLogger
Sets the action performed when the access was generated (if any).- Specified by:
action
in interfaceIAccessAuditLogger
- Parameters:
action
- the action.- Returns:
- this logger to chain commands.
-
accessedUserId
public IAccessAuditLogger accessedUserId(String accessedUserId)
Description copied from interface:IAccessAuditLogger
Sets the accessed user identifier (if any).- Specified by:
accessedUserId
in interfaceIAccessAuditLogger
- Parameters:
accessedUserId
- the accessed user identifier.- Returns:
- this logger to chain commands.
-
extraParameters
public IAccessAuditLogger extraParameters(Map<String,String> extraParameters)
Description copied from interface:IAccessAuditLogger
Sets any desired extra parameters to be logged.- Specified by:
extraParameters
in interfaceIAccessAuditLogger
- Parameters:
extraParameters
- the extra parameters.- Returns:
- this logger to chain commands.
-
currentUserId
public IAccessAuditLogger currentUserId(String currentUserId)
Description copied from interface:IAccessAuditLogger
Sets the current user identifier (if any). If the code that will log an access entry does not add a current user identifier, the currently monitored user will try to be added automatically when the log happens.- Specified by:
currentUserId
in interfaceIAccessAuditLogger
- Parameters:
currentUserId
- the current user identifier.- Returns:
- this logger to chain commands.
-
log
public void log(String message)
Description copied from interface:IAccessAuditLogger
Log an access audit entry with the given message.- Specified by:
log
in interfaceIAccessAuditLogger
- Parameters:
message
- the message.
-
log
public void log()
Description copied from interface:IAccessAuditLogger
Log an access audit entry with no message.- Specified by:
log
in interfaceIAccessAuditLogger
-
-