Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.RuntimeCollective.webapps.bean
Class AuditInfo  view AuditInfo download AuditInfo.java

java.lang.Object
  extended bycom.RuntimeCollective.webapps.bean.AuditInfo

public class AuditInfo
extends java.lang.Object

A store for historical audit information about beans.

Version:
$Id: AuditInfo.java,v 1.4 2003/09/30 15:13:09 joe Exp $

Field Summary
static java.lang.String APPROVAL_ACTION
          The action (notes) to use when approving a bean.
static java.lang.String CREATION_ACTION
          The action (notes) to use when creating a bean.
static java.lang.String DATABASE_TABLE
           
protected static java.lang.String ORDER_BY_DATE_DESC
           
protected static java.lang.String SELECT_USER_DATE_WHERE_ID
           
 
Constructor Summary
AuditInfo()
           
 
Method Summary
static java.util.Date getLastApprovalDate(EntityBean edited)
          Get the last approval date of an edited object.
static User getLastApprovalUser(EntityBean edited)
          Get the last approval user of an edited object.
static java.util.Date getLastCreationDate(EntityBean edited)
          Get the last creation date of an edited object.
static User getLastCreationUser(EntityBean edited)
          Get the last creation user of an edited object.
static java.util.List getLastEditUserAndDate(EntityBean edited, java.lang.String notes)
          Get the date of the latest action (of a given type/notes) for a bean/ Useful to get the last approval date of a bean, for example.
static void recordEdit(EntityBean edited, User editor, java.lang.String notes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATABASE_TABLE

public static final java.lang.String DATABASE_TABLE
See Also:
Constant Field Values

SELECT_USER_DATE_WHERE_ID

protected static java.lang.String SELECT_USER_DATE_WHERE_ID

ORDER_BY_DATE_DESC

protected static java.lang.String ORDER_BY_DATE_DESC

APPROVAL_ACTION

public static java.lang.String APPROVAL_ACTION
The action (notes) to use when approving a bean.


CREATION_ACTION

public static java.lang.String CREATION_ACTION
The action (notes) to use when creating a bean.

Constructor Detail

AuditInfo

public AuditInfo()
Method Detail

recordEdit

public static void recordEdit(EntityBean edited,
                              User editor,
                              java.lang.String notes)

getLastEditUserAndDate

public static java.util.List getLastEditUserAndDate(EntityBean edited,
                                                    java.lang.String notes)
Get the date of the latest action (of a given type/notes) for a bean/ Useful to get the last approval date of a bean, for example.


getLastApprovalDate

public static java.util.Date getLastApprovalDate(EntityBean edited)
Get the last approval date of an edited object. This takes the date of the latest approval action for a given bean.


getLastCreationDate

public static java.util.Date getLastCreationDate(EntityBean edited)
Get the last creation date of an edited object. This takes the date of the latest creation action for a given bean.


getLastApprovalUser

public static User getLastApprovalUser(EntityBean edited)
Get the last approval user of an edited object. This takes the user of the latest approval action for a given bean.


getLastCreationUser

public static User getLastCreationUser(EntityBean edited)
Get the last creation user of an edited object. This takes the user of the latest creation action for a given bean.