version 1.88, 2010/06/06 17:04:16
|
version 1.88.2.4, 2013/09/19 19:11:48
|
|
|
// through the PG_ElementConformsToProfile association | // through the PG_ElementConformsToProfile association |
CIMNamespaceName opNamespace = instanceName.getNameSpace(); | CIMNamespaceName opNamespace = instanceName.getNameSpace(); |
CIMName opClass = instanceName.getClassName(); | CIMName opClass = instanceName.getClassName(); |
if(opNamespace != PEGASUS_NAMESPACENAME_INTEROP && |
if((opNamespace != PEGASUS_NAMESPACENAME_INTEROP && |
opClass != PEGASUS_CLASSNAME_PG_ELEMENTCONFORMSTOPROFILE |
opClass != PEGASUS_CLASSNAME_PG_ELEMENTCONFORMSTOPROFILE) |
// Get CIM_IndicationService instance from IndicationService. | // Get CIM_IndicationService instance from IndicationService. |
#ifdef PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT | #ifdef PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT |
|| opClass == PEGASUS_CLASSNAME_CIM_INDICATIONSERVICE | || opClass == PEGASUS_CLASSNAME_CIM_INDICATIONSERVICE |
|
|
| |
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) |
{ | { |
|
|
CIMNamespaceName opNamespace = thisTarget.getNameSpace(); | CIMNamespaceName opNamespace = thisTarget.getNameSpace(); |
CIMName opClass = thisTarget.getClassName(); | CIMName opClass = thisTarget.getClassName(); |
| |
if(opNamespace != PEGASUS_NAMESPACENAME_INTEROP && |
if((opNamespace != PEGASUS_NAMESPACENAME_INTEROP && |
opClass != PEGASUS_CLASSNAME_PG_ELEMENTCONFORMSTOPROFILE |
opClass != PEGASUS_CLASSNAME_PG_ELEMENTCONFORMSTOPROFILE) |
// Get CIM_IndicationService instance from IndicationService. | // Get CIM_IndicationService instance from IndicationService. |
#ifdef PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT | #ifdef PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT |
|| opClass == PEGASUS_CLASSNAME_CIM_INDICATIONSERVICE | || opClass == PEGASUS_CLASSNAME_CIM_INDICATIONSERVICE |
|
|
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); |