Static Public Member Functions

MachineUser Class Reference

encapsulated machine user/role/host management in several static functions; it is called directly from the user centered transactions; DO NOT USE THIS CLASS OUTSIDE TRANSACTION CONTEXT! More...

List of all members.

Static Public Member Functions

static changePasswd ($trans)
 change a users password
static createRole ($trans)
 creates a role
static createUser ($trans)
 create a new user
static deleteHost ($trans)
 deletes a host
static deleteRole ($trans)
 delete role
static deleteUser ($trans)
 deletes or merges a user
static getAllHostNames ($trans)
 get all host names (sub-routine for clients user host dialog)
static getUserHosts ($trans)
 get hosts of a user
static getUserRoles ($trans)
 returns the roles of a user
static setHost ($trans)
 create/update host
static setRoleDescription ($trans)
 sets the description of a role
static setRoleFlags ($trans)
 sets the flags of a role
static setRoleRights ($trans)
 changes the rights attached to a role
static setUserDescription ($trans)
 sets the description of a user
static setUserFlags ($trans)
 sets the flags of a user
static setUserHosts ($trans)
 set the hosts for a user
static setUserRoles ($trans)
 set roles of a user

Detailed Description

encapsulated machine user/role/host management in several static functions; it is called directly from the user centered transactions; DO NOT USE THIS CLASS OUTSIDE TRANSACTION CONTEXT!


Member Function Documentation

static MachineUser::changePasswd ( trans  )  [static]

change a users password

References WTuser::getFromDB(), getSalt(), and tr().

Referenced by WTrChangePassword::handleRequest().

static MachineUser::createRole ( trans  )  [static]

creates a role

References WTrole::getFromDB(), WTrole::newRow(), and tr().

Referenced by WTrCreateRole::handleRequest().

static MachineUser::createUser ( trans  )  [static]
static MachineUser::deleteHost ( trans  )  [static]

deletes a host

References WThost::getFromDB(), and tr().

Referenced by WTrDeleteHost::handleRequest().

static MachineUser::deleteRole ( trans  )  [static]

delete role

References $db, WTrole::getFromDB(), and tr().

Referenced by WTrDeleteRole::handleRequest().

static MachineUser::deleteUser ( trans  )  [static]

deletes or merges a user

References $db, WTuser::getFromDB(), and tr().

Referenced by WTrDeleteUser::handleRequest().

static MachineUser::getAllHostNames ( trans  )  [static]

get all host names (sub-routine for clients user host dialog)

References $db.

Referenced by WTrGetAllHostNames::handleRequest().

static MachineUser::getUserHosts ( trans  )  [static]

get hosts of a user

References $db, WTuser::getFromDB(), and tr().

Referenced by WTrGetUserHosts::handleRequest().

static MachineUser::getUserRoles ( trans  )  [static]

returns the roles of a user

References $db, WTuser::getFromDB(), WTuserrole::selectFromDB(), and tr().

Referenced by WTrGetUserRoles::handleRequest().

static MachineUser::setHost ( trans  )  [static]

create/update host

References WThost::getFromDB(), WThost::newRow(), and tr().

Referenced by WTrSetHost::handleRequest().

static MachineUser::setRoleDescription ( trans  )  [static]

sets the description of a role

References WTrole::getFromDB(), and tr().

Referenced by WTrSetRoleDescription::handleRequest().

static MachineUser::setRoleFlags ( trans  )  [static]

sets the flags of a role

References WOFlag::getAll(), WTrole::getFromDB(), and tr().

Referenced by WTrSetRoleFlags::handleRequest().

static MachineUser::setRoleRights ( trans  )  [static]
static MachineUser::setUserDescription ( trans  )  [static]

sets the description of a user

References WTuser::getFromDB(), and tr().

Referenced by WTrSetUserDescription::handleRequest().

static MachineUser::setUserFlags ( trans  )  [static]

sets the flags of a user

References WOFlag::getAll(), WTuser::getFromDB(), and tr().

Referenced by WTrSetUserFlags::handleRequest().

static MachineUser::setUserHosts ( trans  )  [static]

set the hosts for a user

References $db, WTuser::getFromDB(), and tr().

Referenced by WTrSetUserHosts::handleRequest().

static MachineUser::setUserRoles ( trans  )  [static]

set roles of a user

References $db, WTuser::getFromDB(), and tr().

Referenced by WTrSetUserRoles::handleRequest().


The documentation for this class was generated from the following file: