The changes are stored to the database only if create(), updStatus() or updData() is called.
Definition at line 186 of file resource_i.h.
OSB_CORBA::ResourceWriter_i::ResourceWriter_i | ( | NetworkManager_i & | nmgri, | |
const OSB_LIB::Resource::Oid & | resId | |||
) |
Constructor.
virtual OSB_CORBA::ResourceWriter_i::~ResourceWriter_i | ( | ) | [virtual] |
Destructor.
OSB_CORBA::ResourceWriter_i::ResourceWriter_i | ( | const ResourceWriter_i & | ) | [private] |
Prevent copying: not implemented.
virtual ResourceId OSB_CORBA::ResourceWriter_i::create | ( | CORBA::Boolean | noWait | ) | throw (CORBA::SystemException, OsbCorbaException) [virtual] |
Save changes to the database.
Creates a new resource in the database or updates the existing resource.
noWait | Wait if locked by another session? |
OsbCorbaException |
|
void OSB_CORBA::ResourceWriter_i::destroy | ( | ) | throw (CORBA::SystemException) |
Destroy the servant without saving the changes.
ResourceWriter_i& OSB_CORBA::ResourceWriter_i::operator= | ( | const ResourceWriter_i & | ) | [private] |
Prevent assignment: not implemented.
virtual OSB_LIB::Resource& OSB_CORBA::ResourceWriter_i::resource | ( | ) | [protected, pure virtual] |
Write access to the resource.
Implemented in OSB_CORBA::AccessNumberWriter_i, OSB_CORBA::E164ResourceWriter_i, OSB_CORBA::Ip4AddressWriter_i, OSB_CORBA::IpGroupWriter_i, and OSB_CORBA::TrunkResourceWriter_i.
void OSB_CORBA::ResourceWriter_i::setLoctKey | ( | const Locators::Key & | key | ) |
Sets the servant locator key for this writer object servant.
void OSB_CORBA::ResourceWriter_i::setPool | ( | const corba::imgmt::PoolId & | poolId | ) | throw (CORBA::SystemException, OsbCorbaException) |
Set the inventory pool.
poolId | The new inventory pool of the device. |
OsbCorbaException | if changing to pool is not allowed: currently none. |
void OSB_CORBA::ResourceWriter_i::setStatus | ( | ResourceStatus | newStatus | ) | throw (OsbCorbaException) |
Set the resource status.
newStatus | New status of the resource. |
OsbCorbaException | if the current status is assigned. | |
OsbCorbaException | if newStatus is assigned or quarantine. |
virtual void OSB_CORBA::ResourceWriter_i::updData | ( | CORBA::Boolean | noWait | ) | throw (CORBA::SystemException, OsbCorbaException) [virtual] |
virtual void OSB_CORBA::ResourceWriter_i::updStatus | ( | CORBA::Boolean | noWait | ) | throw (CORBA::SystemException, OsbCorbaException) [virtual] |
virtual bool OSB_CORBA::ResourceWriter_i::writeToList | ( | bool | isNew | ) | const [protected, pure virtual] |
Store the resource in the appropriate resource list.
isNew | Flag if the resource was just created (true) or updated (false). |
bool E164ResourceWriter_i::writeToList( bool // not used: isNew ) const { return nmgri_.getE164List().replace(e164_); }
Implemented in OSB_CORBA::AccessNumberWriter_i, OSB_CORBA::E164ResourceWriter_i, OSB_CORBA::Ip4AddressWriter_i, OSB_CORBA::IpGroupWriter_i, and OSB_CORBA::TrunkResourceWriter_i.
const std::string OSB_CORBA::ResourceWriter_i::IFC [static] |
String representation for ResourceWriter_i.
Reimplemented from OSB_CORBA::Resource_i.
Reimplemented in OSB_CORBA::AccessNumberWriter_i, OSB_CORBA::E164ResourceWriter_i, OSB_CORBA::Ip4AddressWriter_i, OSB_CORBA::IpGroupWriter_i, and OSB_CORBA::TrunkResourceWriter_i.
Definition at line 192 of file resource_i.h.