version 1.58, 2003/11/04 19:00:59
|
version 1.60.6.1, 2004/03/22 13:32:21
|
|
|
| |
try | try |
{ | { |
instance = _providerRegistrationManager->getInstance(instanceReference); |
instance = _providerRegistrationManager->getInstance(instanceReference, |
|
includeQualifiers, |
|
includeClassOrigin, |
|
propertyList); |
} | } |
catch(CIMException& e) | catch(CIMException& e) |
{ | { |
|
|
| |
try | try |
{ | { |
enumInstances = _providerRegistrationManager->enumerateInstances(classReference); |
enumInstances = |
|
_providerRegistrationManager->enumerateInstances(classReference, |
|
includeQualifiers, |
|
includeClassOrigin, |
|
propertyList); |
} | } |
catch(CIMException& e) | catch(CIMException& e) |
{ | { |
|
|
try | try |
{ | { |
_providerRegistrationManager->modifyInstance(instanceReference, | _providerRegistrationManager->modifyInstance(instanceReference, |
instanceObject, includeQualifiers, propertyArray); |
instanceObject, |
|
includeQualifiers, |
|
propertyArray); |
} | } |
catch(CIMException& e) | catch(CIMException& e) |
{ | { |
|
|
instanceObject.getProperty(ifcTypeIndex).getValue(). | instanceObject.getProperty(ifcTypeIndex).getValue(). |
get(ifcTypeString); | get(ifcTypeString); |
| |
if(ifcTypeString != "C++Default" && ifcTypeString != "CMPI" ) |
if (ifcTypeString != "C++Default" |
|
#ifdef ENABLE_CMPI_PROVIDER_MANAGER |
|
&& ifcTypeString != "CMPI" |
|
#endif |
|
) |
{ | { |
//l10n 485 | //l10n 485 |
//throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED, | //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED, |
|
|
String ifcVersionString; | String ifcVersionString; |
instanceObject.getProperty(ifcVersionIndex).getValue(). | instanceObject.getProperty(ifcVersionIndex).getValue(). |
get(ifcVersionString); | get(ifcVersionString); |
if ((ifcVersionString != "2.1.0") && |
|
(ifcVersionString != "2.2.0") && |
if ( |
(ifcVersionString != "2.3.0")) |
#ifdef ENABLE_CMPI_PROVIDER_MANAGER |
|
(ifcTypeString == "CMPI" && |
|
ifcVersionString != "2.0.0") || |
|
#endif |
|
(ifcTypeString == "C++Default" && |
|
ifcVersionString != "2.1.0" && |
|
ifcVersionString != "2.2.0" && |
|
ifcVersionString != "2.3.0")) |
{ | { |
//l10n 485 | //l10n 485 |
//throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED, | //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED, |
|
|
if (enabled) | if (enabled) |
{ | { |
// | // |
// if the module is enabled, need to send enable message to |
// Since module is enabled, need get updated module instance |
|
// |
|
CIMInstance UpdatedModuleInstance = |
|
_providerRegistrationManager->getInstance(moduleRef); |
|
|
|
// |
|
// The module is enabled, need to send enable message to |
// subscription service if the provider is an indication provider | // subscription service if the provider is an indication provider |
// | // |
| |
|
|
// | // |
if (capInstances.size() != 0) | if (capInstances.size() != 0) |
{ | { |
_sendEnableMessageToSubscription(mInstance, |
_sendEnableMessageToSubscription(UpdatedModuleInstance, |
pInstance, | pInstance, |
capInstances, | capInstances, |
al); | al); |