org.qi4j.library.eventsourcing.domain.factory
Class CurrentUserUoWPrincipal

java.lang.Object
  extended by org.qi4j.library.eventsourcing.domain.factory.CurrentUserUoWPrincipal
All Implemented Interfaces:
CurrentUser

public class CurrentUserUoWPrincipal
extends Object
implements CurrentUser

CurrentUser implementation that gets a Principal object from the meta-info of the current UnitOfWork. Default to "unknown".


Constructor Summary
CurrentUserUoWPrincipal()
           
 
Method Summary
 String getCurrentUser()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurrentUserUoWPrincipal

public CurrentUserUoWPrincipal()
Method Detail

getCurrentUser

public String getCurrentUser()
Specified by:
getCurrentUser in interface CurrentUser