info.magnolia.audit
Class AuditLoggingUtil

java.lang.Object
  extended by info.magnolia.audit.AuditLoggingUtil
Direct Known Subclasses:
AuditLoggingUtil

public class AuditLoggingUtil
extends Object

Utilities class used to log 'auditory actions'.

Author:
tmiyar

Field Summary
static String ACTION_ACTIVATE
           
static String ACTION_COPY
           
static String ACTION_CREATE
           
static String ACTION_DEACTIVATE
           
static String ACTION_DELETE
           
static String ACTION_LOGIN
           
static String ACTION_LOGOUT
           
static String ACTION_MODIFY
           
static String ACTION_MOVE
           
static String ACTION_SECURITY
           
 
Constructor Summary
AuditLoggingUtil()
           
 
Method Summary
static void log(LoginResult loginResult, javax.servlet.http.HttpServletRequest request)
          Log user login.
static void log(String action, long timeStamp, String workspaceName, javax.jcr.nodetype.NodeType nodeType, String path, String pathTo)
          Log create, modify, delete and move in session.
static void log(String action, String workspaceName, ItemType nodeType, String nodePath)
          Deprecated. since 4.5, use log(String, String, NodeType, String) instead.
static void log(String action, String workspaceName, javax.jcr.nodetype.NodeType nodeType, String nodePath)
          Log activate, deactivate incl. node type.
static void log(String action, String workspaceName, String nodePathFrom, String nodePathTo)
          Log copy, move.
static void log(String action, String workspaceFrom, String workspaceTo, String nodePathFrom, String nodePathTo)
          Log copy to another workspace.
static void log(UserContext userContext)
          Log user logout.
static void logSecurity(String ipAddress, String securityEventType, String securityEventdetails)
          Log a security event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_CREATE

public static final String ACTION_CREATE
See Also:
Constant Field Values

ACTION_MODIFY

public static final String ACTION_MODIFY
See Also:
Constant Field Values

ACTION_DELETE

public static final String ACTION_DELETE
See Also:
Constant Field Values

ACTION_COPY

public static final String ACTION_COPY
See Also:
Constant Field Values

ACTION_MOVE

public static final String ACTION_MOVE
See Also:
Constant Field Values

ACTION_ACTIVATE

public static final String ACTION_ACTIVATE
See Also:
Constant Field Values

ACTION_DEACTIVATE

public static final String ACTION_DEACTIVATE
See Also:
Constant Field Values

ACTION_LOGIN

public static final String ACTION_LOGIN
See Also:
Constant Field Values

ACTION_LOGOUT

public static final String ACTION_LOGOUT
See Also:
Constant Field Values

ACTION_SECURITY

public static final String ACTION_SECURITY
See Also:
Constant Field Values
Constructor Detail

AuditLoggingUtil

public AuditLoggingUtil()
Method Detail

log

@Deprecated
public static void log(String action,
                                  String workspaceName,
                                  ItemType nodeType,
                                  String nodePath)
Deprecated. since 4.5, use log(String, String, NodeType, String) instead.

Log activate, deactivate incl. node type.


log

public static void log(String action,
                       String workspaceName,
                       javax.jcr.nodetype.NodeType nodeType,
                       String nodePath)
Log activate, deactivate incl. node type.


log

public static void log(String action,
                       String workspaceName,
                       String nodePathFrom,
                       String nodePathTo)
Log copy, move.


log

public static void log(String action,
                       long timeStamp,
                       String workspaceName,
                       javax.jcr.nodetype.NodeType nodeType,
                       String path,
                       String pathTo)
Log create, modify, delete and move in session.


log

public static void log(String action,
                       String workspaceFrom,
                       String workspaceTo,
                       String nodePathFrom,
                       String nodePathTo)
Log copy to another workspace.


log

public static void log(UserContext userContext)
Log user logout.


log

public static void log(LoginResult loginResult,
                       javax.servlet.http.HttpServletRequest request)
Log user login.


logSecurity

public static void logSecurity(String ipAddress,
                               String securityEventType,
                               String securityEventdetails)
Log a security event.



Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.