java.lang.Object
com.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 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
AuditInfo
public AuditInfo()
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.