The tariff catalogue is the manager of all tariff objects which are divided into 5 groups:
The catalogue supports and controls the maintenance, i.e., creation, configuration and deletion of all tariff objects.
Definition at line 126 of file tariffcatalogue.h.
OSB_LIB::TariffCatalogue::TariffCatalogue | ( | ) |
Default constructor.
OSB_LIB::TariffCatalogue::~TariffCatalogue | ( | ) |
Destructor: delete pointer members.
OSB_LIB::TariffCatalogue::TariffCatalogue | ( | const TariffCatalogue & | rhs | ) | [private] |
bool OSB_LIB::TariffCatalogue::canRevokeTfVersion | ( | OSB_DB::Session & | session, | |
const TfVersion::Oid & | oid | |||
) |
Check if a tariff version can be revoke.
session | Database session. | |
oid | Object if of the tariff version object to be revoked. |
Get a CGI from the master list of CGIs.
oid | Unique id of CGI. |
const CgiMap& OSB_LIB::TariffCatalogue::cgiMap | ( | ) | const |
Read access to the CGI map.
If needed, the function rebuilds the map before returning a reference to the data member: In multithreaded applications the caller must hold a read lock to the map (see TcatLockManager::readLockCgiMap). The tariff catalogue itself uses the internal mutex (provided by the lock manager) to lock the map during the rebuild. This logic avoids deadlocks that would arise, if client was to hold a read lock while the tariff catalogue requests a write lock on the same mutex.
const Cgis& OSB_LIB::TariffCatalogue::cgis | ( | ) | const [inline] |
Read access to the list of CGIs.
Definition at line 1337 of file tariffcatalogue.h.
References cgis_.
bool OSB_LIB::TariffCatalogue::cgiTzConfigEditable | ( | const Cgi::Oid & | oid | ) |
Check that all tariff zone configurations that consist of the connection point are in editable mode.
Cgi entries are not allowed to be modified if it is in a tariff zone configuration that is not in editable mode.
oid | Unique Cgi id. |
bool OSB_LIB::TariffCatalogue::changeCpStatus | ( | OSB_DB::Session & | session, | |
const Id< ConnectionPt > & | cpId, | |||
CfgStatus | reqStatus, | |||
OsbErrors & | errors, | |||
const bool | noWait | |||
) |
Change the configuration status of a connection point.
session | Database session to use. | |
cpId | Object id to the connection point to change. | |
reqStatus | Requested status of the connection point. | |
errors | Container for error messages. | |
noWait | Wait if locked by another session? |
bool OSB_LIB::TariffCatalogue::changeDcStatus | ( | OSB_DB::Session & | session, | |
const DayClass::Oid & | dcId, | |||
CfgStatus | reqStatus, | |||
OsbErrors & | errors, | |||
const bool | noWait | |||
) |
Change the configuration status of a day class.
session | Database session to use. | |
dcId | Object id to the day class to change. | |
reqStatus | Requested status of the day class. | |
errors | Container for error messages. | |
noWait | Wait if locked by another session? |
bool OSB_LIB::TariffCatalogue::changeE164Status | ( | OSB_DB::Session & | session, | |
const E164::Oid & | e164Id, | |||
CfgStatus | reqStatus, | |||
OsbErrors & | errors, | |||
const bool | noWait | |||
) |
Change the configuration status of a E.164 number.
session | Database session to use. | |
e164Id | Object id to the E164 to change. | |
reqStatus | Requested status of the connection point. | |
errors | Container for error messages. | |
noWait | Wait if locked by another session? |
bool OSB_LIB::TariffCatalogue::changeRfStatus | ( | OSB_DB::Session & | session, | |
const RatingFn::Oid & | rfId, | |||
CfgStatus | reqStatus, | |||
OsbErrors & | errors, | |||
const bool | noWait | |||
) |
Change the configuration status of a rating function.
session | Database session to use. | |
rfId | Object id to the rating function to change. | |
reqStatus | Requested status of the rating function. | |
errors | Container for warnings and errors. | |
noWait | Wait if locked by another session? |
bool OSB_LIB::TariffCatalogue::changeRsStatus | ( | OSB_DB::Session & | session, | |
const RatedService::Oid & | rsId, | |||
CfgStatus | reqStatus, | |||
OsbErrors & | errors, | |||
const bool | noWait | |||
) |
Change the configuration status of a rated service.
session | Database session to use. | |
rsId | Object id to the rated service to change. | |
reqStatus | Requested status of the rated service. | |
errors | Container for warnings and errors. | |
noWait | Wait if locked by another session? |
bool OSB_LIB::TariffCatalogue::changeScsVsStatus | ( | OSB_DB::Session & | session, | |
const ScsVersion::Oid & | scsVs, | |||
CfgStatus | reqStatus, | |||
OsbErrors & | errors, | |||
const bool | noWait | |||
) |
Change the configuration status of a SCS version.
session | Database session to use. | |
scsVs | Object id to the SCS version to change. | |
reqStatus | Requested status of the SCS version. | |
errors | Container for warnings and errors. | |
noWait | Wait if locked by another session? |
bool OSB_LIB::TariffCatalogue::changeSdStatus | ( | OSB_DB::Session & | session, | |
SpecialDate & | sd, | |||
CfgStatus | reqStatus, | |||
OsbErrors & | errors, | |||
bool | noWait | |||
) | [private] |
Change the configuration status of a special date.
session | Database session to use. | |
sd | Special date to change. | |
reqStatus | Requested status of the special date. | |
errors | Container for error messages. | |
noWait | Wait if locked by another session? |
bool OSB_LIB::TariffCatalogue::changeSdStatus | ( | OSB_DB::Session & | session, | |
const SpecialDate::Oid & | sdId, | |||
CfgStatus | reqStatus, | |||
OsbErrors & | errors, | |||
const bool | noWait | |||
) |
Change the configuration status of a special date.
session | Database session to use. | |
sdId | Object id to the special date to change. | |
reqStatus | Requested status of the special date. | |
errors | Container for error messages. | |
noWait | Wait if locked by another session? |
bool OSB_LIB::TariffCatalogue::changeTcsVsStatus | ( | OSB_DB::Session & | session, | |
const TcsVersion::Oid & | tcsVsId, | |||
CfgStatus | reqStatus, | |||
OsbErrors & | errors, | |||
const bool | noWait | |||
) |
Change the configuration status of a TcsVersion.
session | Database session to use. | |
tcsVsId | Object id to the TCS version to change. | |
reqStatus | Requested status of the TCS version. | |
errors | Container for warnings and errors. | |
noWait | Wait if locked by another session? |
bool OSB_LIB::TariffCatalogue::changeTfVsStatus | ( | OSB_DB::Session & | session, | |
const TfVersion::Oid & | tfVsId, | |||
CfgStatus | reqStatus, | |||
OsbErrors & | errors, | |||
const bool | noWait | |||
) |
Change the configuration status of a tariff version.
session | Database session to use. | |
tfVsId | Object id to the tariff version to change. | |
reqStatus | Requested status of the tariff version. | |
errors | Container for warnings and errors. | |
noWait | Wait if locked by another session? |
bool OSB_LIB::TariffCatalogue::changeToCfgStatus | ( | OSB_DB::Session & | session, | |
ToCfgBase & | toCfg, | |||
CfgStatus | reqStatus, | |||
OsbErrors & | errors | |||
) | [private] |
Change configuration status of a tariff object version.
session | Database session to use. | |
toCfg | Tariff object to change. | |
reqStatus | Requested status of the version. | |
errors | Container for warnings and errors. |
bool OSB_LIB::TariffCatalogue::changeTpsVsStatus | ( | OSB_DB::Session & | session, | |
const TpsVersion::Oid & | tpsVsId, | |||
CfgStatus | reqStatus, | |||
OsbErrors & | errors, | |||
const bool | noWait | |||
) |
Change the configuration status of a TPS version.
session | Database session to use. | |
tpsVsId | Object id to the TPS version to change. | |
reqStatus | Requested status of the TPS version. | |
errors | Container for warnings and errors. | |
noWait | Wait if locked by another session? |
bool OSB_LIB::TariffCatalogue::changeTsVsStatus | ( | OSB_DB::Session & | session, | |
const TsVersion::Oid & | tsVsId, | |||
CfgStatus | reqStatus, | |||
OsbErrors & | errors, | |||
const bool | noWait | |||
) |
Change the configuration status of a tariff system version.
session | Database session to use. | |
tsVsId | Object id to the tariff version to change. | |
reqStatus | Requested status of the tariff version. | |
errors | Container for warnings and errors. | |
noWait | Wait if locked by another session? |
bool OSB_LIB::TariffCatalogue::changeTzCfgStatus | ( | OSB_DB::Session & | session, | |
const TzConfig::Oid & | tzConfigId, | |||
CfgStatus | reqStatus, | |||
OsbErrors & | errors, | |||
const bool | noWait | |||
) |
Change the configuration status of a tariff zone configuration.
session | Database session to use. | |
tzConfigId | Object id to the tariff zone configuration to change. | |
reqStatus | Requested status of the connection point. | |
errors | Container for error messages. | |
noWait | Wait if locked by another session? |
size_t OSB_LIB::TariffCatalogue::checkCgi | ( | OSB_DB::Session & | session, | |
const Cgi::Oid & | oid, | |||
OsbErrors & | errors, | |||
const bool | noWait | |||
) |
Change the object status from 'editable' to 'standby'.
session | Database session. | |
oid | Object id of the CGI that is to be checked. | |
errors | Container for error messages. | |
noWait | Wait if locked by another session? |
ConnectionPt* OSB_LIB::TariffCatalogue::connectionPt | ( | const Id< ConnectionPt > & | oid | ) | [private] |
Get a connection point from the master list of connection points.
oid | Unique id of connection points. |
const CpMapperList& OSB_LIB::TariffCatalogue::cpMapperList | ( | ) | const [inline] |
Read access to info on connection point mapping classes.
Definition at line 1131 of file tariffcatalogue.h.
References cpMapperList_.
const CpTree& OSB_LIB::TariffCatalogue::cpTree | ( | ) | const |
Read access to connection point tree.
Cgi::Oid OSB_LIB::TariffCatalogue::creCgi | ( | OSB_DB::Session & | session, | |
const Id< ConnectionPt > & | cpId, | |||
const std::string & | name, | |||
const std::string & | val, | |||
bool | noWait | |||
) |
Create a new CGI in the database.
Name of CGI must not clash with existing CGIs. The session is only commited after a successful creation without any exception being thrown. The session will be rolled back to release the lock upon an OsbException. The list of Cgis will be sorted by name in ascending order after creation.
session | Database session. | |
cpId | Unique id of a connection point. | |
name | Name of CGI to be created. | |
val | Value of CGI to be created. | |
noWait | Wait if locked by another session? |
OsbException | if
|
Id<ConnectionPt> OSB_LIB::TariffCatalogue::creConnectionPt | ( | OSB_DB::Session & | session, | |
ConnectionPt & | cp, | |||
bool | noWait | |||
) |
Create a new connection point in the database.
Name of connection point must not clash with existing connection points. The session is only commited after a successful creation without any exception thrown. The session will be rolled back to release the lock upon an OsbException. The list of connection points will be sorted by name in ascending order after insertion.
session | Database session. | |
cp | Connection point to create. | |
noWait | Wait if locked by another session? |
OsbException | if
|
DayClass::Oid OSB_LIB::TariffCatalogue::creDayClass | ( | OSB_DB::Session & | session, | |
DayClass & | dc, | |||
bool | noWait | |||
) |
Create Day Class.
This function will use the input name and description to create a new day class and get a new day class unique id from DB. A const pointer will point to the new created object. Then, those week days classfication will be done by changing object and calling updating founcation to modify database. The list of day classes will be sorted by name after insertion.
session | Database session. | |
dc | Day class to create. | |
noWait | Wait if locked by another session? |
OsbException | When the given name is not unique, error message will be given, or those related tariff period systems tables are locked by someone else. |
E164::Oid OSB_LIB::TariffCatalogue::creE164 | ( | OSB_DB::Session & | session, | |
E164 & | e164, | |||
bool | noWait | |||
) |
Create a new E164 in the database.
Name of the new E164 also must not be the same as any existing E164s. The session will only be commited after a successful creation without any OsbException being thrown. The session will be rolled back upon an OsbException. The list of E164s will be sorted by name in ascending order after creation.
session | Database session to use. | |
e164 | E164 to create. If the function is successful, its object id is set. | |
noWait | Wait if locked by another session? |
OsbException | if
|
RatedService::Oid OSB_LIB::TariffCatalogue::creRatedService | ( | OSB_DB::Session & | session, | |
RatedService & | service, | |||
bool | noWait | |||
) |
Create a new rated service.
session | Database session. | |
service | Rated service to create. | |
noWait | Wait if locked by another session? |
bool OSB_LIB::TariffCatalogue::creRatingFn | ( | OSB_DB::Session & | session, | |
RatingFn & | rf, | |||
const bool | noWait | |||
) |
Create a new rating function.
The list of rating functions will be sorted by name in ascending order after creation.
The function creates a new rating function if the configurations of the rating function cannot be found. Else it returns the rating function with the same cofigurations.
session | Database session. | |
rf | Reference to rating function to add. | |
noWait | Wait if locked by another session? |
OsbException | for the following errors:
|
ScsVersion::Oid OSB_LIB::TariffCatalogue::creScsVersion | ( | OSB_DB::Session & | session, | |
ScsVersion & | scsVs, | |||
bool | noWait | |||
) |
Create a new service class system version.
The list of service class system version will sorted by released date in descending order after creation.
session | Database session. | |
scsVs | SCS version to create. If the function is successful its object id is set. | |
noWait | Wait if locked by another session? |
OsbException | if service objects are currently locked and noWait is true. |
ScSystem::Oid OSB_LIB::TariffCatalogue::creScSystem | ( | OSB_DB::Session & | session, | |
ScSystem & | scs, | |||
const bool | noWait | |||
) |
Create a new service class system.
The list of service class system will be sorted by name in ascending order after creation.
session | Database session. | |
scs | Service class system to create. | |
noWait | Wait if locked by another session? |
OsbException | for the following errors:
|
ServiceClass::Oid OSB_LIB::TariffCatalogue::creServiceClass | ( | OSB_DB::Session & | session, | |
ServiceClass & | sc, | |||
const bool | noWait | |||
) |
Create a new service class.
The list of service classes will be sorted by name in ascending order after creation.
session | Database session. | |
sc | Service class to create. | |
noWait | Wait if locked by another session? |
OsbException | for the following errors:
|
bool OSB_LIB::TariffCatalogue::creSpecialDate | ( | OSB_DB::Session & | session, | |
SpecialDate & | sd, | |||
bool | noWait | |||
) |
Create SpecialDate Class.
First, this function will match the given date with all previous defined ones, find out that whether the given day class id is already defined, and find whether the given name for this special date is unique, then the new record will be created. The list of special dates will be sorted by name upon successful insertion.
session | Database session. | |
sd | Special date to create. | |
noWait | Wait if locked by another session? |
OsbException | When the given date is made conflict with previous designed records, error message will be given, or those related tariff period systems tables are locked by someone else.. |
Tariff::Oid OSB_LIB::TariffCatalogue::creTariff | ( | OSB_DB::Session & | session, | |
Tariff & | tf, | |||
bool | noWait | |||
) |
Create a new tariff.
The list of tariffs will be sorted by name in ascending order after creation.
session | Database session. | |
tf | Tariff to create. | |
noWait | Wait if locked by another session? |
TariffClass::Oid OSB_LIB::TariffCatalogue::creTariffClass | ( | OSB_DB::Session & | session, | |
TariffClass & | tc, | |||
bool | noWait | |||
) |
Create a new tariff class in the database.
Name of tariff class must not clash with existing tarif clases. The session will only be commited after a successful creation without any OsbException being thrown. The session will be rolled back to release the lock upon an OsbException. The list of tariff classes will be sorted by name in ascending order after creation.
session | Database session. | |
tc | Tariff class to create. | |
noWait | Wait if locked by another session? |
OsbException | if
|
TariffPeriod::Oid OSB_LIB::TariffCatalogue::creTariffPeriod | ( | OSB_DB::Session & | session, | |
TariffPeriod & | tp, | |||
bool | noWait | |||
) |
Create a new tariff period.
This fucniton will create a new tariff period with name and and description, for the id, it will created by database auto, based on the id available. And, before creating a new one, it has to search available tariff periods with name comparsion. The list of tariff period will be sorted by name in ascending order after insertion.
session | Database session. | |
tp | Tariff period to create. | |
noWait | Wait if locked by another session? |
OsbException | When the input name is same with others, an error message will be thrown, or those tariff period systems related tables are locked by someone else. |
TariffSystem::Oid OSB_LIB::TariffCatalogue::creTariffSystem | ( | OSB_DB::Session & | session, | |
TariffSystem & | ts, | |||
bool | noWait | |||
) |
Create a new tariff system in the database.
Name of tariff system must not clash with existing tariff systems. The session is only commited after a successful creation without any OsbException. The session will be rolled back upon an OsbException. The list of tariff systems will be sorted by name in ascending order after creation.
session | Database session. | |
ts | Tariff system to create. | |
noWait | Wait if locked by another session? |
OsbException | if
|
TariffZone::Oid OSB_LIB::TariffCatalogue::creTariffZone | ( | OSB_DB::Session & | session, | |
TariffZone & | tz, | |||
bool | noWait | |||
) |
Create a new tariff zone in the database.
Name of tariff zone must not clash with existing tarif zones. The session is only commited after a successful creation without any OsbException being thrown. The session will be rolled back to release the lock upon an OsbException. The list of tariff zones will be sorted by name in ascending order after creation.
session | Database session to use. | |
tz | The tariff zone to create. If the function is successful, its object id is set. | |
noWait | Wait if locked by another session? |
OsbException | if
|
TcsVersion::Oid OSB_LIB::TariffCatalogue::creTcsVersion | ( | OSB_DB::Session & | session, | |
TcsVersion & | tcsVs, | |||
const bool | noWait | |||
) |
Create a new tariff classification system version.
The list of tariff classification system will be sorted by name in ascending order after creation.
session | Database session to use. | |
tcsVs | TCS version to create. | |
noWait | Wait if locked by another session? |
OsbException | for the following error:
|
TcSystem::Oid OSB_LIB::TariffCatalogue::creTcSystem | ( | OSB_DB::Session & | session, | |
TcSystem & | tcs, | |||
bool | noWait | |||
) |
Create a new tariff classification system in database.
Name of tariff classification system must not clash with existing tariff classification systems. The session is only commited after a successful creation without any OsbException. The session will be rolled back to release the lock upon an OsbException. The list of tariff classification system will be sorted by name in ascending order after creation.
session | Database session. | |
tcs | Tariff classification system to create. | |
noWait | Wait if locked by another session? |
OsbException | if
|
TfVersion::Oid OSB_LIB::TariffCatalogue::creTfVersion | ( | OSB_DB::Session & | session, | |
TfVersion & | tfVs, | |||
const bool | noWait | |||
) |
Create a new tariff version object.
The list of tariff versions will be sorted by released date in descending order after creation.
session | Database session. | |
tfVs | Tariff version to create. If the function is successful, its object id is set. | |
noWait | Wait if locked by another session? |
OsbException | for the following errors:
|
TpsVersion::Oid OSB_LIB::TariffCatalogue::creTpsVersion | ( | OSB_DB::Session & | session, | |
TpsVersion & | tpsVs, | |||
bool | noWait | |||
) |
Add a new version to the tariff period system.
This function will create a new tariff period system version, in gateway it will automatically get a newest version and a default revision as 1, the default value of status for a new version is "editable" and release_date can be null. The list of tariff period system versions will be sorted by released date in descending order after insertion.
session | Database session to use. | |
tpsVs | TPS version to create. If the function is successful its object id is set. | |
noWait | Wait if locked by another session? |
OsbException | if tariff period objects are currently locked and noWait is true. |
TpSystem::Oid OSB_LIB::TariffCatalogue::creTpSystem | ( | OSB_DB::Session & | session, | |
TpSystem & | tps, | |||
bool | noWait | |||
) |
Create a new tariff period system.
This fucniton will create a new tariff period system with name and and description, for the id, it will created by database auto, based on the ids available. And, before creating a new one, it has to search available tariff period systems with name comparsion. The list of tariff period systems will be sorted by name in ascending order after insertion.
session | Database session. | |
tps | Tariff period system to create. | |
noWait | Wait if locked by another session? |
OsbException | When the input name is same with others, an error message will be thrown, or those tariff period systems related tables are locked by someone else. |
TsVersion::Oid OSB_LIB::TariffCatalogue::creTsVersion | ( | OSB_DB::Session & | session, | |
TsVersion & | tsVs, | |||
bool | noWait | |||
) |
Create a new tariff system version in the database.
This function adds the new version into the master list and database after all configurations for the tariff system have been done. The session is only commited after a successful creation without any OsbException. The session will be rolled back to release the lock upon an OsbException. The function supports copy creation from existing tariff system versions. If no tariff system version id is supplied, a new tariff system version with emtpy configurations will be created. The list of tariff system version will be sorted by released date in descending order after creation.
session | Database session. | |
tsVs | Tariff system version to create. | |
noWait | Wait if locked by another session? |
OsbException | if
|
bool OSB_LIB::TariffCatalogue::creTzConfig | ( | OSB_DB::Session & | session, | |
TzConfig & | tzCfg, | |||
bool | noWait | |||
) |
Create a new tariff zone configuration in the database.
The configuration of an origin-destination pair of a tariff zone must be unique. Also check that for a tariff zone, the valid period of different configurations cannot overlap. The list of tariff zone configuration will be sorted by start date after creation.
session | Database session to use. | |
tzCfg | The tariff zone configuration to create. | |
noWait | Wait if locked by another session? |
OsbException | if the pair origin - destination is already configured for the tariff zone. |
DayClass* OSB_LIB::TariffCatalogue::dayClass | ( | const DayClass::Oid & | oid | ) |
Get a day class from the master list of dayClasses.
oid | The day class object id. |
const DayClasses& OSB_LIB::TariffCatalogue::dayClasses | ( | ) | const [inline] |
Read access to the list of day classes.
Definition at line 574 of file tariffcatalogue.h.
References dayClasses_.
void OSB_LIB::TariffCatalogue::delCgi | ( | OSB_DB::Session & | session, | |
Cgi::Oid & | oid, | |||
bool | noWait | |||
) |
Delete an CGI from the database and the master list.
The CGI to be deleted must not be used in the tariff zone configuration. The session is commited after a successful deletion without any exception being thrown. The session will be rolled back to release the lock upon an OsbException.
session | Database session. | |
oid | Unique id of an CGI object. | |
noWait | Wait if locked by another session? |
OsbException | if
|
void OSB_LIB::TariffCatalogue::delConnectionPt | ( | OSB_DB::Session & | session, | |
Id< ConnectionPt > & | oid, | |||
bool | noWait | |||
) |
Delete a connection point from the database and the master list.
The connection point to be deleted must not be used in any CGI or E.164. The session is commited after a successful deletion without any exception thrown. The session will be rolled back to release the lock upon an OsbException.
session | Database session. | |
oid | Unique id of a connection point object. | |
noWait | Wait if locked by another session? |
OsbException | if
|
void OSB_LIB::TariffCatalogue::delDayClass | ( | OSB_DB::Session & | session, | |
DayClass::Oid & | oid, | |||
bool | noWait | |||
) |
Delete Day Class.
This function will match the id with previous defined ones, then delete all the info about that, due to the day class id in SpecialDate is foreign key to id in day class, so the related records in special dates will also need to be remove.
session | Database session. | |
oid | DayClass object id. | |
noWait | Wait if locked by another session? |
OsbException | When the key was not matched with any records, then an error maeeage will be given, or those related tariff period systems tables are locked by someone else. |
void OSB_LIB::TariffCatalogue::delE164 | ( | OSB_DB::Session & | session, | |
E164::Oid & | oid, | |||
bool | noWait | |||
) |
Delete an E164 from the database and the master list.
The E164 to be deleted must not be used in the tariff zone configuration. The session will only be commited after a successful deletion without any exception being thrown. The session will be rolled back to release the lock upon an OsbException.
session | Database session to access data. | |
oid | Unique id of a E164 object. | |
noWait | Wait if locked by another session? |
OsbException | if |
void OSB_LIB::TariffCatalogue::delRatedService | ( | OSB_DB::Session & | session, | |
const RatedService::Oid & | rsId, | |||
bool | noWait | |||
) |
void OSB_LIB::TariffCatalogue::delRatingFn | ( | OSB_DB::Session & | session, | |
const RatingFn::Oid & | oid, | |||
const bool | noWait | |||
) |
Delete a rating function object.
This function will delete a rating function object from the system.
session | Database session. | |
oid | Object id of the rating function to be deleted. | |
noWait | Wait if locked by another session? |
OsbException | for the following errors:
|
void OSB_LIB::TariffCatalogue::delScsVersion | ( | OSB_DB::Session & | session, | |
const ScsVersion::Oid & | oid, | |||
const bool | noWait | |||
) |
Delete a service class system version.
This function will delete a service class system version from the system.
session | Database session. | |
oid | Object id of the service class system version to be deleted. | |
noWait | Wait if locked by another session? |
OsbException | for the following errors:
|
void OSB_LIB::TariffCatalogue::delScSystem | ( | OSB_DB::Session & | session, | |
const ScSystem::Oid & | oid, | |||
const bool | noWait | |||
) |
Delete a service class system.
This function will delete a service class system from the system.
session | Database session. | |
oid | Object id of the service class system to be deleted. | |
noWait | Wait if locked by another session? |
OsbException | for the following errors:
|
void OSB_LIB::TariffCatalogue::delServiceClass | ( | OSB_DB::Session & | session, | |
const ServiceClass::Oid & | oid, | |||
const bool | noWait | |||
) |
Delete a service class.
This function will delete a service class from the system.
session | Database session. | |
oid | Id of the object to be deleted. | |
noWait | Wait if locked by another session? |
OsbException | for the following errors:
|
void OSB_LIB::TariffCatalogue::delSpecialDate | ( | OSB_DB::Session & | session, | |
const SpecialDate::Oid & | sdId, | |||
bool | noWait | |||
) |
Delete SpecialDate Class.
This function will match the given date with previous defined ones, then delete related info about that, but we need to think about the issues below:
session | Database session. | |
sdId | Object id of the special date to delete. | |
noWait | Wait if locked by another session? |
OsbException |
|
void OSB_LIB::TariffCatalogue::delTariff | ( | OSB_DB::Session & | session, | |
const Tariff::Oid & | oid, | |||
const bool | noWait | |||
) |
Delete a tariff object.
This function will delete a tariff object from the system.
session | Database session. | |
oid | Object id of the tariff object to be deleted. | |
noWait | Wait if locked by another session? |
void OSB_LIB::TariffCatalogue::delTariffClass | ( | OSB_DB::Session & | session, | |
TariffClass::Oid & | oid, | |||
bool | noWait | |||
) |
Delete a tariff class from the database and the master list.
The session will only be commited after a successful deletion without any OsbException being thrown. The session will be rolled back to release the lock upon an OsbException.
session | Database session. | |
oid | Unique id of tariff class to be deleted. | |
noWait | Wait if locked by another session? |
OsbException | if
|
void OSB_LIB::TariffCatalogue::delTariffPeriod | ( | OSB_DB::Session & | session, | |
const TariffPeriod::Oid & | oid, | |||
bool | noWait | |||
) |
Delete a tariff period.
This function will delete the tariff period for a given id, before doing this we have to make sure the version attributes and configuratons are also no need for further actions, becuase after doing this, those related info in TpVersion will also be removed from database.
session | Database session. | |
oid | The object id of tariff period. | |
noWait | Wait if locked by another session? |
OsbException | When encounter the case that the versions info is still need to be used, a exception will be thrown, or those tariff period systems related tables are locked by someone else. |
void OSB_LIB::TariffCatalogue::delTariffSystem | ( | OSB_DB::Session & | session, | |
TariffSystem::Oid & | oid, | |||
bool | noWait | |||
) |
Delete a Tariff system from the database and the master list.
The Tariff system to be deleted must not have any version configurations. The session is only commited after a successful delete without any OsbException. The session will be rolled back to release the lock upon an OsbException.
session | Database session. | |
oid | Unique id of an tariff system object. | |
noWait | Wait if locked by another session? |
OsbException | if
|
void OSB_LIB::TariffCatalogue::delTariffZone | ( | OSB_DB::Session & | session, | |
TariffZone::Oid & | oid, | |||
bool | force, | |||
bool | noWait | |||
) |
Delete a tariff zone from the database and the master list.
The tariff zone to be deleted must not be used by any tariff zone configuration.
The session will only be commited upon a successful deletion without any OsbException being thrown. The session will be rolled back to release the lock upon an OsbException.
session | Database session. | |
oid | Unique id of tariff zone to be deleted. | |
force | Flag to indicate the removal of tarff zone configuration by force (without any configuration exist error message). Set to true if removal by force is desired else set to false. | |
noWait | Wait if locked by another session? |
OsbException | if
|
void OSB_LIB::TariffCatalogue::delTcsVersion | ( | OSB_DB::Session & | session, | |
const TcsVersion::Oid & | oid, | |||
const bool | noWait | |||
) |
Delete a Tariff classification system version object from the system.
session | Database session. | |
oid | Object id of the TCS version to be deleted. | |
noWait | Wait if locked by another session? |
OsbException | for the following errors:
|
void OSB_LIB::TariffCatalogue::delTcSystem | ( | OSB_DB::Session & | session, | |
TcSystem::Oid & | oid, | |||
bool | noWait | |||
) |
Delete a tariff classification system from database and the master list.
This function will ensure the to-be-deleted object is not being used before proceeding. The session is only commited after a successful delete without any OsbException. The session will be rolled back upon an OsbException.
session | Database session. | |
oid | Unique id of tariff classification system to be deleted. | |
noWait | Wait if locked by another session? |
OsbException | if |
void OSB_LIB::TariffCatalogue::delTfVersion | ( | OSB_DB::Session & | session, | |
const TfVersion::Oid & | oid, | |||
bool | noWait | |||
) |
Delete a tariff version.
This function will delete a tariff version object from the system.
session | Database session. | |
oid | Object id of the tariff version to be deleted. | |
noWait | Wait if locked by another session? |
OsbException | for the following errors:
|
void OSB_LIB::TariffCatalogue::delTpsVersion | ( | OSB_DB::Session & | session, | |
const TpsVersion::Oid & | oid, | |||
bool | noWait | |||
) |
Delete a version of tariff period system.
In this function, it can delete the tariff period system version with same object id and the value of status set as "editable", or OsbException will be thrown.
session | Database session. | |
oid | The object id of tariff period system version. | |
noWait | Wait if locked by another session? |
OsbException | If the oid can not match any defined tariff period system version ids, or those tariff period systems related tables are locked by someone else. |
void OSB_LIB::TariffCatalogue::delTpSystem | ( | OSB_DB::Session & | session, | |
const TpSystem::Oid & | oid, | |||
bool | noWait | |||
) |
Delete a tariff period system.
This function will delete the tariff period system for a given id, but before doing this we have to make sure the version attributes and configuratons are also no need for further actions, becuase after doing this, those related info in TpsVersion will also be removed from database.
session | Database session. | |
oid | The object id of tariff period system. | |
noWait | Wait if locked by another session? |
OsbException | When encounter the case that the versions info is still need to be used, a exception will be thrown, or those tariff period systems related tables are locked by someone else. |
void OSB_LIB::TariffCatalogue::delTsVersion | ( | OSB_DB::Session & | session, | |
const TsVersion::Oid | oid, | |||
bool | noWait | |||
) |
Delete a tariff system version from the database and the master list.
The tariff system version configuration can only be deleted if it is in editable mode. The session is only committed after a successful delete without any OsbException. The session will be rolled back upon an OsbException.
session | Database session. | |
oid | Unique id of tariff system version to be deleted. | |
noWait | Wait if locked by another session? |
OsbException | if
|
void OSB_LIB::TariffCatalogue::delTzConfig | ( | OSB_DB::Session & | session, | |
const TzConfig::Oid & | oid, | |||
bool | noWait | |||
) |
Delete a tariff zone configuration from the database and the master list.
The configuration can only be deleted if the status is in editable mode.
The session is only commited after a successful delete without any OsbException. The session will be rolled back upon an OsbException.
session | Database session. | |
oid | Object id of tariff zone configuration to be deleted. Consist of tariff zone id and a pair of connection points id. | |
noWait | Wait if locked by another session? |
OsbException | if
|
const E164Map& OSB_LIB::TariffCatalogue::e164Map | ( | ) | const |
Read access to the E.164 map.
If needed, the function rebuilds the map before returning a reference to the data member: In multithreaded applications the caller must hold a read lock to the map (see TcatLockManager::readLockE164Map). The tariff catalogue itself uses the internal mutex (provided by the lock manager) to lock the map during the rebuild. This logic avoids deadlocks that would arise, if client was to hold a read lock while the tariff catalogue requests a write lock on the same mutex.
const E164s& OSB_LIB::TariffCatalogue::e164s | ( | ) | const [inline] |
Read access to the list of E164s.
Definition at line 1501 of file tariffcatalogue.h.
References e164s_.
bool OSB_LIB::TariffCatalogue::e164TzConfigEditable | ( | const E164::Oid & | oid | ) |
Check that all tariff zone configurations that consist of the E.164 are in editable mode.
E.164 entries are not allowed to be modified if it is in a tariff zone configuration that is not in editable mode.
oid | Unique E.164 id. |
Find a CGI.
This function is different from getCgi in that it does not throw an exception if no such CGI is found.
oid | Unique id of CGI. |
const ConnectionPt* OSB_LIB::TariffCatalogue::findConnectionPt | ( | const Id< ConnectionPt > & | oid | ) | const |
Find a connection point.
This function is different from getConnectionPt in that it does not throw an exception if no such connection point is found.
oid | Unique id of connection point. |
const DayClass* OSB_LIB::TariffCatalogue::findDayClass | ( | const DayClass::Oid & | dcId | ) | const |
Getting info related to the given object id.
This function will be used to determine whether the given object id can match any available id define.
dcId | Day class object id. |
RatedService::Oid OSB_LIB::TariffCatalogue::findRatedService | ( | const ServiceTuple & | st | ) | const |
Find an identical service tuple from the master list.
This function searches the rateable services for an identical service tuple (containing the same service elements).
st | Service tuple to be searched. |
const RatedService* OSB_LIB::TariffCatalogue::findRatedService | ( | const RatedService::Oid & | oid | ) | const |
Find a rated service.
oid | Object id of the rated service. |
const RatingFn* OSB_LIB::TariffCatalogue::findRatingFn | ( | const RatingFn::Oid & | oid | ) | const |
Find a rating function with a given oid.
oid | Unique rating function id. |
const TcsVersion* OSB_LIB::TariffCatalogue::findReleasedTcsVersion | ( | const TcSystem::Oid & | tcsId, | |
const DateTime & | ts | |||
) | const |
Get TCS version released at a specific date and time.
tcsId | Id of the TCS to search. | |
ts | Timestamp to search for. |
const ScsVersion* OSB_LIB::TariffCatalogue::findScsVersion | ( | const ScsVersion::Oid & | oid | ) | const |
Find the details of a service class system version with a given oid.
oid | Unique object id. |
const ScSystem* OSB_LIB::TariffCatalogue::findScSystem | ( | const ScSystem::Oid & | oid | ) | const |
Find a service class system with a given oid.
oid | Unique object id. |
const ServiceClass* OSB_LIB::TariffCatalogue::findServiceClass | ( | const ServiceClass::Oid & | oid | ) | const |
Find a service class with a given oid.
oid | Unique object id. |
const ServiceElement* OSB_LIB::TariffCatalogue::findServiceElement | ( | const ServiceElement & | se | ) | const |
Find a service element by its type and code.
se | Service element to find. |
const ServiceElement* OSB_LIB::TariffCatalogue::findServiceElement | ( | const ServiceElement::Oid & | seId | ) | const |
Find a service element with a given oid.
seId | Unique object id. |
const SpecialDate* OSB_LIB::TariffCatalogue::findSpecialDate | ( | const SpecialDate::Oid & | sdId | ) | const |
Determine day class id for a given date.
sdId | Object id of the special date to find. |
const Tariff* OSB_LIB::TariffCatalogue::findTariff | ( | const Tariff::Oid & | oid | ) | const |
Find a tariff with a given oid.
oid | Unique tariff id. |
const TariffClass* OSB_LIB::TariffCatalogue::findTariffClass | ( | const TariffClass::Oid & | oid | ) | const |
Find a tariff class.
This function is different from getTariffClass in that it does not throw an OsbException if tariff class is not found.
oid | Unique id of tariff class. |
const TariffPeriod* OSB_LIB::TariffCatalogue::findTariffPeriod | ( | const TariffPeriod::Oid & | oid | ) | const |
Getting info related to the given object id.
This function will be used to determine whether the given object id can match any available id define.
oid | TariffPeriod object id. |
const TariffSystem* OSB_LIB::TariffCatalogue::findTariffSystem | ( | const TariffSystem::Oid & | oid | ) | const |
Find a tariff system.
This function is different from getTariffSystem in that it does not throw an exception if no such TariffSystem is found.
oid | Unique id of tariff system. |
const TariffZone* OSB_LIB::TariffCatalogue::findTariffZone | ( | const TariffZone::Oid & | oid | ) | const |
Find a tariff zone.
This function is different from getTariffZone in that it does not throw an OsbException if tariff zone is not found.
oid | Unique id of tariff zone. |
const TcsVersion* OSB_LIB::TariffCatalogue::findTcsVersion | ( | const TcsVersion::Oid & | oid | ) | const |
Find a tariff classification system version.
oid | Object id of the TCS version. |
const TcSystem* OSB_LIB::TariffCatalogue::findTcSystem | ( | const TcSystem::Oid & | oid | ) | const |
Find a tariff classification system.
This function is different from getTcSystem in that it does not throw an OsbException if tariff classification system is not found.
oid | Unique id of tariff classification system. |
const TfVersion* OSB_LIB::TariffCatalogue::findTfVersion | ( | const TfVersion::Oid & | oid | ) | const |
Find a tariff version with a given oid.
oid | Unique tariff version id. |
const TpsVersion* OSB_LIB::TariffCatalogue::findTpsVersion | ( | const TpsVersion::Oid & | oid | ) | const |
Getting info about TpsVersion related to the object id.
oid | Tariff period system version object id. |
const TpSystem* OSB_LIB::TariffCatalogue::findTpSystem | ( | const TpSystem::Oid & | oid | ) | const |
Getting info related to the given object id.
This function will be used to determine whether the given object id can match any available id define.
oid | TpSystem object id. |
const TsVersion* OSB_LIB::TariffCatalogue::findTsVersion | ( | const TsVersion::Oid & | oid | ) | const |
Find version of a tariff system.
This function is different from getTsVersion in that it does not throw an OsbException if a tariff system version is not found.
oid | Unique id of TariffSystem and version number. |
const TzConfig* OSB_LIB::TariffCatalogue::findTzConfig | ( | const TzConfig::Oid & | oid | ) | const |
Find configuration of a tariff zone.
This function is different from getTzConfig in that it does not throw an OsbException if a tariff zone configuration is not found.
oid | Unique id of tariff zone configuration. |
Get a CGI.
oid | Unique id of CGI. |
OsbException | if CGI is not found. |
const ConnectionPt& OSB_LIB::TariffCatalogue::getConnectionPt | ( | const Id< ConnectionPt > & | oid | ) | const |
Get a connection point.
oid | Unique id of connection point. |
OsbException | if connection point is not found. |
const DayClass* OSB_LIB::TariffCatalogue::getDayClass | ( | const DayClass::Oid & | oid, | |
const Weekday & | weekday | |||
) | const |
Match the given week day and day class id within day class.
This function can match a given week day and a given day class id with records in day class, and return the pointer to that record.
oid | The given day class id. | |
weekday | The given week day for matching. |
const DayClass& OSB_LIB::TariffCatalogue::getDayClass | ( | const DayClass::Oid & | oid | ) | const |
Get a day class with the object id.
oid | The given day class id. |
OsbException | if no day class with the given object id exists. |
Get a E164.
oid | Unique id of E164. |
OsbException | if no such E164 is found. |
const RatedService& OSB_LIB::TariffCatalogue::getRatedService | ( | const RatedService::Oid & | oid | ) | const |
Find a rated service.
oid | Object id of the rated service. |
OsbException | if the rated service can not be found. |
const RatingFn& OSB_LIB::TariffCatalogue::getRatingFn | ( | const RatingFn::Oid & | oid | ) | const |
Get a rating function object with a given oid.
oid | Unique rating function id. |
OsbException | for the following errors:
|
const ScsVersion& OSB_LIB::TariffCatalogue::getReleasedScsVersion | ( | const ScSystem::Oid & | oid, | |
const DateTime & | startDateTime | |||
) | const |
Get the service class system version object which is in status released at the given time.
This function will retrieve the latest service class system version object that is in status released at the given time. On the other hand, the retrieved object is the one that rates a call at the given time.
oid | Object id of the service class system where the service class system version is to be retrieved. | |
startDateTime | The time that the service class system version is in released state. |
OsbException | for the following errors:
|
const TcsVersion& OSB_LIB::TariffCatalogue::getReleasedTcsVersion | ( | const TcSystem::Oid & | tcsId, | |
const DateTime & | ts | |||
) | const |
Get released TCS version at a specific date and time.
tcsId | Object id of te TCS to search. | |
ts | Timestamp to search for. |
OsbException | if TCS version not found. |
const TfVersion& OSB_LIB::TariffCatalogue::getReleasedTfVersion | ( | const Tariff::Oid & | tf, | |
const DateTime & | ts | |||
) | const |
Get a tariff version by time stamp.
tf | Object id of the tariff. | |
ts | Time stamp for which to search. |
OsbException | if no release version of tf exists at ts. |
const TpsVersion& OSB_LIB::TariffCatalogue::getReleasedTpsVersion | ( | const TpSystem::Oid & | tpsOid, | |
const DateTime & | startDateTime | |||
) | const |
Get the released tariff period system version based on the timestamp passed in.
tpsOid | the object id of tariff period system which the version of it will be retrieved. | |
startDateTime | the time when the tariff period system is in released status. |
OsbException | if no released version found. |
const TsVersion& OSB_LIB::TariffCatalogue::getReleasedTsVersion | ( | const TariffSystem::Oid & | tsId, | |
const DateTime & | startDt | |||
) | const |
Get released TS version at a given time.
Return the tariff system version that is in released state at a given time.
tsId | The tariff system to search. | |
startDt | Timestamp to search. |
const ScsVersion& OSB_LIB::TariffCatalogue::getScsVersion | ( | const ScsVersion::Oid & | oid | ) | const |
Get a service class system version with a given oid.
oid | Unique object id. |
OsbException | for the following errors:
|
const ScSystem& OSB_LIB::TariffCatalogue::getScSystem | ( | const ScSystem::Oid & | oid | ) | const |
Get a service class system with a given oid.
oid | Unique object id. |
OsbException | for the following errors:
|
const ServiceClass& OSB_LIB::TariffCatalogue::getServiceClass | ( | const ServiceClass::Oid & | oid | ) | const |
Get a service class with a given oid.
oid | Unique object id. |
OsbException | for the following errors:
|
const ServiceElement& OSB_LIB::TariffCatalogue::getServiceElement | ( | const ServiceElement::Oid & | seId | ) | const |
Get a service element with a given oid.
seId | Unique object id. |
ObjectNotFound | if no service element for seId exists. |
const SpecialDate& OSB_LIB::TariffCatalogue::getSpecialDate | ( | const SpecialDate::Oid & | sdId | ) | const |
Getting info related to the given date.
sdId | Object id of the special date to find. |
OsbException |
|
const Tariff& OSB_LIB::TariffCatalogue::getTariff | ( | const Tariff::Oid & | oid | ) | const |
Get a tariff object with a given oid.
oid | Unique tariff id. |
const TariffClass& OSB_LIB::TariffCatalogue::getTariffClass | ( | const TariffClass::Oid & | oid | ) | const |
Get a tariff class.
oid | Unique id of tariff class. |
OsbException | if tariff class is not found. |
const TariffPeriod::Oid& OSB_LIB::TariffCatalogue::getTariffPeriod | ( | const DayClass::Oid & | dcId, | |
const Time & | time | |||
) |
Determine the tariff period for a given day class id and time.
This fucniton is for rating, which is main function to determine the tariff period based on a day class id from search in special dates and day class, and do further searching in switchtime to determine the tariff period in used.
dcId | Day class id. | |
time | A given time for purpose of search in switchtimes. |
const TariffPeriod& OSB_LIB::TariffCatalogue::getTariffPeriod | ( | const TariffPeriod::Oid & | oid | ) | const |
Getting info related to the given object id.
OsbException | If the tariff period for the oid does not exists |
const TariffSystem& OSB_LIB::TariffCatalogue::getTariffSystem | ( | const TariffSystem::Oid & | oid | ) | const |
Get an tariff system.
oid | Unique id of tariff system. |
OsbException | if tariff system is not found. |
const TariffZone& OSB_LIB::TariffCatalogue::getTariffZone | ( | const TariffZone::Oid & | oid | ) | const |
Get a tariff zone.
oid | Unique id of tariff zone. |
OsbException | if tariff zone is not found. |
const TcsVersion& OSB_LIB::TariffCatalogue::getTcsVersion | ( | const TcsVersion::Oid & | oid | ) | const |
Get a tariff classification system version.
oid | Object id of the TCS version. |
OsbException | for the following errors:
|
const TcSystem& OSB_LIB::TariffCatalogue::getTcSystem | ( | const TcSystem::Oid & | oid | ) | const |
Get a tariff classification system.
oid | Unique id of tariff classification system. |
OsbException | if tariff classification system is not found. |
const TfVersion& OSB_LIB::TariffCatalogue::getTfVersion | ( | const TfVersion::Oid & | oid | ) | const |
Get a tariff version object with a given oid.
oid | Unique tariff version id. |
OsbException | for the following errors:
|
const TpsVersion& OSB_LIB::TariffCatalogue::getTpsVersion | ( | const TpsVersion::Oid & | oid | ) |
Getting the TpsVersion related to the object id.
oid | Tariff period system version object id. |
OsbException | If `oid' does not match any `oid'. |
const TpSystem& OSB_LIB::TariffCatalogue::getTpSystem | ( | const TpSystem::Oid & | oid | ) | const |
Getting info related to the given object id.
oid | The given id for collecting info from tariff period system. |
OsbException | When the tariff period system for the oid already exists |
const TsVersion& OSB_LIB::TariffCatalogue::getTsVersion | ( | const TsVersion::Oid & | oid | ) | const |
Get version of a tariff system by id.
oid | Unique id of TariffSystem and version number. |
OsbException | if tariff system version is not found. |
const TzConfig& OSB_LIB::TariffCatalogue::getTzConfig | ( | const TzConfig::Oid & | oid | ) | const |
Get tariff zone configuration of a tariff zone.
oid | Unique id of tariff zone configuration. |
OsbException | if tariff zone configuration is not found. |
const TzConfigs OSB_LIB::TariffCatalogue::getTzConfigs | ( | const TariffZone::Oid & | oid | ) | const |
Get all configurations for a tariff zone.
oid | Object id of the tariff zone. |
long OSB_LIB::TariffCatalogue::gracePeriod | ( | ) | const [inline] |
Get the grace period for the whole system.
Definition at line 276 of file tariffcatalogue.h.
References gracePeriod_.
size_t OSB_LIB::TariffCatalogue::info | ( | std::string & | st | ) |
Tariff catalogue summary information.
st | String for the output. |
bool OSB_LIB::TariffCatalogue::isTariffUsed | ( | const Tariff::Oid & | oid | ) |
Check whether the tariff object has been assigned to any tariff system version object.
oid | Object id of the tariff object. |
bool OSB_LIB::TariffCatalogue::isTzInConfig | ( | const TariffZone::Oid & | oid | ) |
Return true if tariff zone is used in any zone config.
TariffCatalogue& OSB_LIB::TariffCatalogue::operator= | ( | const TariffCatalogue & | rhs | ) | [private] |
bool OSB_LIB::TariffCatalogue::patchTfVersion | ( | OSB_DB::Session & | session, | |
const TfVersion::Oid & | oid, | |||
const TfVersion::Oid & | replacing, | |||
std::vector< OsbError > & | err, | |||
const bool | noWait | |||
) |
Patch an existing released tariff version object.
This function is used typically when a tariff version needs to be backdated or have its rating function reconfigured. An existing tariff version in status standby can be used to replace this released tariff version. Upon successful operation, the names between the two versions will be switched and the tariff version to be replaced will be put to standby whereas the replacing tariff version will be put from standby to released. The rules for a successful operation is as follows:- 1) Only tariff version with status standby can be used to patch(or replace) an existing tariff version. 2) A replacing tariff version cannot have a released date later than the version to be replaced. 3) Revoking the version to be replaced is not possible. 4) No other version exist later than the replacing version.
session | Database session. | |
oid | Unique id of the tariff version to be replaced. | |
replacing | Unique id of the replacing tariff version. | |
err | Container to hold list of possible error. | |
noWait | Wait if locked by another session? |
OsbException | for the following errors:
|
RatedServices::iterator OSB_LIB::TariffCatalogue::ratedService | ( | const RatedService::Oid & | oid | ) | [private] |
Find a rated service.
oid | Object id of the rated service. |
const RatedServices& OSB_LIB::TariffCatalogue::ratedServices | ( | ) | const |
Read access to the list of rated services.
RatingFn* OSB_LIB::TariffCatalogue::ratingFn | ( | const RatingFn::Oid & | oid | ) | const |
Get a rating function from the master list of rating functions.
oid | Object id of the rating function. |
const RatingFns& OSB_LIB::TariffCatalogue::ratingFns | ( | ) |
Read access to the list of rating functions.
void OSB_LIB::TariffCatalogue::read | ( | OSB_DB::Session & | session, | |
bool | noWait = false , |
|||
TcatReadMonitor * | monitor = 0 | |||
) |
Intially load TariffCatalogue from database.
session | Database session to use. The session is used to lock all tariff objects in the database and rolled back at the end of the function. | |
noWait | Wait if locked by another session? | |
monitor | Optional monitor of the progress. |
OsbException | for all errors during the construction of the internal structures. |
void OSB_LIB::TariffCatalogue::readGracePeriod | ( | const OSB_DB::Session & | session | ) | [private] |
Read in grace period of the whole system.
session | The database session. |
void OSB_LIB::TariffCatalogue::readServiceClass | ( | const OSB_DB::Session & | session | ) | [private] |
Read service class related objects.
The service class related objects are sorted after data are read in from the database.
session | The database session. |
void OSB_LIB::TariffCatalogue::readTariff | ( | const OSB_DB::Session & | session | ) | [private] |
Read tariff related objects.
The tariff related objects are sorted after database are read in from the database.
session | The database session. |
void OSB_LIB::TariffCatalogue::readTariffSystem | ( | const OSB_DB::Session & | session | ) | [private] |
Read tariff system related objects.
The tariff system related objects are sorted after data are read in from the database.
session | The database session. |
void OSB_LIB::TariffCatalogue::readTcSystem | ( | const OSB_DB::Session & | session | ) | [private] |
Read tariff classification system related objects.
The tariff classification system related objects are sorted after data are read in from the database.
session | The database session. |
void OSB_LIB::TariffCatalogue::readTpSystem | ( | const OSB_DB::Session & | session | ) | [private] |
Read tariff period system related objects.
The tariff period system related objects are sorted after data are read in from the database.
session | The database session. |
void OSB_LIB::TariffCatalogue::readUsageTypes | ( | const OSB_DB::Session & | session | ) | [private] |
Get list of usage types.
session | Database session to use. |
size_t OSB_LIB::TariffCatalogue::releaseCgi | ( | OSB_DB::Session & | session, | |
const Cgi::Oid & | oid, | |||
OsbErrors & | errors, | |||
const bool | noWait | |||
) |
Change the object status from 'standby' to 'release'.
session | Database session. | |
oid | Object id of the CGI that is to be released. | |
errors | Container for error messages. | |
noWait | Wait if locked by another session? |
size_t OSB_LIB::TariffCatalogue::revokeCgi | ( | OSB_DB::Session & | session, | |
const Cgi::Oid & | oid, | |||
OsbErrors & | errors, | |||
const bool | noWait | |||
) |
Change the object status from 'release' to 'standby'.
session | Database session. | |
oid | Object id of the CGI that is to be revoked. | |
errors | Container for error messages. | |
noWait | Wait if locked by another session? |
ScsVersion* OSB_LIB::TariffCatalogue::scsVersion | ( | const ScsVersion::Oid & | oid | ) | [private] |
Get a service class system version from the master list of service class systems.
oid | Object id of the service class system version. |
const ScsVersions& OSB_LIB::TariffCatalogue::scsVersions | ( | ) | const [inline] |
Read access to the list of service class system versions.
Definition at line 2649 of file tariffcatalogue.h.
References scsVersions_.
ScSystem* OSB_LIB::TariffCatalogue::scSystem | ( | const ScSystem::Oid & | oid | ) | [private] |
Get a service class system from the master list of service class systems.
oid | Object id of the service class system. |
const ScSystems& OSB_LIB::TariffCatalogue::scSystems | ( | ) | const [inline] |
Read access to the list of service class systems.
Definition at line 2522 of file tariffcatalogue.h.
References scSystems_.
const SpecialDate* OSB_LIB::TariffCatalogue::searchActiveSpecialDate | ( | const Date & | date | ) | const |
Get an active special date from the master list of special dates. It is means that first of all the system current date should be later than than the start dates of special dates, so this special date is active and legal for further search for rating purpose.
date | A given date. |
const TpsVersion* OSB_LIB::TariffCatalogue::searchTpsVersion | ( | const TpSystem::Oid & | oid, | |
const DateTime & | ts | |||
) | const |
Search the active version for a given tariff period system id.
This is a rating function to support the requirement that for a given tariff period system, tariff period system has to determine the active version at the given date.
oid | The given tariff period system id. | |
ts | The given date and time. |
OsbException | When there is no active version found. |
ServiceClass* OSB_LIB::TariffCatalogue::serviceClass | ( | const ServiceClass::Oid & | oid | ) | [private] |
Get a service class from the master list of service classes.
oid | Object id of the service class. |
const ServiceClasses& OSB_LIB::TariffCatalogue::serviceClasses | ( | ) | [inline] |
Read access to the list of service classes.
Definition at line 2418 of file tariffcatalogue.h.
References serviceClasses_.
void OSB_LIB::TariffCatalogue::setLock | ( | TcatLockManager & | tcatlm | ) | [inline] |
Set the lock manager to use.
tcatlm | The TcatLcokManager. |
Definition at line 238 of file tariffcatalogue.h.
References tcatlm_.
const SeTree& OSB_LIB::TariffCatalogue::seTree | ( | ) | const |
Get the service element tree.
void OSB_LIB::TariffCatalogue::sortCfgOfTcsVersion | ( | const TariffZone::Oid & | oid | ) |
Sort tariff zone list in distance Tcs.
void OSB_LIB::TariffCatalogue::sortCgis | ( | ) |
Sort CGIs by name.
void OSB_LIB::TariffCatalogue::sortDayClasses | ( | ) |
Sort day classes by name.
void OSB_LIB::TariffCatalogue::sortE164s | ( | ) |
Sort E164s by name.
void OSB_LIB::TariffCatalogue::sortRatingFns | ( | ) |
Sort rating functions by name.
void OSB_LIB::TariffCatalogue::sortScLists | ( | ) | [private] |
Sort service class related objects.
void OSB_LIB::TariffCatalogue::sortScOfTsVersion | ( | const ServiceClass::Oid & | oid | ) |
Sort service class list in tariff system versions.
void OSB_LIB::TariffCatalogue::sortScsVersions | ( | ) |
Sort service class system versions by release date.
void OSB_LIB::TariffCatalogue::sortScSystems | ( | ) |
Sort service class systems by name.
void OSB_LIB::TariffCatalogue::sortServiceClasses | ( | ) |
Sort service classes by name.
void OSB_LIB::TariffCatalogue::sortSpecialDates | ( | ) |
Sort special dates by name.
void OSB_LIB::TariffCatalogue::sortTariffClasses | ( | ) |
Sort tariff classes by name.
void OSB_LIB::TariffCatalogue::sortTariffPeriods | ( | ) |
Sort tariff periods by name.
void OSB_LIB::TariffCatalogue::sortTariffs | ( | ) |
Sort tariffs by name.
void OSB_LIB::TariffCatalogue::sortTariffSystems | ( | ) |
Sort tariff systems by name.
void OSB_LIB::TariffCatalogue::sortTariffZones | ( | ) |
Sort tariff zones by name.
void OSB_LIB::TariffCatalogue::sortTcOfTsVersion | ( | const TariffClass::Oid & | oid | ) |
Sort tariff class list in tariff system versions.
void OSB_LIB::TariffCatalogue::sortTcsLists | ( | ) | [private] |
Sort tariff classification system related objects.
void OSB_LIB::TariffCatalogue::sortTcsVersions | ( | ) |
Sort tariff classification system versions by release date.
void OSB_LIB::TariffCatalogue::sortTcSystems | ( | ) |
Sort tariff classification systems by name.
void OSB_LIB::TariffCatalogue::sortTfLists | ( | ) | [private] |
Sort tariff related objects.
void OSB_LIB::TariffCatalogue::sortTfVersions | ( | ) |
Sort tariff versions by release date.
void OSB_LIB::TariffCatalogue::sortTpsLists | ( | ) | [private] |
Sort tariff period system related objects.
void OSB_LIB::TariffCatalogue::sortTpsVersions | ( | ) |
Sort tariff period system versions by name.
void OSB_LIB::TariffCatalogue::sortTpSystems | ( | ) |
Sort tariff period systems by name.
void OSB_LIB::TariffCatalogue::sortTsLists | ( | ) | [private] |
Sort tariff system related objects.
void OSB_LIB::TariffCatalogue::sortTsVersions | ( | ) |
Sort tariff system versions by release date.
void OSB_LIB::TariffCatalogue::sortTzCfgByStartDate | ( | ) |
Sort tariff zone configs by start date.
SpecialDate* OSB_LIB::TariffCatalogue::specialDate | ( | const SpecialDate::Oid & | sdId | ) |
Get an special date from the master list of specialDates.
sdId | Object id of the special date to find. |
const SpecialDates& OSB_LIB::TariffCatalogue::specialDates | ( | ) | const [inline] |
Read access to the list of special dates.
Definition at line 407 of file tariffcatalogue.h.
References specialDates_.
Tariff* OSB_LIB::TariffCatalogue::tariff | ( | const Tariff::Oid & | oid | ) | [private] |
Get a tariff from the master list of tariffs.
oid | Object id of the tariff. |
TariffClass* OSB_LIB::TariffCatalogue::tariffClass | ( | const TariffClass::Oid & | oid | ) |
Get a tariff class from the master list.
oid | Unique id of tariff class. |
const TariffClasses& OSB_LIB::TariffCatalogue::tariffClasses | ( | ) | const [inline] |
Read access to the list of tariff classes.
Definition at line 1636 of file tariffcatalogue.h.
References tariffClasses_.
std::ostream& OSB_LIB::TariffCatalogue::tariffInfo | ( | std::ostream & | ) |
Print the catalogue (for testing only).
TariffPeriod* OSB_LIB::TariffCatalogue::tariffPeriod | ( | const TariffPeriod::Oid & | oid | ) |
Get a tariff period from the master list of tariff periods.
oid | Unique id of tariff period. |
TariffPeriods& OSB_LIB::TariffCatalogue::tariffPeriods | ( | ) | [inline] |
Read access to the list of tariff periods.
Definition at line 727 of file tariffcatalogue.h.
References tariffPeriods_.
Tariffs& OSB_LIB::TariffCatalogue::tariffs | ( | ) | [inline] |
Read access to the list of tariffs.
Definition at line 2916 of file tariffcatalogue.h.
References tariffs_.
TariffSystem* OSB_LIB::TariffCatalogue::tariffSystem | ( | const TariffSystem::Oid & | oid | ) |
Get tariff system from the master list of tariff systems.
oid | Unique id of tariff system. |
const TariffSystems& OSB_LIB::TariffCatalogue::tariffSystems | ( | ) | const [inline] |
Read access to the list of tariff systems.
Definition at line 2153 of file tariffcatalogue.h.
References tariffSystems_.
TariffZone* OSB_LIB::TariffCatalogue::tariffZone | ( | const TariffZone::Oid & | oid | ) |
Get a tariff zone from the master list.
oid | Unique id of tariff zone. |
const TariffZones& OSB_LIB::TariffCatalogue::tariffZones | ( | ) | const [inline] |
Read access to the list of tariff zones.
Definition at line 1768 of file tariffcatalogue.h.
References tariffZones_.
TcsVersion* OSB_LIB::TariffCatalogue::tcsVersion | ( | const TcsVersion::Oid & | oid | ) | [private] |
Get a tariff classification system version.
oid | Object id of the TCS version. |
const TcsVersions& OSB_LIB::TariffCatalogue::tcsVersions | ( | ) | const |
Read access to all tariff classification system versions.
TcSystem* OSB_LIB::TariffCatalogue::tcSystem | ( | const TcSystem::Oid & | oid | ) |
Get a tariff classification system from the master list.
oid | Unique id of tariff classification system. |
const TcSystems& OSB_LIB::TariffCatalogue::tcSystems | ( | ) | const [inline] |
Read access to the list of tariff classification systems.
Definition at line 1883 of file tariffcatalogue.h.
References tcSystems_.
TfVersion* OSB_LIB::TariffCatalogue::tfVersion | ( | const TfVersion::Oid & | oid | ) | [private] |
Get a tariff version object from the master list of tariff versions.
oid | Object id of the tariff version. |
const TfVersions& OSB_LIB::TariffCatalogue::tfVersions | ( | ) | const |
Read access to the list of tariff versions.
TpsVersion* OSB_LIB::TariffCatalogue::tpsVersion | ( | const TpsVersion::Oid & | oid | ) |
Point to a tariff period system version from the master list of tariff period system versions.
oid | Tariff period system version object id. |
const TpsVersions& OSB_LIB::TariffCatalogue::tpsVersions | ( | ) | const [inline] |
Read access to the list of tariff period system versions.
Definition at line 738 of file tariffcatalogue.h.
References tpsVersions_.
TpSystem* OSB_LIB::TariffCatalogue::tpSystem | ( | const TpSystem::Oid & | oid | ) |
Get a tariff period system from the master list of tariff period systems.
oid | Unique id of tariff period system. |
TpSystems& OSB_LIB::TariffCatalogue::tpSystems | ( | ) | [inline] |
Read access to the list of tariff period systems.
Definition at line 901 of file tariffcatalogue.h.
References tpSystems_.
TsVersion* OSB_LIB::TariffCatalogue::tsVersion | ( | const TsVersion::Oid & | oid | ) |
Get a tariff system version from the master list.
This function locates a version using the tariff system id and version number.
oid | Unique id of TariffSystem and version number. |
const TsVersions& OSB_LIB::TariffCatalogue::tsVersions | ( | ) | const [inline] |
Read access to the list of tariff system versions.
Definition at line 2286 of file tariffcatalogue.h.
References tsVersions_.
TzConfig* OSB_LIB::TariffCatalogue::tzConfig | ( | const TzConfig::Oid & | oid | ) |
Get a tariff zone configuration from the master list.
This function matches a zone configuration with the tariff zone id and time period in the oid.
oid | Unique id of tariff zone configuration. |
const TzConfigs& OSB_LIB::TariffCatalogue::tzConfigs | ( | ) | const [inline] |
Read access to the list of tariff zone configurations.
Definition at line 2013 of file tariffcatalogue.h.
References tzConfigs_.
size_t OSB_LIB::TariffCatalogue::unfreezeCgi | ( | OSB_DB::Session & | session, | |
const Cgi::Oid & | oid, | |||
OsbErrors & | errors, | |||
const bool | noWait | |||
) |
Change the object status from 'standby' to 'editable'.
session | Database session. | |
oid | Object id of the CGI that is to be unfreezed. | |
errors | Container for error messages. | |
noWait | Wait if locked by another session? |
OsbError OSB_LIB::TariffCatalogue::updCgi | ( | OSB_DB::Session & | session, | |
Cgi & | cgi, | |||
bool | noWait | |||
) |
Update CGI.
Check that name of CGI does not already exist. If condition above fulfills, update changes into database. Note that the parameter uses a copy of the object, instead of the original object. The session is only commited if no OsbErrors occur else it will be rolled back to release the lock. The list of Cgis will be sorted by name in ascending order after updating.
session | Database session. | |
cgi | Reference to a copy of CGI object to be updated. | |
noWait | Wait if locked by another session? |
OsbException | if encountered problems in database. |
OsbError OSB_LIB::TariffCatalogue::updConnectionPt | ( | OSB_DB::Session & | session, | |
ConnectionPt & | cp, | |||
bool | noWait | |||
) |
Update connection point.
Check that name in connection point does not already exist. If condition above fulfills, update changes into database. Note that the parameter uses a copy of the object, instead of the original object. The session is commited if no OsbError occurs else it will be rolled back to release the lock upon an OsbError. The list of connection points will be sorted by name in ascending order after updating.
session | Database session. | |
cp | Reference to a copy of connection point object to be updated. | |
noWait | Wait if locked by another session? |
OsbException | if encountered problems in database. |
OsbError OSB_LIB::TariffCatalogue::updDayClass | ( | OSB_DB::Session & | session, | |
DayClass & | dc, | |||
bool | noWait | |||
) |
Modify the day class definition.
This function will update the database and day class. It will first make sure there is such object id existing; second, it will compare the new object with the original one; then, doing check whether the new object is legal; then, update database; at last, the original object will be updated with the input object. The list of day classes will be sorted by name after updating.
session | Database session. | |
dc | DayClass object. | |
noWait | Wait if locked by another session? |
OsbException | for any database errors. |
OsbError OSB_LIB::TariffCatalogue::updE164 | ( | OSB_DB::Session & | session, | |
E164 & | e164, | |||
bool | noWait | |||
) |
Update E164.
Check that name is not used in any E164s. Update changes into database if the above condition fulfills. Note that the parameter uses a copy of the object, instead of the original object. The session will be commited if no OsbErrors occur else it will be rolled back to release the lock. The list of E164s will be sorted by name in ascending order after updating.
session | Database session. | |
e164 | Reference to a copy of E164 object to be updated. | |
noWait | Wait if locked by another session? |
OsbException | if encountered problems in database. |
void OSB_LIB::TariffCatalogue::updRatedService | ( | OSB_DB::Session & | session, | |
RatedService & | service, | |||
bool | noWait | |||
) |
Update a rated service.
session | Database session. | |
service | Rated service to update. | |
noWait | Wait if locked by another session? |
OsbException | if the update fails. |
OsbError OSB_LIB::TariffCatalogue::updRatingFn | ( | OSB_DB::Session & | session, | |
RatingFn & | rf, | |||
const bool | noWait | |||
) |
Update a rating function object.
This fucniton will update a rating function. The list of rating function will be sorted by name in ascending order after updating.
session | Database session. | |
rf | Rating function object to be updated. | |
noWait | Wait if locked by another session? |
OsbError OSB_LIB::TariffCatalogue::updScsVersion | ( | OSB_DB::Session & | session, | |
ScsVersion & | scsVs, | |||
const bool | noWait | |||
) |
Update a service class system version.
This fucniton will update a service class system version. The list of service class system version will be sorted by released date in descending order after updating.
session | Database session. | |
scsVs | Service class system version to be updated. | |
noWait | Wait if locked by another session? |
OsbError OSB_LIB::TariffCatalogue::updScSystem | ( | OSB_DB::Session & | session, | |
ScSystem & | scs, | |||
const bool | noWait | |||
) |
Update a service class system.
This fucniton will update a service class system. The list of service class system will be sorted by name in ascending order after updating.
session | Database session. | |
scs | Service class system to update. | |
noWait | Wait if locked by another session? |
OsbError OSB_LIB::TariffCatalogue::updServiceClass | ( | OSB_DB::Session & | session, | |
ServiceClass & | sc, | |||
const bool | noWait | |||
) |
Update a service class.
This fucniton will update a service class with name and description given based on oid. The list of service classes will be sorted by name in ascending order after updating.
session | Database session. | |
sc | Service class object to be updated. | |
noWait | Wait if locked by another session? |
OsbError OSB_LIB::TariffCatalogue::updSpecialDate | ( | OSB_DB::Session & | session, | |
SpecialDate & | sd, | |||
bool | noWait | |||
) |
Modify the special date definitions.
This function will match the given date from the object with the previous defined ones, if yes, it will changed the original values with new one. The list of special dates will be sorted by name after updating in the database.
session | Database session. | |
sd | SpecialDate object. | |
noWait | Wait if locked by another session? |
OsbError OSB_LIB::TariffCatalogue::updTariff | ( | OSB_DB::Session & | session, | |
Tariff & | tf, | |||
bool | noWait | |||
) |
Update a tariff object.
This function will update a tariff object. The list of tariffs will be sorted by name in ascending after updating.
session | Database session. | |
tf | Tariff object to be updated. | |
noWait | Wait if locked by another session? |
OsbError OSB_LIB::TariffCatalogue::updTariffClass | ( | OSB_DB::Session & | session, | |
TariffClass & | tc, | |||
bool | noWait | |||
) |
Update Tariff class.
Check that name is not used in existing tariff class. Update changes into database if the above condition fulfills. Note that the parameter uses a copy of the object, instead of the original object. The session is only commited if no OsbErrors occur else it will be rolled back to release the lock. The list of tariff classes will be sorted by name in ascending order after updating.
session | Database session. | |
tc | Reference to a copy of tariff class object to be updated. | |
noWait | Wait if locked by another session? |
OsbException | if encountered problems in database. |
OsbError OSB_LIB::TariffCatalogue::updTariffPeriod | ( | OSB_DB::Session & | session, | |
TariffPeriod & | tp, | |||
bool | noWait | |||
) |
Update a tariff period.
This function will update a tariff period with name and description, for a given id. And, before updating, it has to search available tariff periods with name and desc comparsion. Then, it will update database with new update values. Finally it will update the object. The list of tariff periods will be sorted by name in ascending order after updating.
session | Database session. | |
tp | A object reference of tariff period. | |
noWait | Wait if locked by another session? |
OsbException | for any database errors. |
OsbError OSB_LIB::TariffCatalogue::updTariffSystem | ( | OSB_DB::Session & | session, | |
TariffSystem & | ts, | |||
bool | noWait | |||
) |
Update tariff system in the database.
Check that name of tariff system does not already exist. If condition above fulfills, update changes into database. Note that the parameter uses a copy of the object, instead of the original object. The session is only committed if no OsbErrors occur else it will be rolled back to release the lock. The list of tariff systems will be sorted by name in ascending order after updating.
session | Database session. | |
ts | Reference to a copy of tariff system object to be updated. | |
noWait | Wait if locked by another session? |
OsbException | if encountered problems in database. |
OsbError OSB_LIB::TariffCatalogue::updTariffZone | ( | OSB_DB::Session & | session, | |
TariffZone & | tz, | |||
bool | noWait | |||
) |
Update tariff zone.
Check that name does not exist in tariff zone. Update changes to the name into database if the above condition fulfills. Note that the parameter uses a copy of the object, instead of the original object. The session is only commited if no OsbErrors occur else it will be rolled back to release the lock. The list of tariff zones will be sorted by name in ascending order after updating.
session | Database session. | |
tz | Reference to a copy of tariff zone object to be updated. | |
noWait | Wait if locked by another session? |
OsbException | if encountered problems in database. |
OsbError OSB_LIB::TariffCatalogue::updTcsVersion | ( | OSB_DB::Session & | session, | |
TcsVersion & | tcsVs, | |||
const bool | noWait | |||
) |
Update a tariff classification system version object.
The list of tariff classification system version will be sorted by released date in descending order after updating.
session | Database session to use. | |
tcsVs | TCS version to update. | |
noWait | Wait if locked by another session? |
OsbError OSB_LIB::TariffCatalogue::updTcSystem | ( | OSB_DB::Session & | session, | |
TcSystem & | tcs, | |||
bool | noWait | |||
) |
Update tariff classification system.
This function replace the entry in database with the updated tariff classification system object passed in. The list of tariff classification system will be sorted by name in ascending order after updating.
session | Database session. | |
tcs | Updated tariff classification system object. | |
noWait | Wait if locked by another session? |
OsbException | if encountered problems in database. |
OsbError OSB_LIB::TariffCatalogue::updTfVersion | ( | OSB_DB::Session & | session, | |
TfVersion & | tfVs, | |||
const bool | noWait | |||
) |
Update a tariff version.
This fucniton will update a tariff version. The list of tariff version will be sorted by released date in descending order after updating.
session | Database session. | |
tfVs | Tariff version to updated. | |
noWait | Wait if locked by another session? |
OsbError OSB_LIB::TariffCatalogue::updTpsVersion | ( | OSB_DB::Session & | session, | |
TpsVersion & | tpsVs, | |||
bool | noWait | |||
) |
Modify a version of tariff period system.
This function will update a tariff period system version for a given id. Before updating, it has to make sure the object id exists; the new object is different from the original; checking the unique of name; then update database; at last, the original object will be updated with new one. The list of tariff period system versions will be sorted by released date in descending order after updating.
session | Database session. | |
tpsVs | A reference of tariff period system version. | |
noWait | Wait if locked by another session? |
OsbException | for database errors. |
OsbError OSB_LIB::TariffCatalogue::updTpSystem | ( | OSB_DB::Session & | session, | |
TpSystem & | tps, | |||
bool | noWait | |||
) |
Update a tariff period system.
This fucniton will update a tariff period system with name and description, for a given id. Before updating, it has to make sure the object id exists; the new object is different from the original; checking the unique of name; then update database; at last, the original object will be updated with new one. The list of tariff period systems will be sorted by name in ascending order after updating.
session | Database session. | |
tps | A reference to the updated object of TpSystem. | |
noWait | Wait if locked by another session? |
OsbException | for any database errors. |
OsbError OSB_LIB::TariffCatalogue::updTsVersion | ( | OSB_DB::Session & | session, | |
TsVersion & | tsv, | |||
bool | noWait | |||
) |
Update tariff system version.
Note that the parameter uses a copy of the object, instead of the original object. The session is only commited if no OsbErrors occur else it will be rolled back to release the lock. The list of tariff system versions will be sorted by released date in descending order after updating.
session | Database session. | |
tsv | Reference to a copy of tariff system version. | |
noWait | Wait if locked by another session? |
OsbException | if encountered problems in database. |
OsbError OSB_LIB::TariffCatalogue::updTzConfig | ( | OSB_DB::Session & | session, | |
TzConfig & | tzcfg, | |||
bool | noWait | |||
) |
Update tariff zone configuration.
Update changes to the valid period into database if the above condition fulfills. Note that the parameter uses a copy of the object, instead of the original object. The session will be commited if no OsbErrors occur else it will be rolled back to release the lock. The list of tariff zone configuration will be sorted by start date after updating.
session | Database session. | |
tzcfg | Reference to a copy of tariff zone configuration object to be updated. | |
noWait | Wait if locked by another session? |
OsbException | if encountered problems in database. |
const UsageTypeList& OSB_LIB::TariffCatalogue::usageTypeList | ( | ) | const |
Get list of CDR usage types.
friend class TcatLockManager [friend] |
For the implementation of the various write guards, the lock manager needs non-const access to the tariff objects.
Definition at line 132 of file tariffcatalogue.h.
CgiMap OSB_LIB::TariffCatalogue::cgiMap_ [mutable, private] |
Connection point map of CGI configurations.
Whenever a configuration related to Cgi changes, the flag CgiMap::needBuild_ is set to true.
Definition at line 3434 of file tariffcatalogue.h.
Cgis OSB_LIB::TariffCatalogue::cgis_ [private] |
Info on connection point mapping classes.
Definition at line 3462 of file tariffcatalogue.h.
Referenced by cpMapperList().
CpTree* OSB_LIB::TariffCatalogue::cpTree_ [private] |
Master list of day classes.
Definition at line 3412 of file tariffcatalogue.h.
Referenced by dayClasses().
E164Map* OSB_LIB::TariffCatalogue::e164Map_ [mutable, private] |
Connection point map of E164 configurations.
Whenever the list with the E164 configuration changes, the flag E164Map::needBuild_ is set to true.
Definition at line 3447 of file tariffcatalogue.h.
E164s OSB_LIB::TariffCatalogue::e164s_ [private] |
long OSB_LIB::TariffCatalogue::gracePeriod_ [private] |
Grace period of the whole system.
Definition at line 3403 of file tariffcatalogue.h.
Referenced by gracePeriod().
Master list of service class system versions.
Definition at line 3478 of file tariffcatalogue.h.
Referenced by scsVersions().
Master list of service class systems.
Definition at line 3476 of file tariffcatalogue.h.
Referenced by scSystems().
Master list of service class.
Definition at line 3474 of file tariffcatalogue.h.
Referenced by serviceClasses().
SeTree* OSB_LIB::TariffCatalogue::seTree_ [private] |
Master list of special dates.
Definition at line 3410 of file tariffcatalogue.h.
Referenced by specialDates().
Master list of tariff classes.
Definition at line 3450 of file tariffcatalogue.h.
Referenced by tariffClasses().
Master list of tariff periods.
Definition at line 3414 of file tariffcatalogue.h.
Referenced by tariffPeriods().
Tariffs OSB_LIB::TariffCatalogue::tariffs_ [private] |
Master list of tariff system.
Definition at line 3467 of file tariffcatalogue.h.
Referenced by tariffSystems().
Master list of tariff zones.
Definition at line 3452 of file tariffcatalogue.h.
Referenced by tariffZones().
TcatLockManager* OSB_LIB::TariffCatalogue::tcatlm_ [private] |
Master list of tariff classification system version.
Definition at line 3456 of file tariffcatalogue.h.
Master list of tariff classification system.
Definition at line 3454 of file tariffcatalogue.h.
Referenced by tcSystems().
The master list of tpVersions.
Definition at line 3418 of file tariffcatalogue.h.
Referenced by tpsVersions().
Master list of tariff period systems.
Definition at line 3416 of file tariffcatalogue.h.
Referenced by tpSystems().
Master list of TsVersion.
Definition at line 3468 of file tariffcatalogue.h.
Referenced by tsVersions().
Master list of tariff zone configurations.
Definition at line 3458 of file tariffcatalogue.h.
Referenced by tzConfigs().