protected static class RescueSecuritySupport.RescueUserManager extends SystemUserManager
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
.
NODE_ACLUSERS, PROPERTY_EMAIL, PROPERTY_ENABLED, PROPERTY_LANGUAGE, PROPERTY_LASTACCESS, PROPERTY_PASSWORD, PROPERTY_TIMEZONE, PROPERTY_TITLE
nodeNameHelper
ANONYMOUS_USER, SYSTEM_PSWD, SYSTEM_USER
Modifier | Constructor and Description |
---|---|
protected |
RescueUserManager() |
Modifier and Type | Method and Description |
---|---|
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.
|
getAnonymousSubject, getOrCreateUser, getRealmName
addGroup, addRole, aggregateDirectAndTransitiveGroups, aggregateDirectAndTransitiveRoles, changePassword, collectUniquePropertyNames, createUser, createUser, createUserNode, createUserNode, encodePassword, findAllUsersInFolder, findPrincipalNode, getACLs, getAllUsers, getFromRepository, getHierarchyManager, getLockTimePeriod, getMaxFailedLoginAttempts, getRepositoryName, getUser, getUserById, getUsersWithGroup, getUsersWithGroup, getUsersWithRole, isAllowCrossRealmDuplicateNames, newUserInstance, removeGroup, removeRole, setAllowCrossRealmDuplicateNames, setLockTimePeriod, setMaxFailedLoginAttempts, setPasswordProperty, setProperty, setProperty, setRealmName, validateUsername
add, findPrincipalNode, findPrincipalNode, findPrincipalNodes, findUsersOrGroupsHavingAssignedGroupOrRoleWithUid, getACLs, getACLs, getResourceName, hasAny, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasAny
public User getSystemUser()
MgnlUserManager
getSystemUser
in interface UserManager
getSystemUser
in class SystemUserManager
public User getAnonymousUser()
MgnlUserManager
getAnonymousUser
in interface UserManager
getAnonymousUser
in class SystemUserManager
public User getUser(String name)
MgnlUserManager
getUser
in interface UserManager
getUser
in class MgnlUserManager
name
- name of the user to retrievepublic void updateLastAccessTimestamp(User user)
UserManager
updateLastAccessTimestamp
in interface UserManager
updateLastAccessTimestamp
in class MgnlUserManager
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.