The class defines one access right for an OSB module.
Developers use osbadmin to register the access rights that are verified by the application.
The class itself is not protected against concurrent access:
This is done by UserMgmtCfg which uses Module to verify that the access data are up-to-date.
Definition at line 97 of file osbaccess.h.
typedef Id<ModAccess> OSB_LIB::ModAccess::Oid |
Constructor with optional object id.
Constructor with module, access tag and optional parent id.
module | The module of the access right. | |
parent | The parent access right (not set for root access rights of the module). |
ModuleId OSB_LIB::ModAccess::module | ( | ) | const |
The module for which the acess right is valid.
const Oid& OSB_LIB::ModAccess::oid | ( | ) | const |
The object id.
const Oid& OSB_LIB::ModAccess::parentId | ( | ) | const |
The object id of the parent.
The parent id is not set for root access rights.
void OSB_LIB::ModAccess::read | ( | const OSB_DB::Session & | session | ) |
Read the access right from the database.
session | Database session to use. |
OsbException | if the access right as identified by oid() does not exist. |
void OSB_LIB::ModAccess::remove | ( | const OSB_DB::Session & | session | ) | [private] |
Remove the access right from the database.
session | Database session to use. |
OsbException | if no row was removed. |
void OSB_LIB::ModAccess::save | ( | const OSB_DB::Session & | session | ) | [private] |
Save the access right to the database.
session | Database session to use. |
OsbException | from setTag() (new access right). | |
OsbException | if the insert fails. | |
OsbException | if the update fails. |
void OSB_LIB::ModAccess::setTag | ( | const std::string & | tag | ) |
Set the access identifier.
OsbException | if tag is empty. | |
OsbException | if tag is too long. |
const std::string& OSB_LIB::ModAccess::tag | ( | ) | const |
The identifier of the access right.
friend class OSB_DB::ModAccessGw [friend] |
friend class UserMgmtCfg [friend] |
ModuleId OSB_LIB::ModAccess::module_ [private] |
Oid OSB_LIB::ModAccess::oid_ [private] |
Oid OSB_LIB::ModAccess::parent_ [private] |
std::string OSB_LIB::ModAccess::tag_ [private] |