version 1.10.2.1, 2009/08/06 18:10:37
|
version 1.12.6.2, 2013/06/03 22:35:54
|
|
|
elementConformsClass)); | elementConformsClass)); |
| |
} | } |
|
|
|
#ifdef PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT |
|
// Now add the association between the Indication profile |
|
// and IndicationService |
|
if (opNamespace == PEGASUS_NAMESPACENAME_INTEROP) |
|
{ |
|
CIMObjectPath serverProfile = buildDependencyReference( |
|
hostName, |
|
buildProfileInstanceId(DMTF_NAME, "Indications", DMTF_VER_110), |
|
PEGASUS_CLASSNAME_PG_REGISTEREDPROFILE); |
|
// Retrieve the IndicationService instance |
|
Array<CIMInstance> indService = |
|
enumIndicationServiceInstances(OperationContext()); |
|
|
|
instances.append( |
|
buildElementConformsToProfile( |
|
serverProfile, |
|
indService[0].getPath(), |
|
elementConformsClass)); |
|
} |
|
#endif |
|
|
return instances; | return instances; |
} | } |
| |
|
|
Uint32 updateVer) | Uint32 updateVer) |
{ | { |
static const String SMISProfileName("SMI-S"); | static const String SMISProfileName("SMI-S"); |
static const String IndicationProfileName("Indication"); |
static const String SNIAIndicationProfileName("Indication"); |
|
static const String DMTFIndicationProfileName("Indications"); |
static const String ServerProfileName("Server"); | static const String ServerProfileName("Server"); |
static const String SoftwareProfileName("Software"); | static const String SoftwareProfileName("Software"); |
| |
|
|
{ | { |
String versionNumber; | String versionNumber; |
String profileName; | String profileName; |
Uint16 regOrgNo; |
//Can use 0 here as registered organization value of 0 is |
|
//ruled out(not specified in the CIM Schema |
|
Uint16 regOrgNo = 0; |
| |
Uint32 index = profiles[i].findProperty("RegisteredVersion"); | Uint32 index = profiles[i].findProperty("RegisteredVersion"); |
if (index != PEG_NOT_FOUND) | if (index != PEG_NOT_FOUND) |
|
|
} | } |
} | } |
| |
if (regOrg == regOrgNo) |
if ( regOrgNo != 0 && regOrg == regOrgNo) |
{ | { |
if (profileName == ServerProfileName || | if (profileName == ServerProfileName || |
profileName == IndicationProfileName || |
(regOrg == SNIA_NUM && |
|
profileName == SNIAIndicationProfileName) || |
|
(regOrg == DMTF_NUM |
|
&& profileName == DMTFIndicationProfileName) || |
profileName == SoftwareProfileName) | profileName == SoftwareProfileName) |
{ | { |
if (VersionUtil::isVersionGreaterOrEqual( | if (VersionUtil::isVersionGreaterOrEqual( |
|
|
propList.append(PROVIDERCAPABILITIES_PROPERTY_CLASSNAME); | propList.append(PROVIDERCAPABILITIES_PROPERTY_CLASSNAME); |
capabilities = repository->enumerateInstancesForClass( | capabilities = repository->enumerateInstancesForClass( |
PEGASUS_NAMESPACENAME_INTEROP, | PEGASUS_NAMESPACENAME_INTEROP, |
PEGASUS_CLASSNAME_PROVIDERCAPABILITIES, false, false, false); |
PEGASUS_CLASSNAME_PROVIDERCAPABILITIES, false, false); |
} | } |
else | else |
{ | { |
|
|
true, | true, |
false, | false, |
false, | false, |
false, |
|
CIMPropertyList(propList)); | CIMPropertyList(propList)); |
| |
CIMClass elementConformsClass = repository->getClass( | CIMClass elementConformsClass = repository->getClass( |
|
|
capPropList.append(PROVIDERCAPABILITIES_PROPERTY_CLASSNAME); | capPropList.append(PROVIDERCAPABILITIES_PROPERTY_CLASSNAME); |
capabilities = repository->enumerateInstancesForClass( | capabilities = repository->enumerateInstancesForClass( |
PEGASUS_NAMESPACENAME_INTEROP, | PEGASUS_NAMESPACENAME_INTEROP, |
PEGASUS_CLASSNAME_PROVIDERCAPABILITIES, false, false, |
PEGASUS_CLASSNAME_PROVIDERCAPABILITIES, false, false); |
false); |
|
} | } |
Array<CIMInstance> capabilitiesForProvider; | Array<CIMInstance> capabilitiesForProvider; |
Array<CIMNamespaceName> namespacesForProvider; | Array<CIMNamespaceName> namespacesForProvider; |