info.magnolia.cms.security
Class RescueSecuritySupport.RescueUserManager

java.lang.Object
  extended by info.magnolia.cms.security.RepositoryBackedSecurityManager
      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_ENABLED, 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(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
addGroup, addRole, changePassword, createUser, createUserNode, encodePassword, findPrincipalNode, findUserNode, getACLs, getAllUsers, getFromRepository, getHierarchyManager, getLockTimePeriod, getMaxFailedLoginAttempts, getName, getRepositoryName, getUser, getUserById, newUserInstance, newUserInstance, removeGroup, removeRole, setLockTimePeriod, setMaxFailedLoginAttempts, setName, setPasswordProperty, setPasswordProperty, setProperty, setRealmName, updateLastAccessTimestamp, updateUserListWithAllChildren, userInstance, validateUsername
 
Methods inherited from class info.magnolia.cms.security.RepositoryBackedSecurityManager
add, getACLs, getACLs, getResourceName, hasAny, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface info.magnolia.cms.security.UserManager
hasAny
 

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(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-2012 Magnolia International Ltd.. All Rights Reserved.