~ubuntu-branches/ubuntu/quantal/opendrim-lmp-simpleidentitymanagement/quantal

« back to all changes in this revision

Viewing changes to OpenDRIM_Group/OpenDRIM_Group.h

  • Committer: Bazaar Package Importer
  • Author(s): Guillaume BOTTEX
  • Date: 2010-06-21 15:54:00 UTC
  • Revision ID: james.westby@ubuntu.com-20100621155400-myesv5hd2f3s8x9y
Tags: upstream-1.0.0
ImportĀ upstreamĀ versionĀ 1.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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>
 
4
 
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
 
8
 
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
 
12
# of the License.
 
13
 
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.
 
18
 
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
#################################################################################
 
23
 
 
24
#################################################################################
 
25
# To contributors, please leave your contact information in this section
 
26
# AND comment your changes in the source code.
 
27
 
28
# Modified by 2009 Khahramon NURIDDINOV, TUIT <qahramon0786@gmail.com>
 
29
# Modified by 2009 Guillaume BOTTEX, ETRI <guillaumebottex@etri.re.kr>
 
30
################################################################################*/
 
31
 
 
32
#ifndef OPENDRIM_GROUP_H_
 
33
#define OPENDRIM_GROUP_H_
 
34
 
 
35
#include <Instance.h>
 
36
 
 
37
const static char* OpenDRIM_Group_classnames[] = {"OpenDRIM_Group"};
 
38
static string OpenDRIM_Group_NAMESPACE = _NAMESPACE;
 
39
 
 
40
class OpenDRIM_Group {
 
41
 
 
42
public:
 
43
        
 
44
        string Caption;
 
45
        bool Caption_isNULL;
 
46
        
 
47
        string Description;
 
48
        bool Description_isNULL;
 
49
        
 
50
        string ElementName;
 
51
        bool ElementName_isNULL;
 
52
        
 
53
        string CreationClassName;
 
54
        bool CreationClassName_isNULL;
 
55
        
 
56
        string Name;
 
57
        bool Name_isNULL;
 
58
        
 
59
        string BusinessCategory;
 
60
        bool BusinessCategory_isNULL;
 
61
        
 
62
        string CommonName;
 
63
        bool CommonName_isNULL;
 
64
        
 
65
        string GroupID;
 
66
        bool GroupID_isNULL;
 
67
        
 
68
        vector<string> Members;
 
69
        
 
70
        OpenDRIM_Group() {
 
71
                Caption_isNULL = true;
 
72
                Description_isNULL = true;
 
73
                ElementName_isNULL = true;
 
74
                CreationClassName_isNULL = true;
 
75
                Name_isNULL = true;
 
76
                BusinessCategory_isNULL = true;
 
77
                CommonName_isNULL = true;
 
78
                GroupID_isNULL = true;
 
79
        }
 
80
        
 
81
        ~OpenDRIM_Group() {}
 
82
        
 
83
        string getKeys() const {
 
84
                return CF_toLowCase(".CreationClassName=\"" + CF_quoteString(CreationClassName) + "\""".Name=\"" + CF_quoteString(Name) + "\"");
 
85
        }
 
86
 
 
87
        int getCaption(string& value) const {
 
88
                if (Caption_isNULL==true)
 
89
                        return NOT_FOUND;
 
90
                value = Caption;
 
91
                return OK;
 
92
        }
 
93
        
 
94
        int setCaption(const string& newValue) {
 
95
                Caption = newValue;
 
96
                Caption_isNULL = false;
 
97
                return OK;
 
98
        }
 
99
 
 
100
        int getDescription(string& value) const {
 
101
                if (Description_isNULL==true)
 
102
                        return NOT_FOUND;
 
103
                value = Description;
 
104
                return OK;
 
105
        }
 
106
        
 
107
        int setDescription(const string& newValue) {
 
108
                Description = newValue;
 
109
                Description_isNULL = false;
 
110
                return OK;
 
111
        }
 
112
 
 
113
        int getElementName(string& value) const {
 
114
                if (ElementName_isNULL==true)
 
115
                        return NOT_FOUND;
 
116
                value = ElementName;
 
117
                return OK;
 
118
        }
 
119
        
 
120
        int setElementName(const string& newValue) {
 
121
                ElementName = newValue;
 
122
                ElementName_isNULL = false;
 
123
                return OK;
 
124
        }
 
125
 
 
126
        int getCreationClassName(string& value) const {
 
127
                if (CreationClassName_isNULL==true)
 
128
                        return NOT_FOUND;
 
129
                value = CreationClassName;
 
130
                return OK;
 
131
        }
 
132
        
 
133
        int setCreationClassName(const string& newValue) {
 
134
                CreationClassName = newValue;
 
135
                CreationClassName_isNULL = false;
 
136
                return OK;
 
137
        }
 
138
 
 
139
        int getName(string& value) const {
 
140
                if (Name_isNULL==true)
 
141
                        return NOT_FOUND;
 
142
                value = Name;
 
143
                return OK;
 
144
        }
 
145
        
 
146
        int setName(const string& newValue) {
 
147
                Name = newValue;
 
148
                Name_isNULL = false;
 
149
                return OK;
 
150
        }
 
151
 
 
152
        int getBusinessCategory(string& value) const {
 
153
                if (BusinessCategory_isNULL==true)
 
154
                        return NOT_FOUND;
 
155
                value = BusinessCategory;
 
156
                return OK;
 
157
        }
 
158
        
 
159
        int setBusinessCategory(const string& newValue) {
 
160
                BusinessCategory = newValue;
 
161
                BusinessCategory_isNULL = false;
 
162
                return OK;
 
163
        }
 
164
 
 
165
        int getCommonName(string& value) const {
 
166
                if (CommonName_isNULL==true)
 
167
                        return NOT_FOUND;
 
168
                value = CommonName;
 
169
                return OK;
 
170
        }
 
171
        
 
172
        int setCommonName(const string& newValue) {
 
173
                CommonName = newValue;
 
174
                CommonName_isNULL = false;
 
175
                return OK;
 
176
        }
 
177
 
 
178
        int getGroupID(string& value) const {
 
179
                if (GroupID_isNULL==true)
 
180
                        return NOT_FOUND;
 
181
                value = GroupID;
 
182
                return OK;
 
183
        }
 
184
        
 
185
        int setGroupID(const string& newValue) {
 
186
                GroupID = newValue;
 
187
                GroupID_isNULL = false;
 
188
                return OK;
 
189
        }
 
190
 
 
191
};
 
192
 
 
193
#endif /*OPENDRIM_GROUP_H_*/