info.magnolia.cms.security
Class SystemUserManager

java.lang.Object
  extended by info.magnolia.cms.security.RepositoryBackedSecurityManager
      extended by info.magnolia.cms.security.MgnlUserManager
          extended by info.magnolia.cms.security.SystemUserManager
All Implemented Interfaces:
UserManager
Direct Known Subclasses:
RescueSecuritySupport.RescueUserManager

public class SystemUserManager
extends MgnlUserManager

Responsible to handle system users like anonymous and superuser.

Version:
$Id$
Author:
philipp

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
SystemUserManager()
           
 
Method Summary
 Subject getAnonymousSubject()
           
 User getAnonymousUser()
          SystemUserManager does this.
protected  User getOrCreateUser(String userName, String password)
           
 String getRealmName()
           
 User getSystemUser()
          SystemUserManager does this.
 
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, getUser, getUserById, isAllowCrossRealmDuplicateNames, newUserInstance, newUserInstance, removeGroup, removeRole, setAllowCrossRealmDuplicateNames, setLockTimePeriod, setMaxFailedLoginAttempts, setName, setPasswordProperty, setPasswordProperty, setProperty, 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

SystemUserManager

public SystemUserManager()
Method Detail

getRealmName

public String getRealmName()
Overrides:
getRealmName in class MgnlUserManager

getSystemUser

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

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

getAnonymousUser

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

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

getAnonymousSubject

public Subject getAnonymousSubject()

getOrCreateUser

protected User getOrCreateUser(String userName,
                               String password)


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