UserKit.RoleUserManager | index /usr/local/share/webware/UserKit/RoleUserManager.py

`The RoleUserManager class.`

Classes
`` |  | UserKit.RoleUserManagerMixIn.RoleUserManagerMixIn(__builtin__.object) RoleUserManager(UserKit.UserManager.UserManager, UserKit.RoleUserManagerMixIn.RoleUserManagerMixIn) UserKit.UserManager.UserManager(__builtin__.object) RoleUserManager(UserKit.UserManager.UserManager, UserKit.RoleUserManagerMixIn.RoleUserManagerMixIn)
class RoleUserManager(UserKit.UserManager.UserManager, UserKit.RoleUserManagerMixIn.RoleUserManagerMixIn)
`` | `See the base classes for more information.`
| Method resolution order: RoleUserManager UserKit.UserManager.UserManager UserKit.RoleUserManagerMixIn.RoleUserManagerMixIn __builtin__.object Methods defined here: __init__(self, userClass=None) Methods inherited from UserKit.UserManager.UserManager: activeUserTimeout(self) activeUsers(self) `Return a list of all active users.` addUser(self, user) cachedUserTimeout(self) clearCache(self) `Clear the cache of the manager. Use with extreme caution. If your program maintains a reference to a user object, but the manager loads in a new copy later on, then consistency problems could occur. The most popular use of this method is in the regression test suite.` createUser(self, name, password, userClass=None) `Return a newly created user that is added to the manager. If userClass is not specified, the manager's default user class is instantiated. This not imply that the user is logged in. This method invokes addUser(). See also: userClass(), setUserClass()` inactiveUsers(self) login(self, user, password) `Return the user if the login is successful, otherwise return None.` loginExternalId(self, externalId, password) loginName(self, userName, password) loginSerialNum(self, serialNum, password) logout(self, user) modifiedUserTimeout(self) numActiveUsers(self) `Return the number of active users, e.g., users that are logged in.` setActiveUserTimeout(self, value) setCachedUserTimeout(self, value) setModifiedUserTimeout(self, value) setUserClass(self, userClass) `Set the userClass, which cannot be None and must inherit from User. See also: userClass().` shutDown(self) `Perform any tasks necessary to shut down the user manager. Subclasses may override and must invoke super as their *last* step.` userClass(self) `Return the userClass, which is used by createUser. The default value is UserKit.User.User.` userForExternalId(self, externalId, default=<class 'MiscUtils.NoDefault'>) `Return the user with the given external id. The user record is pulled into memory if needed.` userForName(self, name, default=<class 'MiscUtils.NoDefault'>) `Return the user with the given name. The user record is pulled into memory if needed.` userForSerialNum(self, serialNum, default=<class 'MiscUtils.NoDefault'>) `Return the user with the given serialNum. The user record is pulled into memory if needed.` users(self) `Return a list of all users (regardless of login status).` Data descriptors inherited from UserKit.UserManager.UserManager: __dict__ `dictionary for instance variables (if defined)` __weakref__ `list of weak references to the object (if defined)` Methods inherited from UserKit.RoleUserManagerMixIn.RoleUserManagerMixIn: addRole(self, role) clearRoles(self) delRole(self, name) hasRole(self, name) initUserClass(self) `Invoked by __init__ to set the default user class to RoleUser.` role(self, name, default=<class 'MiscUtils.NoDefault'>) roles(self)