org.synyx.hades.sample.auditing
Class AuditorAwareImpl

java.lang.Object
  extended by org.synyx.hades.sample.auditing.AuditorAwareImpl
All Implemented Interfaces:
AuditorAware<AuditableUser>

public class AuditorAwareImpl
extends java.lang.Object
implements AuditorAware<AuditableUser>

Dummy implementation of AuditorAware. It will return the configured AuditableUser as auditor on every call to getCurrentAuditor(). Normally you would access the applications security subsystem to return the current user.

Author:
Oliver Gierke - gierke@synyx.de

Constructor Summary
AuditorAwareImpl()
           
 
Method Summary
 AuditableUser getCurrentAuditor()
           
 void setAuditor(AuditableUser auditor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuditorAwareImpl

public AuditorAwareImpl()
Method Detail

setAuditor

public void setAuditor(AuditableUser auditor)
Parameters:
auditor - the auditor to set

getCurrentAuditor

public AuditableUser getCurrentAuditor()
Specified by:
getCurrentAuditor in interface AuditorAware<AuditableUser>


Copyright © 2009-2010 Synyx GmbH & Co. KG. All Rights Reserved.