This class is a thin wrapper providing a name for a ServiceTuple.
Definition at line 65 of file ratedservice.h.
typedef Id<RatedService> OSB_LIB::RatedService::Oid |
The object id.
Note that this assumes that there won't be 2 network services for the same service tuple.
Definition at line 75 of file ratedservice.h.
Default constructor with optional object id.
OSB_LIB::RatedService::RatedService | ( | const ServiceTuple & | st | ) | [explicit] |
Constructor with service tuple.
bool OSB_LIB::RatedService::freeze | ( | const OSB_DB::Session & | session, | |
OsbErrors & | msgs | |||
) | [virtual] |
Change status from cfgEditable to cfgStandby.
session | Database session to use. | |
msgs | Container for warnings and errors. |
Implements OSB_LIB::ToCfgBase.
bool OSB_LIB::RatedService::insert | ( | const OSB_DB::Session & | session | ) |
Insert the network service into the database.
session | Database session to use. |
const Oid& OSB_LIB::RatedService::oid | ( | ) | const |
Get object id.
bool OSB_LIB::RatedService::read | ( | const OSB_DB::Session & | session | ) |
Read the network service from the database.
session | Database session to use. |
bool OSB_LIB::RatedService::release | ( | const OSB_DB::Session & | session, | |
OsbErrors & | msgs | |||
) | [virtual] |
Change status from cfgStandby to cfgReleased.
session | Database session to use. | |
msgs | Container for warnings and errors. |
Implements OSB_LIB::ToCfgBase.
bool OSB_LIB::RatedService::remove | ( | const OSB_DB::Session & | session | ) |
Delete the network service from the database.
session | Database session to use. |
bool OSB_LIB::RatedService::revoke | ( | const OSB_DB::Session & | session, | |
OsbErrors & | msgs | |||
) | [virtual] |
Change status from cfgReleased to cfgStandby.
session | Database session to use. | |
msgs | Container for warnings and errors. |
Implements OSB_LIB::ToCfgBase.
const ServiceTuple& OSB_LIB::RatedService::serviceTuple | ( | ) | const |
Get service tuple.
void OSB_LIB::RatedService::setServiceTuple | ( | const ServiceTuple & | st | ) |
Modify the service tuple.
st | New service tuple of the service. |
OsbException | if the status is not editable. |
bool OSB_LIB::RatedService::unfreeze | ( | const OSB_DB::Session & | session, | |
OsbErrors & | errors | |||
) | [virtual] |
Change status from cfgStandby to cfgEditable.
session | Database session to use. | |
errors | Gets the list of encountered errors. |
Implements OSB_LIB::ToCfgBase.
bool OSB_LIB::RatedService::update | ( | const OSB_DB::Session & | session | ) |
Update the network service in the database.
session | Database session to use. |
friend class OSB_DB::RatedServiceGw [friend] |
Oid OSB_LIB::RatedService::oid_ [private] |
ServiceTuple OSB_LIB::RatedService::st_ [private] |