1
/*################################################################################
2
# Linux Management Providers (LMP), Simple Identity Management provider package
3
# Copyright (C) 2007 Frederic Desmons, ETRI <desmons@etri.re.kr, desmons_frederic@yahoo.fr>
5
# This program is being developed under the "OpenDRIM" project.
6
# The "OpenDRIM" project web page: http://opendrim.sourceforge.net
7
# The "OpenDRIM" project mailing list: opendrim@googlegroups.com
9
# This program is free software; you can redistribute it and/or
10
# modify it under the terms of the GNU General Public License
11
# as published by the Free Software Foundation; version 2
14
# This program is distributed in the hope that it will be useful,
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
# GNU General Public License for more details.
19
# You should have received a copy of the GNU General Public License
20
# along with this program; if not, write to the Free Software
21
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22
#################################################################################
24
#################################################################################
25
# To contributors, please leave your contact information in this section
26
# AND comment your changes in the source code.
28
# Modified by 2009 Khahramon NURIDDINOV, TUIT <qahramon0786@gmail.com>
29
# Modified by 2009 Guillaume BOTTEX, ETRI <guillaumebottex@etri.re.kr>
30
################################################################################*/
32
#include "OpenDRIM_AccountManagementCapabilitiesAccess.h"
36
int Simple_Identity_Management_OpenDRIM_AccountManagementCapabilities_load(const CMPIBroker* broker, string& errorMessage) {
38
CF_assert(CF_getSystemName(InstanceID, errorMessage));
43
int Simple_Identity_Management_OpenDRIM_AccountManagementCapabilities_unload(string& errorMessage) {
50
int Simple_Identity_Management_OpenDRIM_AccountManagementCapabilities_retrieve(const CMPIBroker* broker, const CMPIContext* ctx, vector<OpenDRIM_AccountManagementCapabilities>& result, const char** properties, string& errorMessage, const string& discriminant) {
53
// The key properties are based on the system name
54
OpenDRIM_AccountManagementCapabilities instance;
55
instance.setInstanceID(InstanceID);
57
if(discriminant=="ei")
58
CF_assert(Simple_Identity_Management_OpenDRIM_AccountManagementCapabilities_populate(instance, errorMessage));
60
result.push_back(instance);
65
int Simple_Identity_Management_OpenDRIM_AccountManagementCapabilities_getInstance(const CMPIBroker* broker, const CMPIContext* ctx, OpenDRIM_AccountManagementCapabilities& instance, const char** properties, string& errorMessage) {
68
// The key properties are based on the system name
69
if (instance.InstanceID!=InstanceID)
71
errorMessage = "No instance";
75
CF_assert(Simple_Identity_Management_OpenDRIM_AccountManagementCapabilities_populate(instance, errorMessage));
80
int Simple_Identity_Management_OpenDRIM_AccountManagementCapabilities_setInstance(const CMPIBroker* broker, const CMPIContext* ctx, const OpenDRIM_AccountManagementCapabilities& newInstance, const OpenDRIM_AccountManagementCapabilities& oldInstance, const char** properties, string& errorMessage) {
87
int Simple_Identity_Management_OpenDRIM_AccountManagementCapabilities_createInstance(const CMPIBroker* broker, const CMPIContext* ctx, const OpenDRIM_AccountManagementCapabilities& instance, string& errorMessage) {
94
int Simple_Identity_Management_OpenDRIM_AccountManagementCapabilities_deleteInstance(const CMPIBroker* broker, const CMPIContext* ctx, const OpenDRIM_AccountManagementCapabilities& instance, string& errorMessage) {
101
int Simple_Identity_Management_OpenDRIM_AccountManagementCapabilities_CreateGoalSettings(const CMPIBroker* broker, const CMPIContext* ctx, const OpenDRIM_AccountManagementCapabilities& instance, unsigned short& returnValue, const OpenDRIM_AccountManagementCapabilities_CreateGoalSettings_In& in, OpenDRIM_AccountManagementCapabilities_CreateGoalSettings_Out& out, string& errorMessage) {
108
int Simple_Identity_Management_OpenDRIM_AccountManagementCapabilities_populate(OpenDRIM_AccountManagementCapabilities& instance, string& errorMessage) {
110
instance.setElementName("Account Management Capabilities");
111
instance.setMaxElementNameLen(256);
112
instance.setElementNameEditSupported(true);