Package ubic.gemma.core.security.audit
Class AuditAdvice
- java.lang.Object
- 
- ubic.gemma.core.security.audit.AuditAdvice
 
- 
 @Component @ParametersAreNonnullByDefault public class AuditAdvice extends Object Manage audit trails on objects.When an auditable entity is created, updated or deleted, this advice will automatically populate the audit trail with appropriate audit events before the operation occurs. - Author:
- pavlidis, poirigui
 
- 
- 
Constructor SummaryConstructors Constructor Description AuditAdvice()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoCreateAdvice(org.aspectj.lang.JoinPoint pjp)Perform the audit advice on when entities are created.voiddoDeleteAdvice(org.aspectj.lang.JoinPoint pjp)Perform auditing when entities are deleted.voiddoSaveAdvice(org.aspectj.lang.JoinPoint pjp)Perform auditing when entities are saved.voiddoUpdateAdvice(org.aspectj.lang.JoinPoint pjp)Perform auditing when entities are updated.static Collection<Auditable>extractAuditables(Object object)Efficiently extract all auditable of a given type in an object's tree.
 
- 
- 
- 
Method Detail- 
doCreateAdvicepublic void doCreateAdvice(org.aspectj.lang.JoinPoint pjp) Perform the audit advice on when entities are created.This audit will cascade on CascadeStyle.PERSIST.
 - 
doUpdateAdvicepublic void doUpdateAdvice(org.aspectj.lang.JoinPoint pjp) Perform auditing when entities are updated.This audit will cascade on CascadeStyle.UPDATE.
 - 
doSaveAdvicepublic void doSaveAdvice(org.aspectj.lang.JoinPoint pjp) Perform auditing when entities are saved.This audit will cascade on CascadeStyle.PERSISTif the audited entity is transient elseCascadeStyle.MERGE.
 - 
doDeleteAdvicepublic void doDeleteAdvice(org.aspectj.lang.JoinPoint pjp) Perform auditing when entities are deleted.This audit will cascade on CascadeStyle.DELETE.
 - 
extractAuditablespublic static Collection<Auditable> extractAuditables(Object object) Efficiently extract all auditable of a given type in an object's tree.This method traverses Map,Collection,Iterableand Java arrays, but not properties and fields of objects.
 
- 
 
-