|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
org.alfresco.repo.audit.hibernate.HibernateAuditDAO
public class HibernateAuditDAO
Assumes mimetype and encoding sent to the content store (we are not saving this anywhere)
| Field Summary |
|---|
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
HibernateAuditDAO()
|
|
| Method Summary | |
|---|---|
void |
audit(AuditState auditInfo)
Create an audit entry. |
void |
beforeCommit()
NO-OP |
boolean |
equals(java.lang.Object obj)
Checks equality by type and uuid |
void |
flush()
Just flushes the session |
java.util.List |
getAuditTrail(NodeRef nodeRef)
Get the audit trail for a node. |
ContentStore |
getContentStore()
|
int |
hashCode()
|
boolean |
isDirty()
Does this Session contain any changes which must be synchronized with the store? |
AuditSource |
queryApplicationSource(java.lang.String application)
Helper method to get the application source |
AuditSource |
queryApplicationSource(java.lang.String application,
java.lang.String service,
java.lang.String method)
Helper method to get the application source |
java.util.List |
queryAuditTrail(NodeRef nodeRef)
Helper method to get all the audit entries for a node. |
static AuditConfig |
queryLatestConfig(org.hibernate.Session session)
Helper method to get the latest audit config |
AuditDate |
queryLatestDate()
Helper method to get the latest audit date |
AuditDate |
queryLatestDate(java.util.Date date)
Helper method to get the latest audit date |
void |
setContentStore(ContentStore contentStore)
|
void |
setLocalSessionFactory(org.springframework.orm.hibernate3.LocalSessionFactoryBean localSessionFactory)
|
| Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
|---|
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
| Methods inherited from class org.springframework.dao.support.DaoSupport |
|---|
afterPropertiesSet, initDao |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HibernateAuditDAO()
| Method Detail |
|---|
public ContentStore getContentStore()
public void setContentStore(ContentStore contentStore)
public void setLocalSessionFactory(org.springframework.orm.hibernate3.LocalSessionFactoryBean localSessionFactory)
public void audit(AuditState auditInfo)
AuditDAO
audit in interface AuditDAOpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectHibernateAuditDAO.uuidpublic boolean isDirty()
isDirty in interface TransactionalDaopublic void flush()
flush in interface TransactionalDaopublic void beforeCommit()
beforeCommit in interface TransactionalDaopublic java.util.List getAuditTrail(NodeRef nodeRef)
AuditDAO
getAuditTrail in interface AuditDAOpublic static AuditConfig queryLatestConfig(org.hibernate.Session session)
public AuditDate queryLatestDate()
public java.util.List queryAuditTrail(NodeRef nodeRef)
public AuditSource queryApplicationSource(java.lang.String application)
application -
public AuditSource queryApplicationSource(java.lang.String application,
java.lang.String service,
java.lang.String method)
application -
public AuditDate queryLatestDate(java.util.Date date)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||