4Suite API Documentation

Module Ft.Server.Server.SCore.UserImp

User repository resource class
Copyright 2003 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/
Classes:
Functions:
Globals:

Classes

class UserImp(Ft.Server.Server.SCore.XmlDocumentImp.XmlDocumentImp, Ft.Server.Server.SCore.GroupableObjectMixin.GroupableObjectMixin)
A specialized XML document which represents a system user

Methods

__delitem__(self, name)
Implements python dictionary interface
__getitem__(self, name)
Implements python dictionary interface
__setitem__(self, name, value)
Implements python dictionary interface
get(self, name, defaultValue=None)
Implements python dictionary 'get' interface for the user data associated with this user
getPassword(self)
Get the SHA1 hash of this users password
getUserData(self)
Returns a dictionary containing key value pairs of user data
getUsername(self)
Get the username of this user.
has_key(self, key)
Implements python dictionary 'has_key' interface
items(self)
Implements python dictionary 'items' interface
keys(self)
Implements python dictionary 'keys' interface
setPassword(self, newPasswd)
setUserData(self, userData)
Sets the user data using the specified dictionary
setUsername(self, name)
values(self)
Implements python dictionary 'values' interface

Methods inherited from class Ft.Server.Server.SCore.XmlDocumentImp.XmlDocumentImp

Methods inherited from class Ft.Server.Server.SCore.RawFileImp.RawFileImp

Methods inherited from class Ft.Server.Server.SCore.ResourceMetaDataImp.ResourceMetaDataImp

Methods inherited from class Ft.Server.Server.SCore.GroupableObjectMixin.GroupableObjectMixin

Members

resourceType = 7

Functions

NewUserXml(driver, userName, path, passwdHash, acl, owner, docDef)

Globals

FTSERVER_NAMESPACE = 'http://xmlns.4suite.org/reserved'
UPDATE_PASSWORD = '<xupdate:modifications\n version="1.0"\n xmlns:x...sh">%s</xupdate:update>\n</xupdate:modifications>\n'
UPDATE_USERNAME = '<xupdate:modifications\n version="1.0"\n xmlns:x...me">%s</xupdate:update>\n</xupdate:modifications>\n'
UPDATE_USER_DATA = '<xupdate:modifications\n version="1.0"\n xmlns:x...()\'>%s</xupdate:append>\n</xupdate:modifications>\n'