|
|||||||||
| 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)
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.alfresco.repo.domain.audit.AuditDAO |
|---|
AuditDAO.AuditApplicationInfo |
| 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 |
AuditDAO.AuditApplicationInfo |
createAuditApplication(java.lang.String application,
java.lang.Long modelId)
Fallout implementation from new audit DAO |
java.lang.Long |
createAuditEntry(java.lang.Long applicationId,
long time,
java.lang.String username,
java.util.Map values)
Fallout implementation from new audit DAO |
void |
deleteAuditEntries(java.lang.Long applicationId,
java.lang.Long from,
java.lang.Long to)
Fallout implementation from new audit DAO |
boolean |
equals(java.lang.Object obj)
Checks equality by type and uuid |
void |
findAuditEntries(AuditService.AuditQueryCallback callback,
AuditQueryParameters parameters,
int maxResults)
Fallout implementation from new audit DAO |
void |
flush()
Just flushes the session |
AuditDAO.AuditApplicationInfo |
getAuditApplication(java.lang.String applicationName)
Fallout implementation from new audit DAO |
java.util.List |
getAuditTrail(NodeRef nodeRef)
Get the audit trail for a node. |
ContentStore |
getContentStore()
|
org.alfresco.util.Pair |
getOrCreateAuditModel(java.net.URL url)
Fallout implementation from new audit DAO |
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)
|
void |
updateAuditApplicationDisabledPaths(java.lang.Long id,
java.util.Set disabledPaths)
Fallout implementation from new audit DAO |
void |
updateAuditApplicationModel(java.lang.Long id,
java.lang.Long modelId)
Fallout implementation from new audit DAO |
| 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)
public org.alfresco.util.Pair getOrCreateAuditModel(java.net.URL url)
getOrCreateAuditModel in interface AuditDAOjava.lang.UnsupportedOperationException - always
public AuditDAO.AuditApplicationInfo createAuditApplication(java.lang.String application,
java.lang.Long modelId)
createAuditApplication in interface AuditDAOapplication - the name of the applicationmodelId - the ID of the model configuration
java.lang.UnsupportedOperationException - alwayspublic AuditDAO.AuditApplicationInfo getAuditApplication(java.lang.String applicationName)
getAuditApplication in interface AuditDAOapplicationName - the name of the application
java.lang.UnsupportedOperationException - always
public void updateAuditApplicationModel(java.lang.Long id,
java.lang.Long modelId)
updateAuditApplicationModel in interface AuditDAOid - the ID of the audit applicationmodelId - the ID of the new model
java.lang.UnsupportedOperationException - always
public void updateAuditApplicationDisabledPaths(java.lang.Long id,
java.util.Set disabledPaths)
updateAuditApplicationDisabledPaths in interface AuditDAOid - the ID of the audit applicationdisabledPaths - the new disabled paths
java.lang.UnsupportedOperationException - always
public void deleteAuditEntries(java.lang.Long applicationId,
java.lang.Long from,
java.lang.Long to)
deleteAuditEntries in interface AuditDAOapplicationId - and existing audit application IDfrom - the minimum entry time (inclusive, optional)to - the maximum entry time (exclusive, optional)
java.lang.UnsupportedOperationException - always
public java.lang.Long createAuditEntry(java.lang.Long applicationId,
long time,
java.lang.String username,
java.util.Map values)
createAuditEntry in interface AuditDAOapplicationId - an existing audit application IDtime - the time (ms since epoch) to log the entry againstusername - the authenticated user (null if not present)values - the values to record
java.lang.UnsupportedOperationException - always
public void findAuditEntries(AuditService.AuditQueryCallback callback,
AuditQueryParameters parameters,
int maxResults)
findAuditEntries in interface AuditDAOcallback - the data callback per entryparameters - the parameters for the query (may not be null)maxResults - the maximum number of results to retrieve
java.lang.UnsupportedOperationException - always
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||