Update of /cvsroot/sblim/cmpi-dns/provider/Linux_DnsNotifyACLForService In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20455/provider/Linux_DnsNotifyACLForService Added Files: CmpiLinux_DnsNotifyACLForServiceProvider.cpp Linux_DnsNotifyACLForServiceFactory.h Linux_DnsNotifyACLForServiceManualInstance.cpp Linux_DnsNotifyACLForServiceManualInstance.h setting.provider Linux_DnsNotifyACLForServiceInterface.h Linux_DnsNotifyACLForServiceRepositoryInstance.cpp Linux_DnsNotifyACLForServiceFakeFactory.cpp Linux_DnsNotifyACLForServiceRepositoryExternal.cpp Linux_DnsNotifyACLForServiceInstance.h Linux_DnsNotifyACLForServiceInstance.cpp Linux_DnsNotifyACLForServiceRepositoryExternal.h Linux_DnsNotifyACLForServiceResourceAccess.h Linux_DnsNotifyACLForServiceResourceAccess.cpp Linux_DnsNotifyACLForServiceDefaultImplementation.h Linux_DnsNotifyACLForServiceInstanceName.cpp Linux_DnsNotifyACLForServiceRepositoryInstance.h CmpiLinux_DnsNotifyACLForServiceProvider.h makefile Linux_DnsNotifyACLForServiceInstanceName.h Linux_DnsNotifyACLForServiceDefaultImplementation.cpp Linux_DnsNotifyACLForServiceFactory.cpp Linux_DnsNotifyACLForServiceExternal.h Linux_DnsNotifyACLForServiceExternal.cpp Log Message: WBEM-SMT DNS provider component. First initial upload. This module includes: - CIM model for DNS - CMPI provider for DNS - Resource Access layer for DNS --- NEW FILE: setting.provider --- #Provider configuration #CPPFLAGS.provider LDFLAGS.provider=-ldnssupport --- NEW FILE: Linux_DnsNotifyACLForServiceFakeFactory.cpp --- /** * Linux_DnsNotifyACLForServiceFakeFactory.cpp * * (C) Copyright IBM Corp. 2005 * * THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. * * You can obtain a current copy of the Common Public License from * http://www.opensource.org/licenses/cpl1.0.php * * author: Murillo Bernardes <ber...@br...> * * Contributors: * */ #include <iostream> #include <strings.h> #include "Linux_DnsNotifyACLForServiceFactory.h" using namespace std; namespace genProvider{ Linux_DnsNotifyACLForServiceInterface* Linux_DnsNotifyACLForServiceFactory::getImplementation(){ cout<<"ERROR: incomplete support library is being used"<<endl; cout<<" in provider from class Linux_DnsNotifyACLForService"<<endl; cout<<" Use the link-install options for the makefile"<<endl; return 0; }; } --- NEW FILE: Linux_DnsNotifyACLForServiceResourceAccess.h --- /** * Linux_DnsNotifyACLForServiceResourceAccess.h * * (C) Copyright IBM Corp. 2005 * * THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. * * You can obtain a current copy of the Common Public License from * http://www.opensource.org/licenses/cpl1.0.php * * author: Murillo Bernardes <ber...@br...> * * Contributors: * */ #ifndef Linux_DnsNotifyACLForServiceResourceAccess_h #define Linux_DnsNotifyACLForServiceResourceAccess_h #include "Linux_DnsNotifyACLForServiceInstanceName.h" #include "Linux_DnsNotifyACLForServiceManualInstance.h" #include "CmpiObjectPath.h" #include "CmpiInstance.h" #include "CmpiDateTime.h" #include "CmpiBroker.h" #include "Linux_DnsServiceInstance.h" #include "Linux_DnsAddressMatchListInstance.h" #include "Linux_DnsServiceExternal.h" #include "Linux_DnsAddressMatchListExternal.h" #include "Linux_DnsNotifyACLForServiceDefaultImplementation.h" #include <string> #include <list> using namespace std; #include "dnssupport.h" #include "defaultvalues.h" #include "DnsArray.h" #include "DnsValueMap.h" namespace genProvider { class Linux_DnsNotifyACLForServiceResourceAccess: public Linux_DnsNotifyACLForServiceDefaultImplementation { public: /*Linux_DnsNotifyACLForServiceResourceAccess(); */ virtual ~Linux_DnsNotifyACLForServiceResourceAccess() ; /* intrinsic methods */ virtual void enumInstanceNames( const CmpiContext& ctx, const CmpiBroker &mbp, const char *nsp, Linux_DnsNotifyACLForServiceInstanceNameEnumeration& instnames); virtual void enumInstances( const CmpiContext& ctx, const CmpiBroker &mbp, const char *nsp, const char* *properties, Linux_DnsNotifyACLForServiceManualInstanceEnumeration& instances); virtual Linux_DnsNotifyACLForServiceManualInstance getInstance( const CmpiContext& ctx, const CmpiBroker &mbp, const char* *properties, const Linux_DnsNotifyACLForServiceInstanceName&); /* virtual void setInstance( const CmpiContext& ctx, const CmpiBroker &mbp, const char* *properties, const Linux_DnsNotifyACLForServiceManualInstance&); */ virtual void createInstance( const CmpiContext& ctx, const CmpiBroker &mbp, const Linux_DnsNotifyACLForServiceManualInstance&); virtual void deleteInstance( const CmpiContext& ctx, const CmpiBroker &mbp, const Linux_DnsNotifyACLForServiceInstanceName&); /* Association Interface */ virtual void referencesElement( const CmpiContext& ctx, const CmpiBroker &mbp, const char *nsp, const char** properties, const Linux_DnsAddressMatchListInstanceName& sourceInst, Linux_DnsNotifyACLForServiceManualInstanceEnumeration& instances); virtual void referencesSetting( const CmpiContext& ctx, const CmpiBroker &mbp, const char *nsp, const char** properties, const Linux_DnsServiceInstanceName& sourceInst, Linux_DnsNotifyACLForServiceManualInstanceEnumeration& instances); virtual void associatorsElement( const CmpiContext& ctx, const CmpiBroker &mbp, const char *nsp, const char** properties, const Linux_DnsAddressMatchListInstanceName& sourceInst, Linux_DnsServiceInstanceEnumeration& instances); virtual void associatorsSetting( const CmpiContext& ctx, const CmpiBroker &mbp, const char *nsp, const char** properties, const Linux_DnsServiceInstanceName& sourceInst, Linux_DnsAddressMatchListInstanceEnumeration& instances); /* extrinsic methods */ }; } #endif --- NEW FILE: makefile --- include ../setting.cmpi include setting.provider CPPFLAGS=$(CPPFLAGS.provider) -I. -I$(CIMOMINC) -I$(COMMONINC) -I$(CIMOMINC)/cpp -I../CIM_CollectionOfMSEs -I../Linux_DnsService -I../Linux_DnsAddressMatchList -I../CIM_ConcreteJob -I../CIM_ManagedSystemElement -D_COMPILE_UNIX -DCMPI_STANDALONE CXXFLAGS=-Wall -g -fPIC -fno-implicit-templates LDFLAGS=-L. -L$(COMMONLIB) -L$(COMMONLIB_OUT) -shared -lLinux_DnsServiceSupport -lLinux_DnsAddressMatchListSupport -lcmpiCppImpl -lIBM_ProviderTooling OBJECTS=Linux_DnsNotifyACLForServiceInstanceName.o \ Linux_DnsNotifyACLForServiceInstance.o \ Linux_DnsNotifyACLForServiceExternal.o \ Linux_DnsNotifyACLForServiceRepositoryInstance.o \ Linux_DnsNotifyACLForServiceRepositoryExternal.o \ Linux_DnsNotifyACLForServiceManualInstance.o \ Linux_DnsNotifyACLForServiceDefaultImplementation.o FAKEFACTORY= Linux_DnsNotifyACLForServiceFakeFactory.o NORMALFACTORY= Linux_DnsNotifyACLForServiceFactory.o RESOURCEOBJECT= Linux_DnsNotifyACLForServiceResourceAccess.o PROVIDEROBJECT=CmpiLinux_DnsNotifyACLForServiceProvider.o all: testfiles preinstall install buildall: clean all #------------------------------------------------------------------------------# compile: $(OBJECTS) $(FAKEFACTORY) $(NORMALFACTORY) $(RESOURCEOBJECT) $(PROVIDEROBJECT) #------------------------------------------------------------------------------# prelink: $(OBJECTS) $(FAKEFACTORY) $(LINK.cpp) -o libLinux_DnsNotifyACLForServiceSupport.so $^ link: deleteFakeLib \ libLinux_DnsNotifyACLForServiceSupport.so \ libLinux_DnsNotifyACLForService.so libLinux_DnsNotifyACLForServiceSupport.so: LDFLAGS+=$(LDFLAGS.provider) libLinux_DnsNotifyACLForServiceSupport.so: $(OBJECTS) $(NORMALFACTORY) $(RESOURCEOBJECT) $(PROVIDEROBJECT) $(LINK.cpp) -o $@ $^ libLinux_DnsNotifyACLForService.so: LDFLAGS+=-lLinux_DnsNotifyACLForServiceSupport libLinux_DnsNotifyACLForService.so: $(PROVIDEROBJECT) $(LINK.cpp) -o $@ $^ deleteFakeLib: $(RM) *.so #------------------------------------------------------------------------------# preinstall: prelink install libLinux_DnsNotifyACLForServiceSupport.so $(COMMONLIB_OUT) #------------------------------------------------------------------------------# install: link install libLinux_DnsNotifyACLForServiceSupport.so $(COMMONLIB_OUT) install libLinux_DnsNotifyACLForService.so $(CIMOMLIB_OUT) # install -m 644 Linux_DnsNotifyACLForService*.h $(COMMONINC) $(MAKE) -C mof -f $(MOFMAKEFILE) install #------------------------------------------------------------------------------# testfiles: @[ -d $(CIMOMLIB) ] || ( echo directory $(CIMOMLIB) does not exist && false) @[ -d $(CIMOMINC) ] || ( echo directory $(CIMOMINC) does not exist - please create manually && false) @[ -d $(CIMOMMOF) ] || ( echo directory $(CIMOMMOF) does not exist - please create manually && false) @[ -d $(COMMONINC) ] || ( echo directory $(COMMONINC) does not exist - please create manually && false) @[ -d $(COMMONLIB) ] || ( echo directory $(COMMONLIB) does not exist - please create manually && false) #------------------------------------------------------------------------------# clean: $(RM) *.so *.o *~ #------------------------------------------------------------------------------# uninstall: $(MAKE) -C mof -f $(MOFMAKEFILE) uninstall; # $(RM) $(COMMONINC)/Linux_DnsNotifyACLForService*.h \ $(RM) $(COMMONLIB)/libLinux_DnsNotifyACLForServiceSupport.so \ $(RM) $(CIMOMLIB)/libLinux_DnsNotifyACLForService.so --- NEW FILE: Linux_DnsNotifyACLForServiceFactory.cpp --- /** * Linux_DnsNotifyACLForServiceFactory.cpp * * (C) Copyright IBM Corp. 2005 * * THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. * * You can obtain a current copy of the Common Public License from * http://www.opensource.org/licenses/cpl1.0.php * * author: Murillo Bernardes <ber...@br...> * * Contributors: * */ #include "Linux_DnsNotifyACLForServiceFactory.h" #include "Linux_DnsNotifyACLForServiceResourceAccess.h" namespace genProvider{ Linux_DnsNotifyACLForServiceInterface* Linux_DnsNotifyACLForServiceFactory::getImplementation(){ return (new Linux_DnsNotifyACLForServiceResourceAccess()); }; } --- NEW FILE: Linux_DnsNotifyACLForServiceExternal.cpp --- /** * Linux_DnsNotifyACLForServiceExternal.cpp * * (C) Copyright IBM Corp. 2005 * * THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. * * You can obtain a current copy of the Common Public License from * http://www.opensource.org/licenses/cpl1.0.php * * author: Murillo Bernardes <ber...@br...> * * Contributors: * */ #include "Linux_DnsNotifyACLForServiceExternal.h" namespace genProvider{ Linux_DnsNotifyACLForServiceExternal::Linux_DnsNotifyACLForServiceExternal( const CmpiBroker& brkr, const CmpiContext& ctx ) : broker(brkr), context(ctx) {}; Linux_DnsNotifyACLForServiceExternal:: ~Linux_DnsNotifyACLForServiceExternal(){}; void Linux_DnsNotifyACLForServiceExternal::enumInstanceNames( const char *nsp, Linux_DnsNotifyACLForServiceInstanceNameEnumeration& instnames) { CmpiObjectPath op(nsp,"Linux_DnsNotifyACLForService"); CmpiEnumeration en=broker.enumInstanceNames(context,op); while(en.hasNext()) { CmpiObjectPath opi = en.getNext(); Linux_DnsNotifyACLForServiceInstanceName iname(opi); instnames.addElement(iname); } }; void Linux_DnsNotifyACLForServiceExternal::enumInstances( const char *nsp, const char* *properties, Linux_DnsNotifyACLForServiceInstanceEnumeration& instances) { CmpiObjectPath op(nsp,"Linux_DnsNotifyACLForService"); CmpiEnumeration en=broker.enumInstances(context,op,properties); while(en.hasNext()) { CmpiInstance inst = en.getNext(); Linux_DnsNotifyACLForServiceInstance instance(inst,nsp); instances.addElement(instance); } }; Linux_DnsNotifyACLForServiceInstance Linux_DnsNotifyACLForServiceExternal::getInstance( const char* *properties, const Linux_DnsNotifyACLForServiceInstanceName& instanceName) { CmpiObjectPath op=instanceName.getObjectPath(); CmpiInstance inst=broker.getInstance(context,op,properties); return Linux_DnsNotifyACLForServiceInstance(inst,instanceName.getNamespace()); } void Linux_DnsNotifyACLForServiceExternal::setInstance( const char* *properties, const Linux_DnsNotifyACLForServiceInstance& instance){ CmpiObjectPath op=instance.getInstanceName().getObjectPath(); CmpiInstance inst=instance.getCmpiInstance(); broker.setInstance(context,op,inst,properties); } void Linux_DnsNotifyACLForServiceExternal::createInstance( const Linux_DnsNotifyACLForServiceInstance& instance){ CmpiObjectPath op=instance.getInstanceName().getObjectPath(); CmpiInstance inst=instance.getCmpiInstance(); broker.createInstance(context,op,inst); } void Linux_DnsNotifyACLForServiceExternal::deleteInstance( const Linux_DnsNotifyACLForServiceInstanceName& instanceName){ CmpiObjectPath op=instanceName.getObjectPath(); broker.deleteInstance(context,op); } //Reference calls void Linux_DnsNotifyACLForServiceExternal:: referencesElement( const char *nsp, const char** properties, const Linux_DnsAddressMatchListInstanceName& sourceInst, Linux_DnsNotifyACLForServiceInstanceEnumeration& instances){ CmpiObjectPath op=sourceInst.getObjectPath(); CmpiEnumeration en=broker.references (context, op, "Linux_DnsAddressMatchList", "Element", properties); while(en.hasNext()) { CmpiInstance inst = en.getNext(); Linux_DnsNotifyACLForServiceInstance instance(inst,nsp); instances.addElement(instance); } } void Linux_DnsNotifyACLForServiceExternal:: referenceNamesElement( const char *nsp, const Linux_DnsAddressMatchListInstanceName& sourceInst, Linux_DnsNotifyACLForServiceInstanceNameEnumeration& instanceNames){ CmpiObjectPath op=sourceInst.getObjectPath(); CmpiEnumeration en=broker.referenceNames (context, op, "Linux_DnsAddressMatchList", "Element"); while(en.hasNext()) { CmpiObjectPath instName = en.getNext(); Linux_DnsNotifyACLForServiceInstanceName instanceName(instName); instanceNames.addElement(instanceName); } } void Linux_DnsNotifyACLForServiceExternal:: referencesSetting( const char *nsp, const char** properties, const Linux_DnsServiceInstanceName& sourceInst, Linux_DnsNotifyACLForServiceInstanceEnumeration& instances){ CmpiObjectPath op=sourceInst.getObjectPath(); CmpiEnumeration en=broker.references (context, op, "Linux_DnsService", "Setting", properties); while(en.hasNext()) { CmpiInstance inst = en.getNext(); Linux_DnsNotifyACLForServiceInstance instance(inst,nsp); instances.addElement(instance); } } void Linux_DnsNotifyACLForServiceExternal:: referenceNamesSetting( const char *nsp, const Linux_DnsServiceInstanceName& sourceInst, Linux_DnsNotifyACLForServiceInstanceNameEnumeration& instanceNames){ CmpiObjectPath op=sourceInst.getObjectPath(); CmpiEnumeration en=broker.referenceNames (context, op, "Linux_DnsService", "Setting"); while(en.hasNext()) { CmpiObjectPath instName = en.getNext(); Linux_DnsNotifyACLForServiceInstanceName instanceName(instName); instanceNames.addElement(instanceName); } } //Associator calls void Linux_DnsNotifyACLForServiceExternal:: associatorsElement( const char *nsp, const char** properties, const Linux_DnsAddressMatchListInstanceName& sourceInst, Linux_DnsServiceInstanceEnumeration& instances){ CmpiObjectPath op=sourceInst.getObjectPath(); CmpiEnumeration en=broker.associators (context,op,0,0,0,0,properties); while(en.hasNext()) { CmpiInstance inst = en.getNext(); Linux_DnsServiceInstance instance(inst,nsp); instances.addElement(instance); } } void Linux_DnsNotifyACLForServiceExternal:: associatorNamesElement( const char *nsp, const Linux_DnsAddressMatchListInstanceName& sourceInst, Linux_DnsServiceInstanceNameEnumeration& instanceNames){ CmpiObjectPath op=sourceInst.getObjectPath(); CmpiEnumeration en=broker.associatorNames (context,op,0,0,0,0); while(en.hasNext()) { CmpiObjectPath instName = en.getNext(); Linux_DnsServiceInstanceName instanceName(instName); instanceNames.addElement(instanceName); } } void Linux_DnsNotifyACLForServiceExternal:: associatorsSetting( const char *nsp, const char** properties, const Linux_DnsServiceInstanceName& sourceInst, Linux_DnsAddressMatchListInstanceEnumeration& instances){ CmpiObjectPath op=sourceInst.getObjectPath(); CmpiEnumeration en=broker.associators (context,op,0,0,0,0,properties); while(en.hasNext()) { CmpiInstance inst = en.getNext(); Linux_DnsAddressMatchListInstance instance(inst,nsp); instances.addElement(instance); } } void Linux_DnsNotifyACLForServiceExternal:: associatorNamesSetting( const char *nsp, const Linux_DnsServiceInstanceName& sourceInst, Linux_DnsAddressMatchListInstanceNameEnumeration& instanceNames){ CmpiObjectPath op=sourceInst.getObjectPath(); CmpiEnumeration en=broker.associatorNames (context,op,0,0,0,0); while(en.hasNext()) { CmpiObjectPath instName = en.getNext(); Linux_DnsAddressMatchListInstanceName instanceName(instName); instanceNames.addElement(instanceName); } } } --- NEW FILE: Linux_DnsNotifyACLForServiceExternal.h --- /** * Linux_DnsNotifyACLForServiceExternal.h * * (C) Copyright IBM Corp. 2005 * * THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. * * You can obtain a current copy of the Common Public License from * http://www.opensource.org/licenses/cpl1.0.php * * author: Murillo Bernardes <ber...@br...> * * Contributors: * */ #ifndef Linux_DnsNotifyACLForServiceExternal_h #define Linux_DnsNotifyACLForServiceExternal_h #include "Linux_DnsNotifyACLForServiceInstance.h" #include "Linux_DnsServiceInstance.h" #include "Linux_DnsAddressMatchListInstance.h" #include "CmpiBroker.h" namespace genProvider { class Linux_DnsNotifyACLForServiceExternal { public: Linux_DnsNotifyACLForServiceExternal( const CmpiBroker& brkr, const CmpiContext& ctx); virtual ~Linux_DnsNotifyACLForServiceExternal(); virtual void enumInstanceNames( const char *nsp, Linux_DnsNotifyACLForServiceInstanceNameEnumeration&); virtual void enumInstances( const char *nsp, const char* *properties, Linux_DnsNotifyACLForServiceInstanceEnumeration&); virtual Linux_DnsNotifyACLForServiceInstance getInstance( const char* *properties, const Linux_DnsNotifyACLForServiceInstanceName&); virtual void setInstance( const char* *properties, const Linux_DnsNotifyACLForServiceInstance&); virtual void createInstance( const Linux_DnsNotifyACLForServiceInstance&); virtual void deleteInstance( const Linux_DnsNotifyACLForServiceInstanceName&); //association calls void referencesElement( const char *nsp, const char** properties, const Linux_DnsAddressMatchListInstanceName& sourceInst, Linux_DnsNotifyACLForServiceInstanceEnumeration& instances); void referenceNamesElement( const char *nsp, const Linux_DnsAddressMatchListInstanceName& sourceInst, Linux_DnsNotifyACLForServiceInstanceNameEnumeration& instanceNames); void referencesSetting( const char *nsp, const char** properties, const Linux_DnsServiceInstanceName& sourceInst, Linux_DnsNotifyACLForServiceInstanceEnumeration& instances); void referenceNamesSetting( const char *nsp, const Linux_DnsServiceInstanceName& sourceInst, Linux_DnsNotifyACLForServiceInstanceNameEnumeration& instanceNames); void associatorsElement( const char *nsp, const char** properties, const Linux_DnsAddressMatchListInstanceName& sourceInst, Linux_DnsServiceInstanceEnumeration& instances); void associatorNamesElement( const char *nsp, const Linux_DnsAddressMatchListInstanceName& sourceInst, Linux_DnsServiceInstanceNameEnumeration& instanceNames); void associatorsSetting( const char *nsp, const char** properties, const Linux_DnsServiceInstanceName& sourceInst, Linux_DnsAddressMatchListInstanceEnumeration& instances); void associatorNamesSetting( const char *nsp, const Linux_DnsServiceInstanceName& sourceInst, Linux_DnsAddressMatchListInstanceNameEnumeration& instanceNames); private: CmpiBroker broker; CmpiContext context; }; } #endif --- NEW FILE: Linux_DnsNotifyACLForServiceDefaultImplementation.cpp --- /** * Linux_DnsNotifyACLForServiceDefaultImplementation.cpp * * (C) Copyright IBM Corp. 2005 * * THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. * * You can obtain a current copy of the Common Public License from * http://www.opensource.org/licenses/cpl1.0.php * * author: Murillo Bernardes <ber...@br...> * * Contributors: * */ #include "Linux_DnsNotifyACLForServiceDefaultImplementation.h" #include <iostream> using namespace std; namespace genProvider { /* intrinsic methods */ void Linux_DnsNotifyACLForServiceDefaultImplementation::enumInstanceNames( const CmpiContext& ctx, const CmpiBroker &mbp, const char *nsp, Linux_DnsNotifyACLForServiceInstanceNameEnumeration& instnames){ cout<<"enumInstances not supported for Linux_DnsNotifyACLForService"<<endl; throw CmpiErrorFormater::getErrorException( CmpiErrorFormater::NOT_IMPLEMENTED, "enumInstances not implemented for Linux_DnsNotifyACLForService"); } void Linux_DnsNotifyACLForServiceDefaultImplementation::enumInstances( const CmpiContext& ctx, const CmpiBroker &mbp, const char *nsp, const char* *properties, Linux_DnsNotifyACLForServiceManualInstanceEnumeration& instances){ cout<<"Using default enumInstances implementation for Linux_DnsNotifyACLForService"<<endl; cout<<"LetŽs get the instanceNames"<<endl; Linux_DnsNotifyACLForServiceInstanceNameEnumeration namesEnumeration; enumInstanceNames(ctx, mbp,nsp,namesEnumeration); cout<<"Getting each instance"<<endl; while(namesEnumeration.hasNext()){ Linux_DnsNotifyACLForServiceInstanceName name= namesEnumeration.getNext(); cout<<"Getting an instance for instanceName"<<endl; Linux_DnsNotifyACLForServiceManualInstance instance= getInstance(ctx, mbp, properties, name); cout<<"adding instance to enum"<<endl; instances.addElement(instance); cout<<"Added!"<<endl; }; } Linux_DnsNotifyACLForServiceManualInstance Linux_DnsNotifyACLForServiceDefaultImplementation::getInstance( const CmpiContext& ctx, const CmpiBroker &mbp, const char* *properties, const Linux_DnsNotifyACLForServiceInstanceName&){ cout<<"getInstance not supported for Linux_DnsNotifyACLForService"<<endl; throw CmpiErrorFormater::getErrorException( CmpiErrorFormater::NOT_IMPLEMENTED, "getInstance not implemented for Linux_DnsNotifyACLForService"); } void Linux_DnsNotifyACLForServiceDefaultImplementation::setInstance( const CmpiContext& ctx, const CmpiBroker &mbp, const char* *properties, const Linux_DnsNotifyACLForServiceManualInstance&){ cout<<"setInstance not supported for Linux_DnsNotifyACLForService"<<endl; throw CmpiErrorFormater::getErrorException( CmpiErrorFormater::NOT_IMPLEMENTED, "setInstance not implemented for Linux_DnsNotifyACLForService"); } void Linux_DnsNotifyACLForServiceDefaultImplementation:: createInstance(const CmpiContext& ctx, const CmpiBroker &mbp, const Linux_DnsNotifyACLForServiceManualInstance&){ cout<<"createInstance not supported for Linux_DnsNotifyACLForService"<<endl; throw CmpiErrorFormater::getErrorException( CmpiErrorFormater::NOT_IMPLEMENTED, "createInstance not implemented for Linux_DnsNotifyACLForService"); } void Linux_DnsNotifyACLForServiceDefaultImplementation:: deleteInstance(const CmpiContext& ctx, const CmpiBroker &mbp, const Linux_DnsNotifyACLForServiceInstanceName&){ cout<<"deleteInstance not supported for Linux_DnsNotifyACLForService"<<endl; throw CmpiErrorFormater::getErrorException( CmpiErrorFormater::NOT_IMPLEMENTED, "deleteInstance not implemented for Linux_DnsNotifyACLForService"); } /* Association Interface */ void Linux_DnsNotifyACLForServiceDefaultImplementation:: referencesElement( const CmpiContext& ctx, const CmpiBroker &mbp, const char *nsp, const char** properties, const Linux_DnsAddressMatchListInstanceName& sourceInst, Linux_DnsNotifyACLForServiceManualInstanceEnumeration& instances){ throw CmpiErrorFormater::getErrorException( CmpiErrorFormater::NOT_IMPLEMENTED, "getElementReferences between Linux_DnsService and Linux_DnsAddressMatchList not implemented for Linux_DnsNotifyACLForService"); } void Linux_DnsNotifyACLForServiceDefaultImplementation:: referencesSetting( const CmpiContext& ctx, const CmpiBroker &mbp, const char *nsp, const char** properties, const Linux_DnsServiceInstanceName& sourceInst, Linux_DnsNotifyACLForServiceManualInstanceEnumeration& instances){ throw CmpiErrorFormater::getErrorException( CmpiErrorFormater::NOT_IMPLEMENTED, "getSettingReferences between Linux_DnsService and Linux_DnsAddressMatchList not implemented for Linux_DnsNotifyACLForService"); } void Linux_DnsNotifyACLForServiceDefaultImplementation:: associatorsElement( const CmpiContext& ctx, const CmpiBroker &mbp, const char *nsp, const char** properties, const Linux_DnsAddressMatchListInstanceName& sourceInst, Linux_DnsServiceInstanceEnumeration& instances){ std::cout<<"Linux_DnsNotifyACLForService : associatorsLinux_DnsService() ... returns one instance"<<std::endl; Linux_DnsNotifyACLForServiceManualInstanceEnumeration enumeration; referencesElement(ctx, mbp, sourceInst.getNamespace(), properties, sourceInst, enumeration); Linux_DnsServiceExternal external(mbp, ctx); while(enumeration.hasNext()) { const Linux_DnsNotifyACLForServiceManualInstance instance = enumeration.getNext(); const Linux_DnsNotifyACLForServiceInstanceName instanceName = instance.getInstanceName(); const Linux_DnsServiceInstanceName Element = instanceName.getElement(); Linux_DnsServiceInstance inst = external.getInstance(properties,Element); instances.addElement(inst); } } void Linux_DnsNotifyACLForServiceDefaultImplementation:: associatorsSetting( const CmpiContext& ctx, const CmpiBroker &mbp, const char *nsp, const char** properties, const Linux_DnsServiceInstanceName& sourceInst, Linux_DnsAddressMatchListInstanceEnumeration& instances){ std::cout<<"Linux_DnsNotifyACLForService : associatorsLinux_DnsAddressMatchList() ... returns one instance"<<std::endl; Linux_DnsNotifyACLForServiceManualInstanceEnumeration enumeration; referencesSetting(ctx, mbp, sourceInst.getNamespace(), properties, sourceInst, enumeration); Linux_DnsAddressMatchListExternal external(mbp, ctx); while(enumeration.hasNext()) { const Linux_DnsNotifyACLForServiceManualInstance instance = enumeration.getNext(); const Linux_DnsNotifyACLForServiceInstanceName instanceName = instance.getInstanceName(); const Linux_DnsAddressMatchListInstanceName Setting = instanceName.getSetting(); Linux_DnsAddressMatchListInstance inst = external.getInstance(properties,Setting); instances.addElement(inst); } } /* extrinsic methods */ } --- NEW FILE: Linux_DnsNotifyACLForServiceInstance.cpp --- /** * Linux_DnsNotifyACLForServiceInstance.cpp * * (C) Copyright IBM Corp. 2005 * * THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. * * You can obtain a current copy of the Common Public License from * http://www.opensource.org/licenses/cpl1.0.php * * author: Murillo Bernardes <ber...@br...> * * Contributors: * */ #include "Linux_DnsNotifyACLForServiceInstance.h" #include "CmpiData.h" #include "CmpiSt... [truncated message content] |