OSB_CORBA::PersProdItemWriter_i Class Reference

Inheritance diagram for OSB_CORBA::PersProdItemWriter_i:

Inheritance graph
[legend]
Collaboration diagram for OSB_CORBA::PersProdItemWriter_i:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 76 of file persproditem_i.h.

Public Member Functions

Static Public Attributes

Protected Member Functions

Protected Attributes

Private Member Functions


Constructor & Destructor Documentation

OSB_CORBA::PersProdItemWriter_i::PersProdItemWriter_i ( ContractAdmin_i cadmin,
PersProductWriter_i ppServant,
const OSB_LIB::ProductNode pn,
std::auto_ptr< OSB_LIB::PersProductItem ppi 
)

Constructor.

virtual OSB_CORBA::PersProdItemWriter_i::~PersProdItemWriter_i (  )  [virtual]

OSB_CORBA::PersProdItemWriter_i::PersProdItemWriter_i ( const PersProdItemWriter_i  )  [private]

Prevent copying: not implemented.


Member Function Documentation

virtual DateTime* OSB_CORBA::PersProdItemWriter_i::assignDate (  )  throw () [virtual]

Date at which personalised product item is assigned.

virtual CORBA::Boolean OSB_CORBA::PersProdItemWriter_i::canConfig (  )  throw () [virtual]

Flag to indicate if re-configuration is allowed.

virtual void OSB_CORBA::PersProdItemWriter_i::checkConfig (  )  throw (OsbCorbaException) [pure virtual]

Check if pers item is configured properly before it is being saved or created in the database.

The implementation of the check is done in each specific pers item.

Exceptions:
OsbCorbaException if configuration is not valid.

Implemented in OSB_CORBA::PersUimCardWriter_i, OSB_CORBA::PersServiceWriter_i, OSB_CORBA::PersTariffSystemWriter_i, OSB_CORBA::PersE164Writer_i, OSB_CORBA::PersTrunkItemWriter_i, OSB_CORBA::PersIpGroupItemWriter_i, and OSB_CORBA::PersAnItemWriter_i.

void OSB_CORBA::PersProdItemWriter_i::checkRefUsage (  )  throw (OsbCorbaException)

Check if a OSB_LIB::PersProductItem object is used illegally.

This function checks that the OSB_LIB::PersProductItem object is not used to invoke any operations on a PersProdItem that does not yet exist in the database. Typical usage would be in commitChanges() where this function is used to check that a newly created PersProdItem is not used to invoke the update() function.

Exceptions:
OsbCorbaException if corba reference is used illegally.

virtual PersItemId OSB_CORBA::PersProdItemWriter_i::commitChanges ( CORBA::Boolean  noWait  )  throw (OsbCorbaException) [virtual]

Update changes to the personalised product permanently into database.

Parameters:
noWait Set to false if waiting is desired when lock is already acquired by others. If waiting is not desired, set flag to true.
Returns:
The id of the pers. product item after the changes, it is ID_NOT_SET if the operation is not successful.
Note:
If the status of the pers. item is not created, it is deassigned from the pers. node.

virtual PersItemId OSB_CORBA::PersProdItemWriter_i::create ( CORBA::Boolean  noWait  )  throw (OsbCorbaException) [virtual]

Create new personlised product permanently into database.

This operation is not allowed if the PersProdNode is deactivated.

Parameters:
noWait Set to false if waiting is desired when lock is already acquired by others. If waiting is not desired, set flag to true.
Returns:
PersItemId if operation is successful.
Exceptions:
OsbCorbaException if operation fails at the gateway.

virtual DateTime* OSB_CORBA::PersProdItemWriter_i::deassignDate (  )  throw () [virtual]

Date at which personalised product item is deassigned.

virtual Utf8String* OSB_CORBA::PersProdItemWriter_i::desc (  )  throw (OsbCorbaException) [virtual]

Return description of product item used to create personalised product item

virtual PersItemId OSB_CORBA::PersProdItemWriter_i::id (  )  throw () [virtual]

Return unique personalised product item id.

const Locators::Key& OSB_CORBA::PersProdItemWriter_i::key (  )  const [inline]

Get the servant key.

Definition at line 101 of file persproditem_i.h.

References key_.

virtual Utf8String* OSB_CORBA::PersProdItemWriter_i::name (  )  throw (OsbCorbaException) [virtual]

Return name of product item used to create personalised product item

PersProdItemWriter_i& OSB_CORBA::PersProdItemWriter_i::operator= ( const PersProdItemWriter_i  )  [private]

Prevent assignment: not implemented.

virtual Utf8String* OSB_CORBA::PersProdItemWriter_i::personalization (  )  throw () [virtual]

Personalisation string.

OSB_LIB::PersProduct* OSB_CORBA::PersProdItemWriter_i::persProduct (  )  [protected]

Get the pers. product from ppServant_.

Exceptions:
OsbCorbaException if the pers. product is 0.

virtual PpTypeId OSB_CORBA::PersProdItemWriter_i::type (  )  throw () [virtual]

Type of personalised product part.


Member Data Documentation

ContractAdmin_i& OSB_CORBA::PersProdItemWriter_i::cadmin_ [protected]

Reference to ContractAdmin object reference.

Definition at line 208 of file persproditem_i.h.

const std::string OSB_CORBA::PersProdItemWriter_i::IFC [static]

Reimplemented in OSB_CORBA::PersServiceWriter_i, OSB_CORBA::PersTariffSystemWriter_i, OSB_CORBA::PersResource_i, OSB_CORBA::PersE164Writer_i, OSB_CORBA::PersTrunkItemWriter_i, OSB_CORBA::PersIpGroupItemWriter_i, and OSB_CORBA::PersAnItemWriter_i.

Definition at line 80 of file persproditem_i.h.

Locators::Key OSB_CORBA::PersProdItemWriter_i::key_ [protected]

Servant key.

Definition at line 222 of file persproditem_i.h.

Referenced by key().

const OSB_LIB::ProductNode* OSB_CORBA::PersProdItemWriter_i::pn_ [protected]

Product item name and description is retrieved via this pointer.

Definition at line 216 of file persproditem_i.h.

OSB_LIB::PersProductItem* OSB_CORBA::PersProdItemWriter_i::ppi_ [protected]

Pointer to personalised product item.

Definition at line 219 of file persproditem_i.h.

PersProductWriter_i& OSB_CORBA::PersProdItemWriter_i::ppServant_ [protected]

Reference to the pers. product servant.

Definition at line 210 of file persproditem_i.h.


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