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.
 void updateLastAccessTimestamp(User user)
          Updates last access timestamp for the user.
 
Methods inherited from class info.magnolia.cms.security.SystemUserManager
getAnonymousSubject, getOrCreateUser, getRealmName
 
Methods inherited from class info.magnolia.cms.security.MgnlUserManager
addGroup, addRole, changePassword, createUser, createUser, createUserNode, encodePassword, findPrincipalNode, findUserNode, getACLs, getAllUsers, getFromRepository, getHierarchyManager, getLockTimePeriod, getMaxFailedLoginAttempts, getName, getRepositoryName, getUser, getUserById, isAllowCrossRealmDuplicateNames, newUserInstance, newUserInstance, removeGroup, removeRole, setAllowCrossRealmDuplicateNames, setLockTimePeriod, setMaxFailedLoginAttempts, setName, setPasswordProperty, setPasswordProperty, setProperty, setProperty, setRealmName, 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

updateLastAccessTimestamp

public void updateLastAccessTimestamp(User user)
Description copied from interface: UserManager
Updates last access timestamp for the user.

Specified by:
updateLastAccessTimestamp in interface UserManager
Overrides:
updateLastAccessTimestamp in class MgnlUserManager


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.