Definition at line 58 of file connectionpt-gw.h.
bool OSB_DB::ConnectionPtGw::allCgisValid | ( | const Session & | session, | |
const OSB_LIB::ConnectionPt::Oid & | oid | |||
) | [private] |
Check if all CGIs are still valid.
This function will compare the release period of the CGI and configured connection point. If the released period of the configured connection point does not cover the whole released period of all the CGI refered to it, error will be push into the "errors" container.
session | Database session. | |
oid | Object id of the connection point to be checked. |
OsbException | for any database errors. |
bool OSB_DB::ConnectionPtGw::allChildReleasedPeriodCovered | ( | const Session & | session, | |
const OSB_LIB::ConnectionPt::Oid & | oid | |||
) | [private] |
Check if all child CPs' released periods are covered.
This function will compare the release period of the parent and child connection point. If the released period of the parent connection point does not cover the whole released period of all the child connection points refered to it, this function will return false.
session | Database session. | |
oid | Object id of the connection point to be checked. |
OsbException | for any database errors. |
bool OSB_DB::ConnectionPtGw::allE164sValid | ( | const Session & | session, | |
const OSB_LIB::ConnectionPt::Oid & | oid | |||
) | [private] |
Check if all E164s are still valid.
This function will compare the release period of the E164 and configured connection point. If the released period of the configured connection point does not cover the whole released period of all the E164 refered to it, error will be push into the "errors" container.
session | Database session. | |
oid | Object id of the connection point to be checked. |
OsbException | for any database errors. |
bool OSB_DB::ConnectionPtGw::allTzConfigReleasedPeriodCovered | ( | const Session & | session, | |
const OSB_LIB::ConnectionPt::Oid & | oid | |||
) | [private] |
Check if all tariff zone configurations' released periods are covered.
This function will compare the release period of the connection point and all dependent tariff zone configurations. If the released the connection point does not cover the whole released period of all all dependent tariff zone configurations, function will return false.
session | Database session. | |
oid | Object id of the connection point to be checked. |
OsbException | for any database errors. |
OSB_LIB::ObjectStatus OSB_DB::ConnectionPtGw::checkObjVs | ( | const Session & | session, | |
const OSB_LIB::ConnectionPt & | cp | |||
) | [private] |
Check the current object version.
session | Database session. | |
cp | Connection point to verify. |
OsbException | for the following errors:
|
bool OSB_DB::ConnectionPtGw::delConnectionPt | ( | const Session & | session, | |
OSB_LIB::ConnectionPt & | cp | |||
) | [private] |
Delete a connection point from the database.
This function removes the connection point from the database. Object id of the connection point object passed in will be unset. The application will have to delete the object itself.
session | Database session. | |
cp | Unique id of a connection point object. |
OsbException | for the following errors:
|
long OSB_DB::ConnectionPtGw::fetch | ( | const Session & | session, | |
OSB_LIB::CpTree * | cpTree | |||
) |
Load all connection point into a STL container.
This function retrieve all the connection points availabel in database.
session | Database session. | |
cpTree | Pointer to connection point master list. |
OsbException | when if there are errors. |
bool OSB_DB::ConnectionPtGw::fetch | ( | const Session & | session, | |
OSB_LIB::ConnectionPt & | cp | |||
) |
Populate a connection point's data members.
This function takes in a connection point object with only its oid set. Base on the oid, this function will populate other data members with data from database.
session | Database session. | |
cp | Connection point object to be populated. |
OsbException | when if there are errors. |
bool OSB_DB::ConnectionPtGw::gracePeriodExpired | ( | const Session & | session, | |
const OSB_LIB::ConnectionPt::Oid & | oid | |||
) | [private] |
Ensure the grace period has expired.
This function checks whether the connection point to be revoked has past its grace period.
session | Database. | |
oid | Object id of the connection point to be checked. |
OsbException | for the following errors:
|
bool OSB_DB::ConnectionPtGw::hasReleasedParent | ( | const Session & | session, | |
const OSB_LIB::ConnectionPt::Oid & | oid | |||
) | [private] |
Ensure at least one parent relationship is released.
This function checks whether at least one parent relationship of the connection point with the given object id has been released.
session | Database. | |
oid | Object id of the connection point to be checked. |
OsbException | for the following errors:
|
bool OSB_DB::ConnectionPtGw::insConnectionPt | ( | const Session & | session, | |
OSB_LIB::ConnectionPt & | cp | |||
) | [private] |
Add a new connection point.
Before the function call, the connection point object to be added must have all its data members set (description is optional) except oid. After the function completed successfully, oid will be set.
session | Database session. | |
cp | New connection point object to be added. |
OsbException | if:
|
bool OSB_DB::ConnectionPtGw::isCpUsedByFreezedCgi | ( | const Session & | session, | |
const OSB_LIB::ConnectionPt::Oid & | oid | |||
) | [private] |
Whether connection point is used by CGI.
This function checks whether a connection point is refered by a freezed CGI.
session | Database. | |
oid | Object id of the connection point to be checked. |
OsbException | for the following errors:
|
bool OSB_DB::ConnectionPtGw::isCpUsedByFreezedE164 | ( | const Session & | session, | |
const OSB_LIB::ConnectionPt::Oid & | oid | |||
) | [private] |
Whether connection point is used by E164.
This function checks whether a connection point is refered by a freezed E164.
session | Database. | |
oid | Object id of the connection point to be checked. |
OsbException | for the following errors:
|
bool OSB_DB::ConnectionPtGw::isCpUsedByFreezedTzConfig | ( | const Session & | session, | |
const OSB_LIB::ConnectionPt::Oid & | oid | |||
) | [private] |
Whether connection point is used by TzConfig.
This function checks whether a connection point is refered by a freezed Tariff zone configuration.
session | Database. | |
oid | Object id of the connection point to be checked. |
OsbException | for any database error. |
bool OSB_DB::ConnectionPtGw::isCpUsedByReleasedCgi | ( | const Session & | session, | |
const OSB_LIB::ConnectionPt::Oid & | oid | |||
) | [private] |
Whether connection point is used by CGI.
This function checks whether a connection point is refered by a released CGI.
session | Database. | |
oid | Object id of the connection point to be checked. |
OsbException | for the following errors:
|
bool OSB_DB::ConnectionPtGw::isCpUsedByReleasedE164 | ( | const Session & | session, | |
const OSB_LIB::ConnectionPt::Oid & | oid | |||
) | [private] |
Whether connection point is used by E164.
This function checks whether a connection point is refered by a released E164.
session | Database. | |
oid | Object id of the connection point to be checked. |
OsbException | for the following errors:
|
bool OSB_DB::ConnectionPtGw::isCpUsedByReleasedTzConfig | ( | const Session & | session, | |
const OSB_LIB::ConnectionPt::Oid & | oid | |||
) | [private] |
Whether connection point is used by TzConfig.
This function checks whether a connection point is refered by a released Tariff zone configuration.
session | Database. | |
oid | Object id of the connection point to be checked. |
OsbException | for any database error. |
bool OSB_DB::ConnectionPtGw::isFreezedParent | ( | const Session & | session, | |
const OSB_LIB::ConnectionPt::Oid & | oid | |||
) | [private] |
Is this a parent connection point.
This function checks whether the connection point with the given object id is the parent of other freezed connection point.
session | Database. | |
oid | Object id of the connection point to be checked. |
OsbException | for the following errors:
|
bool OSB_DB::ConnectionPtGw::isReleasedParent | ( | const Session & | session, | |
const OSB_LIB::ConnectionPt::Oid & | oid | |||
) | [private] |
Is this a parent connection point.
This function checks whether the connection point with the given object id is the parent of other released connection point.
session | Database. | |
oid | Object id of the connection point to be checked. |
OsbException | for the following errors:
|
bool OSB_DB::ConnectionPtGw::noParentConflict | ( | const Session & | session, | |
const OSB_LIB::ConnectionPt::Oid & | oid | |||
) | [private] |
Ensure no conflict to the parent relationship.
This function will ensure that no released parent relationships of the connection point with the given objec id, have the same release date.
session | Database. | |
oid | Object id of the connection point to be checked. |
OsbException | for the following errors:
|
bool OSB_DB::ConnectionPtGw::parentCoverWholeChildReleasedPeriod | ( | const Session & | session, | |
const OSB_LIB::ConnectionPt::Oid & | oid, | |||
OSB_LIB::OsbErrors & | errors | |||
) | [private] |
Check if the parent CP does cover the whole child CP's released period.
This function will compare the release period of the parent and child connection point. If the released period of the parent connection point does not cover the whole released period of the child connection point, error will be push into the "errors" container.
session | Database session. | |
oid | Object id of the connection point to be checked. | |
errors | Container of errors encountered. |
void OSB_DB::ConnectionPtGw::revokeAllParent | ( | const Session & | session, | |
const OSB_LIB::ConnectionPt::Oid & | oid | |||
) | [private] |
Revoke all parent relationship of a connection point.
This function will revoke all released parent relationship of a connection point with the given object id.
session | Database. | |
oid | Object id of the connection point where its parent relationships are to be revoked. |
OsbException | for the following errors:
|
bool OSB_DB::ConnectionPtGw::updConnectionPt | ( | const Session & | session, | |
OSB_LIB::ConnectionPt & | cp | |||
) | [private] |
Update a connection point object.
This function overwrites the connection point object in the database that share the same object id with the new object passed in.
All dependent objects' release period must still be valid if the connection point's release period has been changed.
session | Database session. | |
cp | Connection point object to be updated. |
OsbException | for the following errors:
|
void OSB_DB::ConnectionPtGw::updStatus | ( | const Session & | session, | |
OSB_LIB::ConnectionPt & | cp | |||
) | [private] |
Change the status of a connection point.
This function will change the status of a connection point with the given object id based on the input status.
session | Database session to use. | |
cp | Connection point to update, its new status must be set. |
friend class OSB_LIB::ConnectionPt [friend] |
Connection point needs to call the private member functions.
Definition at line 62 of file connectionpt-gw.h.