|
|||||||||
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 AuditDAO
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
HibernateAuditDAO.uuid
public boolean isDirty()
isDirty
in interface TransactionalDao
public void flush()
flush
in interface TransactionalDao
public void beforeCommit()
beforeCommit
in interface TransactionalDao
public java.util.List getAuditTrail(NodeRef nodeRef)
AuditDAO
getAuditTrail
in interface AuditDAO
public 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 AuditDAO
java.lang.UnsupportedOperationException
- alwayspublic AuditDAO.AuditApplicationInfo createAuditApplication(java.lang.String application, java.lang.Long modelId)
createAuditApplication
in interface AuditDAO
application
- 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 AuditDAO
applicationName
- the name of the application
java.lang.UnsupportedOperationException
- alwayspublic void updateAuditApplicationModel(java.lang.Long id, java.lang.Long modelId)
updateAuditApplicationModel
in interface AuditDAO
id
- the ID of the audit applicationmodelId
- the ID of the new model
java.lang.UnsupportedOperationException
- alwayspublic void updateAuditApplicationDisabledPaths(java.lang.Long id, java.util.Set disabledPaths)
updateAuditApplicationDisabledPaths
in interface AuditDAO
id
- the ID of the audit applicationdisabledPaths
- the new disabled paths
java.lang.UnsupportedOperationException
- alwayspublic void deleteAuditEntries(java.lang.Long applicationId, java.lang.Long from, java.lang.Long to)
deleteAuditEntries
in interface AuditDAO
applicationId
- and existing audit application IDfrom
- the minimum entry time (inclusive, optional)to
- the maximum entry time (exclusive, optional)
java.lang.UnsupportedOperationException
- alwayspublic java.lang.Long createAuditEntry(java.lang.Long applicationId, long time, java.lang.String username, java.util.Map values)
createAuditEntry
in interface AuditDAO
applicationId
- 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
- alwayspublic void findAuditEntries(AuditService.AuditQueryCallback callback, AuditQueryParameters parameters, int maxResults)
findAuditEntries
in interface AuditDAO
callback
- 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 |