Class MemoryTurbineUserManagerImpl

All Implemented Interfaces:
Serializable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.thread.ThreadSafe, TurbineUserManager, UserManager

public class MemoryTurbineUserManagerImpl extends MemoryUserManagerImpl implements TurbineUserManager
This implementation keeps all objects in memory. This is mostly meant to help with testing and prototyping of ideas.
Version:
$Id: MemoryTurbineUserManagerImpl.java 535465 2007-05-05 06:58:06Z tv $
Author:
Eric Pugh
See Also:
  • Constructor Details

    • MemoryTurbineUserManagerImpl

      public MemoryTurbineUserManagerImpl()
  • Method Details

    • getAnonymousUser

      public <T extends User> T getAnonymousUser() throws UnknownEntityException
      Constructs an User object to represent an anonymous user of the application.
      Specified by:
      getAnonymousUser in interface TurbineUserManager
      Returns:
      An anonymous Turbine User.
      Throws:
      UnknownEntityException - if the implementation of User interface could not be determined, or does not exist.
    • isAnonymousUser

      public boolean isAnonymousUser(User user)
      Checks whether a passed user object matches the anonymous user pattern according to the configured user manager
      Specified by:
      isAnonymousUser in interface TurbineUserManager
      Parameters:
      user - An user object
      Returns:
      true if this is an anonymous user