private CIMObjectPath createFilter(CimManagedFilterInfo filterInfo) throws WBEMException {
  StringBuilder filterNameBuilder=new StringBuilder();
  filterNameBuilder.append(_subscriptionsIdentifier);
  filterNameBuilder.append(CimConstants.PATH_NAME_DELIMITER);
  filterNameBuilder.append(filterInfo.getName());
  String filterName=filterNameBuilder.toString();
  String implNS=_connection.getImplNamespace();
  CIMProperty<?> nameProperty=new CIMProperty<String>(CimConstants.NAME_KEY,CIMDataType.STRING_T,filterName);
  CIMProperty<?> srcNamespaceProp=new CIMProperty<String>(CimConstants.FILTER_PROP_SRC_NAMESPACE,CIMDataType.STRING_T,implNS);
  CIMProperty<?> srcNamespacesProp=new CIMProperty<String[]>(CimConstants.FILTER_PROP_SRC_NAMESPACES,CIMDataType.STRING_ARRAY_T,new String[]{implNS});
  CIMProperty<?> queryLangProp=new CIMProperty<String>(CimConstants.FILTER_PROP_QUERY_LANGUAGE,CIMDataType.STRING_T,filterInfo.getQueryLanguage());
  CIMProperty<?> queryProp=new CIMProperty<String>(CimConstants.FILTER_PROP_QUERY,CIMDataType.STRING_T,filterInfo.getQuery());
  CIMProperty<?>[] filterProperties=new CIMProperty[]{nameProperty,srcNamespaceProp,srcNamespacesProp,queryLangProp,queryProp};
  CIMObjectPath filterPath=createInstance(CimConstants.CIM_FILTER_NAME,filterName,filterProperties);
  _filterPaths.add(filterPath);
  return filterPath;
}

private CIMObjectPath createFilter ( CimManagedFilterInfo filterInfo ) throws WBEMException { StringBuilder filterNameBuilder = new StringBuilder ( ) ; filterNameBuilder . append ( _subscriptionsIdentifier ) ; filterNameBuilder . append ( CimConstants . PATH_NAME_DELIMITER ) ; filterNameBuilder . append ( filterInfo . getName ( ) ) ; String filterName = filterNameBuilder . toString ( ) ; String implNS = _connection . getImplNamespace ( ) ; CIMProperty < ? > nameProperty = new CIMProperty < String > ( CimConstants . NAME_KEY , CIMDataType . STRING_T , filterName ) ; CIMProperty < ? > srcNamespaceProp = new CIMProperty < String > ( CimConstants . FILTER_PROP_SRC_NAMESPACE , CIMDataType . STRING_T , implNS ) ; CIMProperty < ? > srcNamespacesProp = new CIMProperty < String [ ] > ( CimConstants . FILTER_PROP_SRC_NAMESPACES , CIMDataType . STRING_ARRAY_T , new String [ ] { implNS } ) ; CIMProperty < ? > queryLangProp = new CIMProperty < String > ( CimConstants . FILTER_PROP_QUERY_LANGUAGE , CIMDataType . STRING_T , filterInfo . getQueryLanguage ( ) ) ; CIMProperty < ? > queryProp = new CIMProperty < String > ( CimConstants . FILTER_PROP_QUERY , CIMDataType . STRING_T , filterInfo . getQuery ( ) ) ; CIMProperty < ? > [ ] filterProperties = new CIMProperty [ ] { nameProperty , srcNamespaceProp , srcNamespacesProp , queryLangProp , queryProp } ; CIMObjectPath filterPath = createInstance ( CimConstants . CIM_FILTER_NAME , filterName , filterProperties ) ; _filterPaths . add ( filterPath ) ; return filterPath ; }
creates an indication filter in the cimom for the given configuration .
