OSB_CORBA::User_i Class Reference

Inheritance diagram for OSB_CORBA::User_i:

Inheritance graph
[legend]
Collaboration diagram for OSB_CORBA::User_i:

Collaboration graph
[legend]
List of all members.

Detailed Description

Servant class for User CORBA interface.

Definition at line 64 of file osbuser_i.h.

Public Member Functions

Modules and user groups available for the user.

Static Public Attributes

Protected Member Functions

Protected Attributes

Private Member Functions

Friends


Constructor & Destructor Documentation

OSB_CORBA::User_i::User_i ( const UserMgr_i usrMgr,
const Utf8String &  login 
)

Constructor.

Parameters:
usrMgr Controlling user manager.
login OSB user login.

OSB_CORBA::User_i::User_i ( const UserMgr_i usrMgr,
const OSB_LIB::OsbUser osbUser 
)

Constructor.

Parameters:
usrMgr Controlling user manager.
osbUser OSB user.


Member Function Documentation

ModuleIdSeq* OSB_CORBA::User_i::availModules (  )  throw (CORBA::SystemException, OsbCorbaException)

List of OSB modules available to the user.

ModuleId OSB_CORBA::User_i::defModule (  )  throw (CORBA::SystemException, OsbCorbaException)

Default OSB module of the user, it may not be set.

Utf8String* OSB_CORBA::User_i::email (  )  throw (CORBA::SystemException, OsbCorbaException)

Gets email address of the user.

UserWriter_ptr OSB_CORBA::User_i::getWriter (  )  throw (CORBA::SystemException, OsbCorbaException)

Create a writable copy of the user.

Returns:
A CORBA object that allows to modify the user.

UserId OSB_CORBA::User_i::id (  )  throw (CORBA::SystemException, OsbCorbaException)

Unique user id.

User id is unique and created by the system. It cannot be changed once created.

CORBA::Boolean OSB_CORBA::User_i::isAvailable ( const ModuleId id  )  throw (CORBA::SystemException, OsbCorbaException)

Module available for the user?

Utf8String* OSB_CORBA::User_i::loginName (  )  throw (CORBA::SystemException, OsbCorbaException)

Gets user login name.

Returns:
user login name.

Utf8String* OSB_CORBA::User_i::name (  )  throw (CORBA::SystemException, OsbCorbaException)

Gets user (full) name.

The user (full) name is not used for login. It is for information only.

Returns:
user (full) name.

OSB_LIB::RwGuard OSB_CORBA::User_i::readLock (  )  [protected]

Read lock osbUser_.

Must not be called when holding a write lock.

Exceptions:
OsbCorbaException of the lock fails.

bool OSB_CORBA::User_i::reassign ( const OSB_LIB::OsbUser osbUser  )  [private]

Reassign OSB user.

Parameters:
osbUser 
Returns:
true if the object id's of the old and new OSB user are the same, else false.

UserGroupId OSB_CORBA::User_i::userGroup ( const ModuleId modId  )  throw (CORBA::SystemException, OsbCorbaException)

Get the user group that defines the access rights for a module.

Parameters:
modId Id of the module.
Returns:
The id of the user group for module,
it is 0 if the user does not have access to the module.

OSB_LIB::RwGuard OSB_CORBA::User_i::writeLock (  )  [protected]

Write lock osbUser_.

Must not be called when holding a read lock.

Exceptions:
OsbCorbaException of the lock fails.


Friends And Related Function Documentation

friend class UserMgr_i [friend]

Allow UserMgr_i to call reassign().

Definition at line 66 of file osbuser_i.h.


Member Data Documentation

const std::string OSB_CORBA::User_i::IFC [static]

Reimplemented in OSB_CORBA::UserWriter_i.

Definition at line 68 of file osbuser_i.h.

OSB_LIB::RwMutex OSB_CORBA::User_i::mutex_ [protected]

Mutex to protect the access to osbUser_.

Definition at line 193 of file osbuser_i.h.

OSB_LIB::OsbUser OSB_CORBA::User_i::osbUser_ [protected]

OSB user object.

Definition at line 191 of file osbuser_i.h.

const UserMgr_i& OSB_CORBA::User_i::usrMgr_ [protected]

Controlling user manager.

Definition at line 189 of file osbuser_i.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:28:32 2006 for OSB Library by  doxygen 1.4.7