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
#ifndef OPENDRIM_ACCOUNTCAPABILITIES_H_
33
#define OPENDRIM_ACCOUNTCAPABILITIES_H_
37
const static char* OpenDRIM_AccountCapabilities_classnames[] = {"OpenDRIM_AccountCapabilities"};
38
static string OpenDRIM_AccountCapabilities_NAMESPACE = _NAMESPACE;
40
class OpenDRIM_AccountCapabilities {
48
bool Description_isNULL;
51
bool InstanceID_isNULL;
54
bool ElementName_isNULL;
56
unsigned short MaxElementNameLen;
57
bool MaxElementNameLen_isNULL;
59
vector<unsigned short> RequestedStatesSupported;
60
bool RequestedStatesSupported_isNULL;
62
string ElementNameMask;
63
bool ElementNameMask_isNULL;
65
vector<unsigned short> StateAwareness;
66
bool StateAwareness_isNULL;
68
unsigned short PasswordHistory;
69
bool PasswordHistory_isNULL;
71
string MaximumPasswordAge;
72
bool MaximumPasswordAge_isNULL;
74
vector<unsigned short> ComplexPasswordRulesSupported;
75
bool ComplexPasswordRulesSupported_isNULL;
77
bool DisableOnInactivity;
78
bool DisableOnInactivity_isNULL;
80
vector<unsigned short> RequestedStateSupported;
81
bool RequestedStateSupported_isNULL;
83
bool ElementNameEditSupported;
84
bool ElementNameEditSupported_isNULL;
86
string DisableTimeoutAfterPasswordExpiration;
87
bool DisableTimeoutAfterPasswordExpiration_isNULL;
89
OpenDRIM_AccountCapabilities() {
90
Caption_isNULL = true;
91
Description_isNULL = true;
92
InstanceID_isNULL = true;
93
ElementName_isNULL = true;
94
MaxElementNameLen_isNULL = true;
95
RequestedStatesSupported_isNULL = true;
96
ElementNameMask_isNULL = true;
97
StateAwareness_isNULL = true;
98
PasswordHistory_isNULL = true;
99
MaximumPasswordAge_isNULL = true;
100
ComplexPasswordRulesSupported_isNULL = true;
101
DisableOnInactivity_isNULL = true;
102
RequestedStateSupported_isNULL = true;
103
ElementNameEditSupported_isNULL = true;
104
DisableTimeoutAfterPasswordExpiration_isNULL = true;
107
~OpenDRIM_AccountCapabilities() {}
109
string getKeys() const {
110
return CF_toLowCase(".InstanceID=\"" + CF_quoteString(InstanceID) + "\"");
113
int getCaption(string& value) const {
114
if (Caption_isNULL==true)
120
int setCaption(const string& newValue) {
122
Caption_isNULL = false;
126
int getDescription(string& value) const {
127
if (Description_isNULL==true)
133
int setDescription(const string& newValue) {
134
Description = newValue;
135
Description_isNULL = false;
139
int getInstanceID(string& value) const {
140
if (InstanceID_isNULL==true)
146
int setInstanceID(const string& newValue) {
147
InstanceID = newValue;
148
InstanceID_isNULL = false;
152
int getElementName(string& value) const {
153
if (ElementName_isNULL==true)
159
int setElementName(const string& newValue) {
160
ElementName = newValue;
161
ElementName_isNULL = false;
165
int getMaxElementNameLen(unsigned short& value) const {
166
if (MaxElementNameLen_isNULL==true)
168
value = MaxElementNameLen;
172
int setMaxElementNameLen(const unsigned short& newValue) {
173
MaxElementNameLen = newValue;
174
MaxElementNameLen_isNULL = false;
178
int getRequestedStatesSupported(vector<unsigned short>& value) const {
179
if (RequestedStatesSupported_isNULL==true)
181
value = RequestedStatesSupported;
185
int setRequestedStatesSupported(const vector<unsigned short>& newValue) {
186
RequestedStatesSupported = newValue;
187
RequestedStatesSupported_isNULL = false;
191
int getElementNameMask(string& value) const {
192
if (ElementNameMask_isNULL==true)
194
value = ElementNameMask;
198
int setElementNameMask(const string& newValue) {
199
ElementNameMask = newValue;
200
ElementNameMask_isNULL = false;
204
int getStateAwareness(vector<unsigned short>& value) const {
205
if (StateAwareness_isNULL==true)
207
value = StateAwareness;
211
int setStateAwareness(const vector<unsigned short>& newValue) {
212
StateAwareness = newValue;
213
StateAwareness_isNULL = false;
217
int getPasswordHistory(unsigned short& value) const {
218
if (PasswordHistory_isNULL==true)
220
value = PasswordHistory;
224
int setPasswordHistory(const unsigned short& newValue) {
225
PasswordHistory = newValue;
226
PasswordHistory_isNULL = false;
230
int getMaximumPasswordAge(string& value) const {
231
if (MaximumPasswordAge_isNULL==true)
233
value = MaximumPasswordAge;
237
int setMaximumPasswordAge(const string& newValue) {
238
MaximumPasswordAge = newValue;
239
MaximumPasswordAge_isNULL = false;
243
int getComplexPasswordRulesSupported(vector<unsigned short>& value) const {
244
if (ComplexPasswordRulesSupported_isNULL==true)
246
value = ComplexPasswordRulesSupported;
250
int setComplexPasswordRulesSupported(const vector<unsigned short>& newValue) {
251
ComplexPasswordRulesSupported = newValue;
252
ComplexPasswordRulesSupported_isNULL = false;
256
int getDisableOnInactivity(bool& value) const {
257
if (DisableOnInactivity_isNULL==true)
259
value = DisableOnInactivity;
263
int setDisableOnInactivity(const bool& newValue) {
264
DisableOnInactivity = newValue;
265
DisableOnInactivity_isNULL = false;
269
int getRequestedStateSupported(vector<unsigned short>& value) const {
270
if (RequestedStateSupported_isNULL==true)
272
value = RequestedStateSupported;
276
int setRequestedStateSupported(const vector<unsigned short>& newValue) {
277
RequestedStateSupported = newValue;
278
RequestedStateSupported_isNULL = false;
282
int getElementNameEditSupported(bool& value) const {
283
if (ElementNameEditSupported_isNULL==true)
285
value = ElementNameEditSupported;
289
int setElementNameEditSupported(const bool& newValue) {
290
ElementNameEditSupported = newValue;
291
ElementNameEditSupported_isNULL = false;
295
int getDisableTimeoutAfterPasswordExpiration(string& value) const {
296
if (DisableTimeoutAfterPasswordExpiration_isNULL==true)
298
value = DisableTimeoutAfterPasswordExpiration;
302
int setDisableTimeoutAfterPasswordExpiration(const string& newValue) {
303
DisableTimeoutAfterPasswordExpiration = newValue;
304
DisableTimeoutAfterPasswordExpiration_isNULL = false;
310
class OpenDRIM_AccountCapabilities_CreateGoalSettings_In {
314
vector<string> TemplateGoalSettings;
315
bool TemplateGoalSettings_isNULL;
317
vector<string> SupportedGoalSettings;
318
bool SupportedGoalSettings_isNULL;
320
OpenDRIM_AccountCapabilities_CreateGoalSettings_In() {
321
TemplateGoalSettings_isNULL = true;
322
SupportedGoalSettings_isNULL = true;
325
~OpenDRIM_AccountCapabilities_CreateGoalSettings_In() {}
327
int getTemplateGoalSettings(vector<string>& value) const {
328
if (TemplateGoalSettings_isNULL == true)
330
value = TemplateGoalSettings;
333
int setTemplateGoalSettings(const vector<string>& newValue) {
334
TemplateGoalSettings = newValue;
335
TemplateGoalSettings_isNULL = false;
339
int getSupportedGoalSettings(vector<string>& value) const {
340
if (SupportedGoalSettings_isNULL == true)
342
value = SupportedGoalSettings;
345
int setSupportedGoalSettings(const vector<string>& newValue) {
346
SupportedGoalSettings = newValue;
347
SupportedGoalSettings_isNULL = false;
353
class OpenDRIM_AccountCapabilities_CreateGoalSettings_Out {
357
vector<string> SupportedGoalSettings;
358
bool SupportedGoalSettings_isNULL;
360
OpenDRIM_AccountCapabilities_CreateGoalSettings_Out() {
361
SupportedGoalSettings_isNULL = true;
364
~OpenDRIM_AccountCapabilities_CreateGoalSettings_Out() {}
366
int getSupportedGoalSettings(vector<string>& value) const {
367
if (SupportedGoalSettings_isNULL == true)
369
value = SupportedGoalSettings;
372
int setSupportedGoalSettings(const vector<string>& newValue) {
373
SupportedGoalSettings = newValue;
374
SupportedGoalSettings_isNULL = false;
380
#endif /*OPENDRIM_ACCOUNTCAPABILITIES_H_*/