info.magnolia.cms.security
Class RescueSecuritySupport.RescueUserManager

java.lang.Object
  extended by info.magnolia.cms.security.MgnlUserManager
      extended by info.magnolia.cms.security.SystemUserManager
          extended by info.magnolia.cms.security.RescueSecuritySupport.RescueUserManager
All Implemented Interfaces:
UserManager
Enclosing class:
RescueSecuritySupport

protected class RescueSecuritySupport.RescueUserManager
extends SystemUserManager

TODO: extract as top level class? Currently this class is tested implicitly by RescueSecuritySupportTest. Should this implement directly UserManager and throw UnsupportedMethodException for the methods not implemented?

Overrides SystemUserManager.getSystemUser(), SystemUserManager.getAnonymousUser() and MgnlUserManager.getUser(String). All methods return an instance of RescueSecuritySupport.RescueUser.

Version:
$Id$

Field Summary
 
Fields inherited from class info.magnolia.cms.security.MgnlUserManager
NODE_ACLUSERS, PROPERTY_EMAIL, PROPERTY_LANGUAGE, PROPERTY_LASTACCESS, PROPERTY_PASSWORD, PROPERTY_TITLE
 
Fields inherited from interface info.magnolia.cms.security.UserManager
ANONYMOUS_USER, SYSTEM_PSWD, SYSTEM_USER
 
Constructor Summary
protected RescueSecuritySupport.RescueUserManager()
           
 
Method Summary
 User getAnonymousUser()
          SystemUserManager does this.
 User getSystemUser()
          SystemUserManager does this.
 User getUser(java.lang.String name)
          Get the user object.
 
Methods inherited from class info.magnolia.cms.security.SystemUserManager
getOrCreateUser, getRealmName
 
Methods inherited from class info.magnolia.cms.security.MgnlUserManager
changePassword, createUser, createUserNode, encodePassword, findUserNode, getAllUsers, getFromRepository, getHierarchyManager, getLockTimePeriod, getMaxFailedLoginAttempts, getName, getUser, newUserInstance, setLockTimePeriod, setMaxFailedLoginAttempts, setName, setPasswordProperty, updateUserListWithAllChildren, userInstance, validateUsername
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RescueSecuritySupport.RescueUserManager

protected RescueSecuritySupport.RescueUserManager()
Method Detail

getSystemUser

public User getSystemUser()
Description copied from class: MgnlUserManager
SystemUserManager does this.

Specified by:
getSystemUser in interface UserManager
Overrides:
getSystemUser in class SystemUserManager

getAnonymousUser

public User getAnonymousUser()
Description copied from class: MgnlUserManager
SystemUserManager does this.

Specified by:
getAnonymousUser in interface UserManager
Overrides:
getAnonymousUser in class SystemUserManager

getUser

public User getUser(java.lang.String name)
Description copied from class: MgnlUserManager
Get the user object. Uses a search

Specified by:
getUser in interface UserManager
Overrides:
getUser in class MgnlUserManager
Parameters:
name - the name of the user
Returns:
the user object


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.