Changeset 1165

Show
Ignore:
Timestamp:
11/20/08 15:24:33 (2 months ago)
Author:
tex
Message:

Update and conformed to DMTF profile 1.0.0

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Linux_Management_Providers/Base_Server/trunk

    • Property svn:ignore changed from
      autom4te.cache
      aclocal.m4
      config.h.in
      configure
      to
      autom4te.cache
      aclocal.m4
      config.h.in
      configure
      config.h
      config.guess
      config.status
      config.sub
      depcomp
      install-sh
      libtool
      ltmain.sh
      Makefile
      Makefile.in
      missing
      stamp-h1
      .project
      .cproject
  • Linux_Management_Providers/Base_Server/trunk/Common

    • Property svn:ignore set to
      Makefile
      Makefile.in
  • Linux_Management_Providers/Base_Server/trunk/Common/Base_Server_Common.cpp

    r370 r1165  
    22# Linux Management Providers (LMP), Base_Server provider package 
    33# Copyright (C) 2007 Ilsoo Byun, ETRI <widepis@etri.re.kr ,widepis@empal.com> 
    4 #  
     4# 
    55# This program is being developed under the "OpenDRIM" project. 
    66# The "OpenDRIM" project web page: www.opendrim.org 
    77# The "OpenDRIM" project mailing list: opendrim@googlegroups.com 
    8 #  
     8# 
    99# This program is free software; you can redistribute it and/or 
    1010# modify it under the terms of the GNU General Public License 
    1111# as published by the Free Software Foundation; version 2 
    1212# of the License. 
    13 #  
     13# 
    1414# This program is distributed in the hope that it will be useful, 
    1515# but WITHOUT ANY WARRANTY; without even the implied warranty of 
    1616# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1717# GNU General Public License for more details. 
    18 #  
     18# 
    1919# You should have received a copy of the GNU General Public License 
    2020# along with this program; if not, write to the Free Software 
     
    2525# To contributors, please leave your contact information in this section 
    2626# AND comment your changes in the source code. 
    27 #  
    28 # Modified by <Author(s)>, <Affiliation>, <Year
     27# 
     28# Modified by 2008 Guillaume BOTTEX, ETRI <guillaumebottex@etri.re.kr, guillaumebottex@gmail.com
    2929###############################################################################*/ 
    3030 
    3131#include "Base_Server_Common.h" 
     32 
     33int CF_getComputerSystemOtherIdentifyingInfo(string& otherIdentifyingInfo,string& errorMessage) 
     34{ 
     35        system_information system_info; 
     36        vector<string> dmi_strings; 
     37        UUID uuidTest; 
     38        string serial_number; 
     39 
     40        // The otherIdentifyingInfo is set to the system serial number as advised in the CIM Documentation 
     41        CF_assert(SMBIOS_getSystemInformation(system_info,dmi_strings,errorMessage)); 
     42 
     43        memset(&uuidTest,0xFF,sizeof(UUID)); 
     44 
     45        serial_number=CF_trimText(dmi_strings[system_info.serial_number]); 
     46 
     47        if(!serial_number.empty()) 
     48                otherIdentifyingInfo=serial_number; 
     49        else 
     50                otherIdentifyingInfo="computer-system-physical-package"; 
     51 
     52        return OK; 
     53} 
     54 
  • Linux_Management_Providers/Base_Server/trunk/Common/Base_Server_Common.h

    r370 r1165  
    22# Linux Management Providers (LMP), Base_Server provider package 
    33# Copyright (C) 2007 Ilsoo Byun, ETRI <widepis@etri.re.kr ,widepis@empal.com> 
    4 #  
     4# 
    55# This program is being developed under the "OpenDRIM" project. 
    66# The "OpenDRIM" project web page: www.opendrim.org 
    77# The "OpenDRIM" project mailing list: opendrim@googlegroups.com 
    8 #  
     8# 
    99# This program is free software; you can redistribute it and/or 
    1010# modify it under the terms of the GNU General Public License 
    1111# as published by the Free Software Foundation; version 2 
    1212# of the License. 
    13 #  
     13# 
    1414# This program is distributed in the hope that it will be useful, 
    1515# but WITHOUT ANY WARRANTY; without even the implied warranty of 
    1616# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1717# GNU General Public License for more details. 
    18 #  
     18# 
    1919# You should have received a copy of the GNU General Public License 
    2020# along with this program; if not, write to the Free Software 
     
    2525# To contributors, please leave your contact information in this section 
    2626# AND comment your changes in the source code. 
    27 #  
    28 # Modified by <Author(s)>, <Affiliation>, <Year
     27# 
     28# Modified by 2008 Guillaume BOTTEX, ETRI <guillaumebottex@etri.re.kr, guillaumebottex@gmail.com
    2929###############################################################################*/ 
    3030 
     
    3333 
    3434#include <Common.h> 
     35#include <SMBIOS.h> 
     36 
     37// Define EnabledState Constants 
     38#define ES_UNKNOWN                      0 
     39#define ES_ENABLE                       2 
     40#define ES_DISABLE                      3 
     41#define ES_NOT_APPLICABLE       5 
     42#define ES_ENABLED_OFFLINE      6 
     43 
     44// Define RequestedState Constants 
     45#define RS_UNKNOWN                      0 
     46#define RS_NO_CHANGE            5 
     47#define RS_NOT_APPLICABLE       12 
     48 
     49// Define Dedicated Constants 
     50#define D_UNKNOWN                       1 
     51#define D_OTHER                         2 
     52 
     53// Define HealthState Constants 
     54#define HS_UNKNOWN                      0 
     55#define HS_OK                           5 
     56 
     57// Define OperationalStatus Constants 
     58#define OS_UNKNOW                       0 
     59#define OS_OK                           2 
     60#define OS_IN_SERVICE           11 
     61 
     62int CF_getComputerSystemOtherIdentifyingInfo(string& otherIdentifyingInfo,string& errorMessage); 
    3563 
    3664#endif /*BASE_SERVER_COMMON_H_*/ 
  • Linux_Management_Providers/Base_Server/trunk/Common/Makefile.am

    r766 r1165  
    2626# AND comment your changes in the source code. 
    2727#  
    28 # Modified by <Author(s)>, <Affiliation>, <Year
     28# Modified by 2008 Guillaume BOTTEX, ETRI <guillaumebottex@etri.re.kr, guillaumebottex@gmail.com
    2929################################################################################ 
    3030 
     
    3535libcmpiBase_Server_Common_la_SOURCES = Base_Server_Common.cpp 
    3636 
     37libcmpiBase_Server_Common_la_LDFLAGS = -avoid-version -Wl,--rpath -Wl,$(COMMONLIBDIR) 
     38 
    3739libcmpiBase_Server_Common_la_LIBADD = -lOpenDRIMCommon 
    38 libcmpiBase_Server_Common_la_LDFLAGS = -avoid-version -Wl,--rpath -Wl,$(COMMONLIBDIR) 
    3940 
    4041noinst_HEADERS = Base_Server_Common.h 
  • Linux_Management_Providers/Base_Server/trunk/Makefile.am

    r766 r1165  
    2626# AND comment your changes in the source code. 
    2727#  
    28 # Modified by <Author(s)>, <Affiliation>, <Year
     28# Modified by 2008 Guillaume BOTTEX, ETRI <guillaumebottex@etri.re.kr, guillaumebottex@gmail.com
    2929################################################################################ 
    3030 
    3131VENDOR = OpenDRIM 
    3232 
    33 VERSION = 1.0.0 
     33VERSION = $(shell cat ./VERSION) 
     34 
     35APP_NAME = opendrim-lmp-baseserver 
     36 
     37RPM_PACKAGE_DIR = packaging 
     38 
     39PLATFORM = $(shell rpm --eval %_target_cpu) 
     40 
     41WORKING_DIR = $(shell pwd) 
    3442 
    3543SUBDIRS = Common OpenDRIM_ComputerSystem OpenDRIM_RegisteredBaseServerProfile OpenDRIM_ComputerSystemCapabilities OpenDRIM_ComputerSystemComputerSystemCapabilities OpenDRIM_ComputerSystemConformsToProfile test 
     
    4452        make -C OpenDRIM_ComputerSystem install-strip 
    4553        make -C OpenDRIM_RegisteredBaseServerProfile install-strip 
    46         make -C OpenDRIM_ComputerSystemCapabilities install-strip 
    4754        make -C OpenDRIM_ComputerSystemComputerSystemCapabilities install-strip 
    4855        make -C OpenDRIM_ComputerSystemConformsToProfile install-strip 
     56        make -C OpenDRIM_ComputerSystemCapabilities install-strip 
    4957 
    5058postinstall: 
     
    6977        make -C test test-OpenDRIM_ComputerSystemCapabilities 
    7078         
     79pkg-src: 
     80        rm -rf packaging/$(APP_NAME)-$(VERSION) 
     81        rm -rf .tmp 
     82        mkdir .tmp 
     83        cp -r ./* .tmp/ 
     84        rm -rf ./tmp/packaging/ 
     85        mv .tmp packaging/$(APP_NAME)-$(VERSION) 
     86        tar --directory packaging -zcf packaging/$(APP_NAME)-$(VERSION).tar.gz $(APP_NAME)-$(VERSION) 
     87        rm -rf packaging/$(APP_NAME)-$(VERSION) 
     88 
     89pkg-rpm: pkg-src 
     90        mkdir -p $(RPM_PACKAGE_DIR)/rpm/RPMS/$(PLATFORM) 
     91        mkdir -p $(RPM_PACKAGE_DIR)/rpm/SRPMS 
     92        mkdir -p $(RPM_PACKAGE_DIR)/rpm/BUILD 
     93        mkdir -p $(RPM_PACKAGE_DIR)/rpm/SOURCES 
     94        mkdir -p $(RPM_PACKAGE_DIR)/rpm/tmp 
     95        - rm -r $(RPM_PACKAGE_DIR)/rpm/BUILD/$(APP_NAME)-root 
     96        - rm -r $(RPM_PACKAGE_DIR)/rpm/RPMS/$(APP_NAME)-* 
     97        - rm -r $(RPM_PACKAGE_DIR)/rpm/SRPMS/$(APP_NAME)-* 
     98        - rm -r $(RPM_PACKAGE_DIR)/rpm/SOURCES/$(APP_NAME)-* 
     99        mv packaging/$(APP_NAME)-$(VERSION).tar.gz $(RPM_PACKAGE_DIR)/rpm/SOURCES/ 
     100        rpmbuild --define="_topdir $(WORKING_DIR)/$(RPM_PACKAGE_DIR)/rpm" --define="version $(VERSION)" -ba $(RPM_PACKAGE_DIR)/$(APP_NAME).spec 
     101 
  • Linux_Management_Providers/Base_Server/trunk/NEWS

    r370 r1165  
    1 Initial Release 1.0.0 
     1Changes in 1.0.1 
     2========================= 
     3 
     4Provider conformed to DMTF Base Server Profile 1.0.1 
     5+ Code update and fixes added 
     6+ RPM spec file added 
     7+ make pkg-src and pkg-rpm commands added 
     8 
     9Changes in 1.0.0 
    210========================= 
    311 
    412// TODO 
    513 
    6 Changes in Major.Minor.Revision 
     14Initial Release 0.5.0 
    715========================= 
    816 
  • Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystem

    • Property svn:ignore set to
      Makefile
      Makefile.in
  • Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystem/Makefile.am

    r766 r1165  
    2626# AND comment your changes in the source code. 
    2727#  
    28 # Modified by <Author(s)>, <Affiliation>, <Year
     28# Modified by 2008 Guillaume BOTTEX, ETRI <guillaumebottex@etri.re.kr, guillaumebottex@gmail.com
    2929################################################################################ 
    3030 
     
    3535libcmpiBase_Server_OpenDRIM_ComputerSystemProvider_la_SOURCES = OpenDRIM_ComputerSystemAccess.cpp OpenDRIM_ComputerSystemProvider.cpp cmpiOpenDRIM_ComputerSystem.cpp 
    3636 
    37 libcmpiBase_Server_OpenDRIM_ComputerSystemProvider_la_LIBADD = -lOpenDRIMCommon ../Common/libcmpiBase_Server_Common.la 
     37libcmpiBase_Server_OpenDRIM_ComputerSystemProvider_la_LIBADD = ../Common/libcmpiBase_Server_Common.la 
    3838 
    3939libcmpiBase_Server_OpenDRIM_ComputerSystemProvider_la_LDFLAGS = -avoid-version -Wl,--rpath -Wl,$(COMMONLIBDIR) 
  • Linux_Management_Providers/Base_Server/trunk/OpenDRIM_ComputerSystem/OpenDRIM_ComputerSystem.h

    r766 r1165  
    2626# AND comment your changes in the source code. 
    2727#  
    28 # Modified by <Author(s)>, <Affiliation>, <Year
     28# Modified by 2008 Guillaume BOTTEX, ETRI <guillaumebottex@etri.re.kr, guillaumebottex@gmail.com
    2929###############################################################################*/ 
    3030 
     
    4141public: 
    4242         
     43        string Caption; 
     44        bool Caption_isNULL; 
     45                 
     46        string Description; 
     47        bool Description_isNULL; 
     48                 
     49        string ElementName; 
     50        bool ElementName_isNULL; 
     51                 
     52        string InstallDate; 
     53        bool InstallDate_isNULL; 
     54                 
     55        vector<unsigned short> OperationalStatus; 
     56        bool OperationalStatus_isNULL; 
     57                 
     58        vector<string> StatusDescriptions; 
     59        bool StatusDescriptions_isNULL; 
     60                 
     61        string Status; 
     62        bool Status_isNULL; 
     63                 
     64        unsigned short HealthState; 
     65        bool HealthState_isNULL; 
     66                 
     67        unsigned short PrimaryStatus; 
     68        bool PrimaryStatus_isNULL; 
     69                 
     70        unsigned short DetailedStatus; 
     71        bool DetailedStatus_isNULL; 
     72                 
     73        unsigned short OperatingStatus; 
     74        bool OperatingStatus_isNULL; 
     75                 
     76        unsigned short CommunicationStatus; 
     77        bool CommunicationStatus_isNULL; 
     78                 
     79        unsigned short EnabledState; 
     80        bool EnabledState_isNULL; 
     81                 
     82        string OtherEnabledState; 
     83        bool OtherEnabledState_isNULL; 
     84                 
     85        unsigned short RequestedState; 
     86        bool RequestedState_isNULL; 
     87                 
     88        unsigned short EnabledDefault; 
     89        bool EnabledDefault_isNULL; 
     90                 
     91        string TimeOfLastStateChange; 
     92        bool TimeOfLastStateChange_isNULL; 
     93                 
     94        vector<unsigned short> AvailableRequestedStates; 
     95        bool AvailableRequestedStates_isNULL; 
     96                 
     97        unsigned short TransitioningToState; 
     98        bool TransitioningToState_isNULL; 
     99                 
    43100        string CreationClassName; 
    44101        bool CreationClassName_isNULL; 
     
    47104        bool Name_isNULL; 
    48105                 
    49         string ElementName; 
    50         bool ElementName_isNULL; 
     106        string PrimaryOwnerName; 
     107        bool PrimaryOwnerName_isNULL; 
     108                 
     109        string PrimaryOwnerContact; 
     110        bool PrimaryOwnerContact_isNULL; 
     111                 
     112        vector<string> Roles; 
     113        bool Roles_isNULL; 
     114                 
     115        vector<string> OtherIdentifyingInfo; 
     116        bool OtherIdentifyingInfo_isNULL; 
     117                 
     118        vector<string> IdentifyingDescriptions; 
     119        bool IdentifyingDescriptions_isNULL; 
    51120                 
    52121        string NameFormat; 
     
    59128        bool OtherDedicatedDescriptions_isNULL; 
    60129                 
     130        unsigned short ResetCapability; 
     131        bool ResetCapability_isNULL; 
     132                 
     133        vector<unsigned short> PowerManagementCapabilities; 
     134        bool PowerManagementCapabilities_isNULL; 
     135                 
    61136        OpenDRIM_ComputerSystem() { 
     137                Caption_isNULL = true; 
     138                Description_isNULL = true; 
     139                ElementName_isNULL = true; 
     140                InstallDate_isNULL = true; 
     141                OperationalStatus_isNULL = true; 
     142                StatusDescriptions_isNULL = true; 
     143                Status_isNULL = true; 
     144                HealthState_isNULL = true; 
     145                PrimaryStatus_isNULL = true; 
     146                DetailedStatus_isNULL = true; 
     147                OperatingStatus_isNULL = true; 
     148                CommunicationStatus_isNULL = true; 
     149                EnabledState_isNULL = true; 
     150                OtherEnabledState_isNULL = true; 
     151                RequestedState_isNULL = true; 
     152                EnabledDefault_isNULL = true; 
     153                TimeOfLastStateChange_isNULL = true; 
     154                AvailableRequestedStates_isNULL = true; 
     155                TransitioningToState_isNULL = true; 
    62156                CreationClassName_isNULL = true; 
    63157                Name_isNULL = true; 
    64                 ElementName_isNULL = true; 
     158                PrimaryOwnerName_isNULL = true; 
     159                PrimaryOwnerContact_isNULL = true; 
     160                Roles_isNULL = true; 
     161                OtherIdentifyingInfo_isNULL = true; 
     162                IdentifyingDescriptions_isNULL = true; 
    65163                NameFormat_isNULL = true; 
    66164                Dedicated_isNULL = true; 
    67165                OtherDedicatedDescriptions_isNULL = true; 
     166                ResetCapability_isNULL = true; 
     167                PowerManagementCapabilities_isNULL = true; 
    68168        } 
    69169         
    70170        ~OpenDRIM_ComputerSystem() {} 
     171         
     172        string getKeys() const { 
     173                return CF_toLowCase(".CreationClassName=\"" + CF_quoteString(CreationClassName) + "\""".Name=\"" + CF_quoteString(Name) + "\""); 
     174        } 
     175 
     176        int getCaption(string& value) const { 
     177                if (Caption_isNULL==true) 
     178                        return NOT_FOUND; 
     179                value = Caption; 
     180                return OK; 
     181        } 
     182         
     183        int setCaption(const string& newValue) { 
     184                Caption = newValue; 
     185                Caption_isNULL = false; 
     186                return OK; 
     187        } 
     188 
     189        int getDescription(string& value) const { 
     190                if (Description_isNULL==true) 
     191                        return NOT_FOUND; 
     192                value = Description; 
     193                return OK; 
     194        } 
     195         
     196        int setDescription(const string& newValue) { 
     197                Description = newValue; 
     198                Description_isNULL = false; 
     199                return OK; 
     200        } 
     201 
     202        int getElementName(string& value) const { 
     203                if (ElementName_isNULL==true) 
     204                        return NOT_FOUND; 
     205                value = ElementName; 
     206                return OK; 
     207        } 
     208         
     209        int setElementName(const string& newValue) { 
     210                ElementName = newValue; 
     211                ElementName_isNULL = false; 
     212                return OK; 
     213        } 
     214 
     215        int getInstallDate(string& value) const { 
     216                if (InstallDate_isNULL==true) 
     217                        return NOT_FOUND; 
     218                value = InstallDate; 
     219                return OK; 
     220        } 
     221         
     222        int setInstallDate(const string& newValue) { 
     223                InstallDate = newValue; 
     224                InstallDate_isNULL = false; 
     225                return OK; 
     226        } 
     227 
     228        int getOperationalStatus(vector<unsigned short>& value) const { 
     229                if (OperationalStatus_isNULL==true) 
     230                        return NOT_FOUND; 
     231                value = OperationalStatus; 
     232                return OK; 
     233        } 
     234         
     235        int setOperationalStatus(const vector<unsigned short>& newValue) { 
     236                OperationalStatus = newValue; 
     237                OperationalStatus_isNULL = false; 
     238                return OK; 
     239        } 
     240 
     241        int getStatusDescriptions(vector<string>& value) const { 
     242                if (StatusDescriptions_isNULL==true) 
     243                        return NOT_FOUND; 
     244                value = StatusDescriptions; 
     245                return OK; 
     246        } 
     247         
     248        int setStatusDescriptions(const vector<string>& newValue) { 
     249                StatusDescriptions = newValue; 
     250                StatusDescriptions_isNULL = false; 
     251                return OK; 
     252        } 
     253 
     254        int getStatus(string& value) const { 
     255                if (Status_isNULL==true) 
     256                        return NOT_FOUND; 
     257                value = Status; 
     258                return OK; 
     259        } 
     260         
     261        int setStatus(const string& newValue) { 
     262                Status = newValue; 
     263                Status_isNULL = false; 
     264                return OK; 
     265        } 
     266 
     267        int getHealthState(unsigned short& value) const { 
     268                if (HealthState_isNULL==true) 
     269                        return NOT_FOUND; 
     270                value = HealthState; 
     271                return OK; 
     272        } 
     273         
     274        int setHealthState(const unsigned short& newValue) { 
     275                HealthState = newValue; 
     276                HealthState_isNULL = false; 
     277                return OK; 
     278        } 
     279 
     280        int getPrimaryStatus(unsigned short& value) const { 
     281                if (PrimaryStatus_isNULL==true) 
     282                        return NOT_FOUND; 
     283                value = PrimaryStatus; 
     284                return OK; 
     285        } 
     286         
     287        int setPrimaryStatus(const unsigned short& newValue) { 
     288                PrimaryStatus = newValue; 
     289                PrimaryStatus_isNULL = false; 
     290                return OK; 
     291        } 
     292 
     293        int getDetailedStatus(unsigned short& value) const { 
     294                if (DetailedStatus_isNULL==true) 
     295                        return NOT_FOUND; 
     296                value = DetailedStatus; 
     297                return OK; 
     298        } 
     299         
     300        int setDetailedStatus(const unsigned short& newValue) { 
     301                DetailedStatus = newValue; 
     302                DetailedStatus_isNULL = false; 
     303                return OK; 
     304        } 
     305 
     306        int getOperatingStatus(unsigned short& value) const { 
     307                if (OperatingStatus_isNULL==true) 
     308                        return NOT_FOUND; 
     309                value = OperatingStatus; 
     310                return OK; 
     311        } 
     312         
     313        int setOperatingStatus(const unsigned short& newValue) { 
     314                OperatingStatus = newValue; 
     315                OperatingStatus_isNULL = false; 
     316                return OK; 
     317        } 
     318 
     319        int getCommunicationStatus(unsigned short& value) const { 
     320                if (CommunicationStatus_isNULL==true) 
     321                        return NOT_FOUND; 
     322                value = CommunicationStatus; 
     323                return OK; 
     324        } 
     325         
     326        int setCommunicationStatus(const unsigned short& newValue) { 
     327                CommunicationStatus = newValue; 
     328                CommunicationStatus_isNULL = false; 
     329                return OK; 
     330        } 
     331 
     332        int getEnabledState(unsigned short& value) const { 
     333                if (EnabledState_isNULL==true) 
     334                        return NOT_FOUND; 
     335                value = EnabledState; 
     336                return OK; 
     337        } 
     338         
     339        int setEnabledState(const unsigned short& newValue) { 
     340                EnabledState = newValue; 
     341                EnabledState_isNULL = false; 
     342                return OK; 
     343        } 
     344 
     345        int getOtherEnabledState(string& value) const { 
     346                if (OtherEnabledState_isNULL==true) 
     347                        return NOT_FOUND; 
     348                value = OtherEnabledState; 
     349                return OK; 
     350        } 
     351         
     352        int setOtherEnabledState(const string& newValue) { 
     353                OtherEnabledState = newValue; 
     354                OtherEnabledState_isNULL = false; 
     355                return OK; 
     356        } 
     357 
     358        int getRequestedState(unsigned short& value) const { 
     359                if (RequestedState_isNULL==true) 
     360                        return NOT_FOUND; 
     361                value = RequestedState; 
     362                return OK; 
     363        } 
     364         
     365        int setRequestedState(const unsigned short& newValue) { 
     366                RequestedState = newValue; 
     367                RequestedState_isNULL = false; 
     368                return OK; 
     369        } 
     370 
     371        int getEnabledDefault(unsigned short& value) const { 
     372                if (EnabledDefault_isNULL==true) 
     373                        return NOT_FOUND; 
     374                value = EnabledDefault; 
     375                return OK; 
     376        } 
     377         
     378        int setEnabledDefault(const unsigned short& newValue) { 
     379                EnabledDefault = newValue; 
     380                EnabledDefault_isNULL = false; 
     381                return OK; 
     382        } 
     383 
     384        int getTimeOfLastStateChange(string& value) const { 
     385                if (TimeOfLastStateChange_isNULL==true) 
     386                        return NOT_FOUND; 
     387                value = TimeOfLastStateChange; 
     388                return OK; 
     389        } 
     390         
     391        int setTimeOfLastStateChange(const string& newValue) { 
     392                TimeOfLastStateChange = newValue; 
     393                TimeOfLastStateChange_isNULL = false; 
     394                return OK; 
     395        } 
     396 
     397        int getAvailableRequestedStates(vector<unsigned short>& value) const { 
     398                if (AvailableRequestedStates_isNULL==true) 
     399                        return NOT_FOUND; 
     400                value = AvailableRequestedStates; 
     401                return OK; 
     402        } 
     403         
     404        int setAvailableRequestedStates(const vector<unsigned short>& newValue) { 
     405                AvailableRequestedStates = newValue; 
     406                AvailableRequestedStates_isNULL = false; 
     407                return OK; 
     408        } 
     409 
     410        int getTransitioningToState(unsigned short& value) const { 
     411                if (TransitioningToState_isNULL==true) 
     412                        return NOT_FOUND; 
     413                value = TransitioningToState; 
     414                return OK; 
     415        } 
     416         
     417        int setTransitioningToState(const unsigned short& newValue) { 
     418                TransitioningToState = newValue; 
     419                TransitioningToState_isNULL = false; 
     420                return OK; 
     421        } 
    71422 
    72423        int getCreationClassName(string& value) const { 
     
    96447        } 
    97448 
    98         int getElementName(string& value) const { 
    99                 if (ElementName_isNULL==true) 
    100                         return NOT_FOUND; 
    101                 value = ElementName; 
    102                 return OK; 
    103         } 
    104          
    105         int setElementName(const string& newValue) { 
    106                 ElementName = newValue; 
    107                 ElementName_isNULL = false; 
     449        int getPrimaryOwnerName(string& value) const { 
     450                if (PrimaryOwnerName_isNULL==true) 
     451                        return NOT_FOUND; 
     452                value = PrimaryOwnerName; 
     453                return OK; 
     454        } 
     455         
     456        int setPrimaryOwnerName(const string& newValue) { 
     457                PrimaryOwnerName = newValue; 
     458                PrimaryOwnerName_isNULL = false; 
     459                return OK; 
     460        } 
     461 
     462        int getPrimaryOwnerContact(string& value) const { 
     463                if (PrimaryOwnerContact_isNULL==true) 
     464                        return NOT_FOUND; 
     465                value = PrimaryOwnerContact; 
     466                return OK; 
     467        } 
     468         
     469        int setPrimaryOwnerContact(const string& newValue) { 
     470                PrimaryOwnerContact = newValue; 
     471                PrimaryOwnerContact_isNULL = false; 
     472                return OK; 
     473        } 
     474 
     475        int getRoles(vector<string>& value) const { 
     476                if (Roles_isNULL==true) 
     477                        return NOT_FOUND; 
     478                value = Roles; 
     479                return OK; 
     480