com.github.inspektr.audit
Class AuditActionContext

java.lang.Object
  extended by com.github.inspektr.audit.AuditActionContext
All Implemented Interfaces:
Serializable

public final class AuditActionContext
extends Object
implements Serializable

Immutable container holding the core elements of an audit-able action that need to be recorded as an audit trail record.

Since:
1.0
Version:
$Id: AuditActionContext.java,v 1.2 2007/06/14 14:43:32 dkopylen Exp $
Author:
Dmitriy Kopylenko
See Also:
Serialized Form

Constructor Summary
AuditActionContext(String principal, String resourceOperatedUpon, String actionPerformed, String applicationCode, Date whenActionWasPerformed, String clientIpAddress, String serverIpAddress, AuditPointRuntimeInfo runtimeInfo)
           
 
Method Summary
protected  void assertNotNull(Object o, String message)
           
 String getActionPerformed()
           
 String getApplicationCode()
           
 String getClientIpAddress()
           
 String getPrincipal()
           
 String getResourceOperatedUpon()
           
 String getServerIpAddress()
           
 Date getWhenActionWasPerformed()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuditActionContext

public AuditActionContext(String principal,
                          String resourceOperatedUpon,
                          String actionPerformed,
                          String applicationCode,
                          Date whenActionWasPerformed,
                          String clientIpAddress,
                          String serverIpAddress,
                          AuditPointRuntimeInfo runtimeInfo)
Method Detail

assertNotNull

protected void assertNotNull(Object o,
                             String message)

getPrincipal

public String getPrincipal()

getResourceOperatedUpon

public String getResourceOperatedUpon()

getActionPerformed

public String getActionPerformed()

getApplicationCode

public String getApplicationCode()

getWhenActionWasPerformed

public Date getWhenActionWasPerformed()

getClientIpAddress

public String getClientIpAddress()

getServerIpAddress

public String getServerIpAddress()


Copyright © 2007-2012 Rutgers, the State University of New Jersey. All Rights Reserved.