OSB_LIB::ImsiResource Class Reference

Inheritance diagram for OSB_LIB::ImsiResource:

Inheritance graph
[legend]
Collaboration diagram for OSB_LIB::ImsiResource:

Collaboration graph
[legend]
List of all members.

Detailed Description

IMSI as network resource.

An IMSI (International Mobile Subscriber Identity) uniquely identifies a mobile phone user.
It is a 15 (sometime 14) digit number that consists of:
+ MCC, 3 digits: mobile country code + MNC, 2 or 3 digits: mobile network code + MSIN, 9 or 10 digits: mobile station identification number

Todo:
An IMSI is always coupled to another resource, e.g., MEID or SIM card.
The question is if an IMSI is "just" an attribute of this other resource or if it can live stand-alone: The latter is expected and in this case we must decide who stores the relationship.

Definition at line 73 of file imsiresource.h.

Public Member Functions

Database operations:

Static Public Member Functions

Static Public Attributes


Constructor & Destructor Documentation

OSB_LIB::ImsiResource::ImsiResource ( const Oid oid = Oid()  )  [explicit]

Constructor with optional object id.

OSB_LIB::ImsiResource::ImsiResource ( const Number rn,
const Id< Network > &  nw = IdNetwork >() 
) [explicit]

Constructor with resource number and optional network.

Parameters:
rn The resource number, see class description for format.
nw The network of the IMSI resource.
Exceptions:
OsbException from validateNumber().


Member Function Documentation

bool OSB_LIB::ImsiResource::insert ( const OSB_DB::Session session  )  [virtual]

Insert the resource into the database.

Parameters:
session Database session to use.
Returns:
true in case of success, else false.

Implements OSB_LIB::Resource.

bool OSB_LIB::ImsiResource::read ( const OSB_DB::Session session  )  [virtual]

Read the resource from the database.

Parameters:
session Database session to use.
Returns:
true in case of success, else false.

Implements OSB_LIB::Resource.

bool OSB_LIB::ImsiResource::remove ( const OSB_DB::Session session  )  [virtual]

Delete the resource from the database.

Parameters:
session Database session to use.
Returns:
true in case of success, else false.

Implements OSB_LIB::Resource.

Type OSB_LIB::ImsiResource::typeId (  )  const [virtual]

The type of an IMSI resource: rtImsi.

Implements OSB_LIB::Resource.

void OSB_LIB::ImsiResource::updData ( const OSB_DB::Session session  )  [virtual]

Update the IMSI resource in the database.

Parameters:
session Database session to use.
No updates that are specific for an IMSI resource exists,
the function just calls updData().

Implements OSB_LIB::Resource.

static void OSB_LIB::ImsiResource::validateNumber ( const std::string &  number  )  [static]

Validate the number of an IMSI resource.

Parameters:
number Number to validate.
Exceptions:
OsbException if the length of number is not 14 or 15.
OsbException if number contains non-decimal digits.


Member Data Documentation

const Type OSB_LIB::ImsiResource::type_ = rtImsi [static]

The resource type.

Definition at line 76 of file imsiresource.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:11:21 2006 for OSB Library by  doxygen 1.4.7