version 1.69, 2003/02/12 22:01:46
|
version 1.70, 2003/03/12 21:45:08
|
|
|
(newSubscriptions [i], indicationProviders [i].provider); | (newSubscriptions [i], indicationProviders [i].provider); |
if (_subscriptionTable.contains (tableKey)) | if (_subscriptionTable.contains (tableKey)) |
{ | { |
|
// |
|
// ATTN-CAKG-P3-20030226: Add test case |
|
// |
//cout << "case A: table contains key" << endl; | //cout << "case A: table contains key" << endl; |
// | // |
// Send Modify requests | // Send Modify requests |
|
|
// | // |
else | else |
{ | { |
|
// |
|
// ATTN-CAKG-P3-20030226: Add test case |
|
// |
//cout << "case D: classlist contains more" << endl; | //cout << "case D: classlist contains more" << endl; |
CIMNamespaceName sourceNameSpace; | CIMNamespaceName sourceNameSpace; |
_getCreateParams | _getCreateParams |
|
|
// Get property list from filter query (FROM and | // Get property list from filter query (FROM and |
// WHERE clauses) | // WHERE clauses) |
// | // |
if ((selectStatement.getSelectPropertyNameCount () > 0) |
|
|| |
|
(selectStatement.getWherePropertyNameCount () > 0)) |
|
{ |
|
propertyList = _getPropertyList (selectStatement, | propertyList = _getPropertyList (selectStatement, |
sourceNameSpace, indicationClassName); | sourceNameSpace, indicationClassName); |
} |
|
| |
// | // |
// If the subscription requires all properties, | // If the subscription requires all properties, |
|
|
// Get property list from filter query (FROM and WHERE | // Get property list from filter query (FROM and WHERE |
// clauses) | // clauses) |
// | // |
if ((selectStatement.getSelectPropertyNameCount () > 0) || |
|
(selectStatement.getWherePropertyNameCount () > 0)) |
|
{ |
|
requiredProperties = _getPropertyList (selectStatement, | requiredProperties = _getPropertyList (selectStatement, |
sourceNameSpace, indicationClassName); | sourceNameSpace, indicationClassName); |
} |
|
| |
// | // |
// If source namespace is now supported, but previously | // If source namespace is now supported, but previously |
|
|
// Get property list from filter query (FROM and WHERE | // Get property list from filter query (FROM and WHERE |
// clauses) | // clauses) |
// | // |
if ((selectStatement.getSelectPropertyNameCount () > 0) || |
|
(selectStatement.getWherePropertyNameCount () > 0)) |
|
{ |
|
propertyList = _getPropertyList (selectStatement, | propertyList = _getPropertyList (selectStatement, |
sourceNameSpace, indicationClassName); | sourceNameSpace, indicationClassName); |
} |
|
| |
// | // |
// Get indication provider class lists | // Get indication provider class lists |
|
|
// Get property list from filter query (FROM and WHERE | // Get property list from filter query (FROM and WHERE |
// clauses) | // clauses) |
// | // |
if ((selectStatement.getSelectPropertyNameCount () > 0) || |
|
(selectStatement.getWherePropertyNameCount () > 0)) |
|
{ |
|
CIMName indicationClassName = _getIndicationClassName (selectStatement, | CIMName indicationClassName = _getIndicationClassName (selectStatement, |
sourceNameSpace); | sourceNameSpace); |
propertyList = _getPropertyList (selectStatement, | propertyList = _getPropertyList (selectStatement, |
sourceNameSpace, indicationClassName); | sourceNameSpace, indicationClassName); |
} |
|
| |
// | // |
// Get condition from filter query (WHERE clause) | // Get condition from filter query (WHERE clause) |
|
|
// Get property list from filter query (FROM and WHERE | // Get property list from filter query (FROM and WHERE |
// clauses) | // clauses) |
// | // |
if ((selectStatement.getSelectPropertyNameCount () > 0) || |
|
(selectStatement.getWherePropertyNameCount () > 0)) |
|
{ |
|
propertyList = _getPropertyList (selectStatement, | propertyList = _getPropertyList (selectStatement, |
sourceNameSpace, indicationClassName); | sourceNameSpace, indicationClassName); |
} |
|
| |
// | // |
// Get indication provider class lists | // Get indication provider class lists |
|
|
| |
String IndicationService::_generateKey ( | String IndicationService::_generateKey ( |
const CIMInstance & subscription, | const CIMInstance & subscription, |
const CIMInstance provider) |
const CIMInstance & provider) |
{ | { |
String tableKey; | String tableKey; |
| |