OSB_LIB::UserGroups Class Reference

Collaboration diagram for OSB_LIB::UserGroups:

Collaboration graph
[legend]
List of all members.

Detailed Description

List of user groups.

The class provides read-only access to all OSB user groups.

See also:
UserMgmtCfg Manager class to create, modify or delete user groups.

Definition at line 253 of file osbusrgrp.h.

Public Types

Public Member Functions

Private Member Functions

Private Attributes

Friends


Member Typedef Documentation

typedef Cont::const_iterator OSB_LIB::UserGroups::ConstIter

Const iterator into list of groups.

Definition at line 265 of file osbusrgrp.h.

typedef std::list<UserGroup> OSB_LIB::UserGroups::Cont

STL container used to store the groups, it is sort by the user groups' names.

Definition at line 263 of file osbusrgrp.h.


Member Function Documentation

ConstIter OSB_LIB::UserGroups::begin (  )  const

Get iterator to begin of list.

bool OSB_LIB::UserGroups::empty (  )  const

List of user groups empty?

ConstIter OSB_LIB::UserGroups::end (  )  const

Get iterator to end of list.

UserGroup* OSB_LIB::UserGroups::find ( const UserGroup::Oid grpId  )  [private]

Find a user group.

UserGroup& OSB_LIB::UserGroups::get ( const UserGroup::Oid grpId  )  [private]

Get a user group.

Parameters:
grpId The object id of the user group.
Returns:
The user group for grpId.
Exceptions:
ObjectNotFound if the user group is not found.

const UserGroup& OSB_LIB::UserGroups::get ( const UserGroup::Oid grpId  )  const

Get a user group.

Parameters:
grpId The object id of the user group.
Returns:
The user group for grpId.
Exceptions:
ObjectNotFound if the user group is not found.

void OSB_LIB::UserGroups::insert ( const UserGroup grp  )  [private]

Insert a group into the list.

Parameters:
grp The user group to insert,
it replaces an already existing group with the same object id.

void OSB_LIB::UserGroups::read ( const OSB_DB::Session session  ) 

Read the user groups from the database.

void OSB_LIB::UserGroups::remove ( const UserGroup::Oid  grpId  )  [private]

Remove a group from the list.

Parameters:
grpId Object id for the user group to remove.

size_t OSB_LIB::UserGroups::size (  )  const

Number of user groups in the list.


Friends And Related Function Documentation

friend class OSB_DB::UserGroupGw [friend]

Allow the gateway to call insert().

Definition at line 257 of file osbusrgrp.h.

friend class UserMgmtCfg [friend]

Allow insert(), find() and remove().

Definition at line 255 of file osbusrgrp.h.


Member Data Documentation

Cont OSB_LIB::UserGroups::cont_ [private]

List of user groups.

Definition at line 320 of file osbusrgrp.h.


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