version 1.88.2.1, 2011/10/11 18:18:16
|
version 1.88.2.6, 2013/10/14 16:26:00
|
|
|
"%s getInstance. instanceName= %s , PropertyList= %s", | "%s getInstance. instanceName= %s , PropertyList= %s", |
thisProvider, | thisProvider, |
(const char *)instanceName.toString().getCString(), | (const char *)instanceName.toString().getCString(), |
(const char *)propertyListToString(propertyList).getCString())); |
(const char *)propertyList.toString().getCString())); |
| |
// Test if we're looking for something outside of our namespace. This will | // Test if we're looking for something outside of our namespace. This will |
// happen during associators calls from PG_RegisteredProfile instances | // happen during associators calls from PG_RegisteredProfile instances |
|
|
} | } |
} | } |
| |
PEG_METHOD_EXIT(); |
|
if (!found) | if (!found) |
{ | { |
|
PEG_METHOD_EXIT(); |
throw CIMObjectNotFoundException(instanceName.toString()); | throw CIMObjectNotFoundException(instanceName.toString()); |
} | } |
} | } |
} | } |
| |
|
PEG_METHOD_EXIT(); |
return retInstance; | return retInstance; |
} | } |
| |
Array<CIMInstance> InteropProvider::getReferencedInstances( | Array<CIMInstance> InteropProvider::getReferencedInstances( |
const Array<CIMInstance> &refs, | const Array<CIMInstance> &refs, |
const String targetRole, |
const String &targetRole, |
const OperationContext & context, | const OperationContext & context, |
const CIMPropertyList & propertyList) | const CIMPropertyList & propertyList) |
{ | { |
|
|
"%s enumerateInstances. referenc= %s , PropertyList= %s", | "%s enumerateInstances. referenc= %s , PropertyList= %s", |
thisProvider, | thisProvider, |
(const char *)className.getString().getCString(), | (const char *)className.getString().getCString(), |
(const char *)propertyListToString(propertyList).getCString())); |
(const char *)propertyList.toString().getCString())); |
| |
// Verify that ClassName is correct and get its enum value | // Verify that ClassName is correct and get its enum value |
TARGET_CLASS classEnum = translateClassInput(className); | TARGET_CLASS classEnum = translateClassInput(className); |
|
|
instances = enumServiceAffectsElementInstances(context); | instances = enumServiceAffectsElementInstances(context); |
break; | break; |
} | } |
|
case CIM_INDICATIONSERVICE: |
|
{ |
|
instances = enumIndicationServiceInstances(context); |
|
break; |
|
} |
#endif | #endif |
default: | default: |
PEG_METHOD_EXIT(); | PEG_METHOD_EXIT(); |
|
|
// that has implemented a registered profile. | // that has implemented a registered profile. |
if(opNamespace != PEGASUS_NAMESPACENAME_INTEROP || | if(opNamespace != PEGASUS_NAMESPACENAME_INTEROP || |
(originClass != PEGASUS_CLASSNAME_PG_REGISTEREDPROFILE && | (originClass != PEGASUS_CLASSNAME_PG_REGISTEREDPROFILE && |
|
#ifdef PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT |
|
originClass != PEGASUS_CLASSNAME_CIM_INDICATIONSERVICE && |
|
#endif |
originClass != PEGASUS_CLASSNAME_PG_OBJECTMANAGER )) | originClass != PEGASUS_CLASSNAME_PG_OBJECTMANAGER )) |
{ | { |
// | // |
|
|
expectedTargetRole = PROPERTY_DEPENDENT; | expectedTargetRole = PROPERTY_DEPENDENT; |
expectedOriginRole = PROPERTY_ANTECEDENT; | expectedOriginRole = PROPERTY_ANTECEDENT; |
} | } |
|
else if (originClassEnum == CIM_INDICATIONSERVICE) |
|
{ |
|
expectedTargetRole = PROPERTY_ANTECEDENT; |
|
expectedOriginRole = PROPERTY_DEPENDENT; |
|
} |
break; | break; |
#endif | #endif |
default: | default: |
|
|
CIMClass& returnedClass) | CIMClass& returnedClass) |
{ | { |
PEG_METHOD_ENTER(TRC_CONTROLPROVIDER, | PEG_METHOD_ENTER(TRC_CONTROLPROVIDER, |
"InteropProvider::_buildInstanceSkeleton()"); |
"InteropProvider::buildInstanceSkeleton()"); |
// get class with lo = false, qualifier = true classorig = true | // get class with lo = false, qualifier = true classorig = true |
returnedClass = repository->getClass(nameSpace, | returnedClass = repository->getClass(nameSpace, |
className, false, true, true); | className, false, true, true); |