org.squashtest.csp.tm.domain.event
Class AbstractRequirementEventPublisher

java.lang.Object
  extended by org.squashtest.csp.tm.domain.event.AbstractRequirementEventPublisher

public abstract class AbstractRequirementEventPublisher
extends Object

Superclass for requirement event publisher aspects. Mainly offers common convenience methods

Author:
Gregory Fouquet

Constructor Summary
AbstractRequirementEventPublisher()
           
 
Method Summary
protected  boolean aspectIsEnabled()
          The aspect is enabled if it can publish events to an auditor.
protected  String currentUser()
           
protected  void publish(RequirementAuditEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRequirementEventPublisher

public AbstractRequirementEventPublisher()
Method Detail

aspectIsEnabled

protected final boolean aspectIsEnabled()
The aspect is enabled if it can publish events to an auditor.

Returns:
true if the aspect is enabled.

currentUser

protected final String currentUser()
Returns:
the current user's username, 'unknown' if there is no user context.

publish

protected final void publish(RequirementAuditEvent event)


Copyright © 2010-2012 Squashtest TM, Squashtest.org. All Rights Reserved.