This class stores the details of a connection point. Each connection point has a parent which determines the next CGI or E.164 to search when matching a best matched CGI or E.164.
Definition at line 167 of file connectionpt.h.
typedef Id<ConnectionPt> OSB_LIB::ConnectionPt::Oid |
typedef std::list<CpParent> OSB_LIB::ConnectionPt::Parents |
Constructor with only an object id.
void OSB_LIB::ConnectionPt::addParent | ( | CpParent & | parent | ) |
Add parent connection point.
parent | Parent connection point. |
OsbException | for the following errors:
|
void OSB_LIB::ConnectionPt::delParent | ( | const int | seq | ) |
Remove parent connection point relationship.
seq | Sequence number of the parent relationship to be removed. |
OsbException | if parent connection does not exist. |
bool OSB_LIB::ConnectionPt::freeze | ( | const OSB_DB::Session & | session, | |
OsbErrors & | errors | |||
) | [virtual] |
Change status from 'editable' to 'standby'.
To freeze a connection point, the following criteria must be fulfilled:
session | Database session to use. | |
errors | Container for error messages if any. |
Implements OSB_LIB::ToCfgBase.
Get the parent at a given timestamp.
bool OSB_LIB::ConnectionPt::insert | ( | const OSB_DB::Session & | session | ) | [private] |
Connection point insert itself into database.
A new connection point is inserted. All attributes of the object has been set except object id. The object id will only be set by the function if the insertion is successful.
session | Database session. |
OsbException | for the following errors:
|
bool OSB_LIB::ConnectionPt::isRoot | ( | ) | const |
Return true if this is a root connection point else false.
const Oid& OSB_LIB::ConnectionPt::oid | ( | ) | const |
Get unique id of a connection point.
const CpParent* OSB_LIB::ConnectionPt::parent | ( | const int | seq | ) | const |
Get the parent relationship with a given sequence no.
seq | Sequence number of the parent relationship. |
const Parents& OSB_LIB::ConnectionPt::parents | ( | ) | const |
Get the list of parents for this connection point.
bool OSB_LIB::ConnectionPt::read | ( | const OSB_DB::Session & | session | ) |
Connection point read itself from database.
The object id is used to gather other info from database and then populate the object's data members.
session | Database session. |
bool OSB_LIB::ConnectionPt::release | ( | const OSB_DB::Session & | session, | |
OsbErrors & | errors | |||
) | [virtual] |
Change status from 'standby' to 'released'.
To release a connection point, the following criteria must be fulfilled:
session | Database session to use. | |
errors | Container for error messages if any. |
Implements OSB_LIB::ToCfgBase.
bool OSB_LIB::ConnectionPt::remove | ( | const OSB_DB::Session & | session | ) | [private] |
Connection point remove itself from database.
After the function call, oid of this object will be unset to indicate that there is no such entry anymore in the database.
session | Database session. |
OsbException | for the following errors:
|
bool OSB_LIB::ConnectionPt::revoke | ( | const OSB_DB::Session & | session, | |
OsbErrors & | errors | |||
) | [virtual] |
Change status from 'release' to 'standby'.
To revoke a connection point, the following criteria must be fulfilled:
session | Database session to use. | |
errors | Container for error messages if any. |
Implements OSB_LIB::ToCfgBase.
void OSB_LIB::ConnectionPt::setReleaseTs | ( | const DateTime & | ts | ) | [virtual] |
Set the release time stamp.
ts | Time stamp when the tariff object becomes active. |
OsbException | if the object status is released. |
Reimplemented from OSB_LIB::ToCfgTsBase.
void OSB_LIB::ConnectionPt::setRoot | ( | bool | isRoot | ) |
Define connection point as a root or not a root.
isRoot | Set this parameter to true if going to change the connection point to a root connection point and vice-versa. |
void OSB_LIB::ConnectionPt::sortParents | ( | ) |
Sort parent connection point by release date.
bool OSB_LIB::ConnectionPt::unfreeze | ( | const OSB_DB::Session & | session, | |
OsbErrors & | errors | |||
) | [virtual] |
Change status from 'standby' to 'editable'.
To unfreeze a connection point, the following criteria must be fulfilled:
session | Database session to use. | |
errors | Container for error messages if any. |
Implements OSB_LIB::ToCfgBase.
bool OSB_LIB::ConnectionPt::update | ( | const OSB_DB::Session & | session | ) | [private] |
Connection point update itself into the database.
Old entry in the database identify by the object id will be replaced with the new data from this object.
session | Database session. |
OsbException | for the following errors:
|
void OSB_LIB::ConnectionPt::updParent | ( | const CpParent & | parent | ) |
Update parent connection point.
parent | Parent connection point to update. |
OsbException | if the parent does not exist. |
friend class OSB_DB::ConnectionPtGw [friend] |
Allow create function at the gateway to assign unique id to newly created connection points.
Definition at line 174 of file connectionpt.h.
friend class TariffCatalogue [friend] |
Allow the tariff catalogue to call the database functions.
Definition at line 176 of file connectionpt.h.
bool OSB_LIB::ConnectionPt::isRoot_ [private] |
Oid OSB_LIB::ConnectionPt::oid_ [private] |
Parents OSB_LIB::ConnectionPt::parents_ [private] |