Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members  

UserProfile Class Reference

#include <UserProfile.h>

Inheritance diagram for UserProfile:

AbstractDocument List of all members.

Public Methods

 UserProfile ()
bool hasPermission (string name) const
void setPermission (string name, bool value)
bool hasPermissions (const UserProfile &user) const
string toXML () const
DocumentError fromXML (const string &str)
DocumentError fromXML (const string &str, NumID userid)
NumID getID () const

Detailed Description

XML-based user profile. It contains full name, user name, password, permissions and possibly a (encrypted) fingerprint or iris scan (hash).


Constructor & Destructor Documentation

UserProfile::UserProfile  
 

Constructor.


Member Function Documentation

DocumentError UserProfile::fromXML const string &    str,
NumID    userid
 

Read user profile from XML.

Parameters:
str  the XML for this user profile
userid  the user's ID in case of core data

DocumentError UserProfile::fromXML const string &    str [virtual]
 

Read user profile from XML.

Parameters:
str  the XML for this user profile

Implements AbstractDocument.

NumID UserProfile::getID  
 

Returns this user's ID.

bool UserProfile::hasPermission string    name const
 

Check if this user has permission name.

Parameters:
name  the name of the requested permission
Returns:
true if the user has the permission, false otherwise

bool UserProfile::hasPermissions const UserProfile &    user const
 

Check if this user has all permissions of user.

Parameters:
user  the user profile to test
Returns:
true if the user has all the permissions, false otherwise

void UserProfile::setPermission string    name,
bool    value
 

Check if this user has permission name.

Parameters:
name  the name of the permission
value  the value for the permission

string UserProfile::toXML   [virtual]
 

Returns an XML representation of the user profile.

Implements AbstractDocument.


The documentation for this class was generated from the following files:
Generated on Wed Feb 18 13:45:57 2004 for strongroom by doxygen1.2.18