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_ACCOUNTMANAGEMENTSERVICE_H_
33
#define OPENDRIM_ACCOUNTMANAGEMENTSERVICE_H_
37
const static char* OpenDRIM_AccountManagementService_classnames[] = {"OpenDRIM_AccountManagementService"};
38
static string OpenDRIM_AccountManagementService_NAMESPACE = _NAMESPACE;
40
class OpenDRIM_AccountManagementService {
48
bool Description_isNULL;
51
bool ElementName_isNULL;
54
bool InstallDate_isNULL;
56
vector<unsigned short> OperationalStatus;
57
bool OperationalStatus_isNULL;
59
vector<string> StatusDescriptions;
60
bool StatusDescriptions_isNULL;
65
unsigned short HealthState;
66
bool HealthState_isNULL;
68
unsigned short PrimaryStatus;
69
bool PrimaryStatus_isNULL;
71
unsigned short DetailedStatus;
72
bool DetailedStatus_isNULL;
74
unsigned short OperatingStatus;
75
bool OperatingStatus_isNULL;
77
unsigned short CommunicationStatus;
78
bool CommunicationStatus_isNULL;
80
unsigned short EnabledState;
81
bool EnabledState_isNULL;
83
string OtherEnabledState;
84
bool OtherEnabledState_isNULL;
86
unsigned short RequestedState;
87
bool RequestedState_isNULL;
89
unsigned short EnabledDefault;
90
bool EnabledDefault_isNULL;
92
string TimeOfLastStateChange;
93
bool TimeOfLastStateChange_isNULL;
95
vector<unsigned short> AvailableRequestedStates;
96
bool AvailableRequestedStates_isNULL;
98
unsigned short TransitioningToState;
99
bool TransitioningToState_isNULL;
101
string SystemCreationClassName;
102
bool SystemCreationClassName_isNULL;
105
bool SystemName_isNULL;
107
string CreationClassName;
108
bool CreationClassName_isNULL;
113
string PrimaryOwnerName;
114
bool PrimaryOwnerName_isNULL;
116
string PrimaryOwnerContact;
117
bool PrimaryOwnerContact_isNULL;
120
bool StartMode_isNULL;
125
OpenDRIM_AccountManagementService() {
126
Caption_isNULL = true;
127
Description_isNULL = true;
128
ElementName_isNULL = true;
129
InstallDate_isNULL = true;
130
OperationalStatus_isNULL = true;
131
StatusDescriptions_isNULL = true;
132
Status_isNULL = true;
133
HealthState_isNULL = true;
134
PrimaryStatus_isNULL = true;
135
DetailedStatus_isNULL = true;
136
OperatingStatus_isNULL = true;
137
CommunicationStatus_isNULL = true;
138
EnabledState_isNULL = true;
139
OtherEnabledState_isNULL = true;
140
RequestedState_isNULL = true;
141
EnabledDefault_isNULL = true;
142
TimeOfLastStateChange_isNULL = true;
143
AvailableRequestedStates_isNULL = true;
144
TransitioningToState_isNULL = true;
145
SystemCreationClassName_isNULL = true;
146
SystemName_isNULL = true;
147
CreationClassName_isNULL = true;
149
PrimaryOwnerName_isNULL = true;
150
PrimaryOwnerContact_isNULL = true;
151
StartMode_isNULL = true;
152
Started_isNULL = true;
155
~OpenDRIM_AccountManagementService() {}
157
string getKeys() const {
158
return CF_toLowCase(".SystemCreationClassName=\"" + CF_quoteString(SystemCreationClassName) + "\""".SystemName=\"" + CF_quoteString(SystemName) + "\""".CreationClassName=\"" + CF_quoteString(CreationClassName) + "\""".Name=\"" + CF_quoteString(Name) + "\"");
161
int getCaption(string& value) const {
162
if (Caption_isNULL==true)
168
int setCaption(const string& newValue) {
170
Caption_isNULL = false;
174
int getDescription(string& value) const {
175
if (Description_isNULL==true)
181
int setDescription(const string& newValue) {
182
Description = newValue;
183
Description_isNULL = false;
187
int getElementName(string& value) const {
188
if (ElementName_isNULL==true)
194
int setElementName(const string& newValue) {
195
ElementName = newValue;
196
ElementName_isNULL = false;
200
int getInstallDate(string& value) const {
201
if (InstallDate_isNULL==true)
207
int setInstallDate(const string& newValue) {
208
InstallDate = newValue;
209
InstallDate_isNULL = false;
213
int getOperationalStatus(vector<unsigned short>& value) const {
214
if (OperationalStatus_isNULL==true)
216
value = OperationalStatus;
220
int setOperationalStatus(const vector<unsigned short>& newValue) {
221
OperationalStatus = newValue;
222
OperationalStatus_isNULL = false;
226
int getStatusDescriptions(vector<string>& value) const {
227
if (StatusDescriptions_isNULL==true)
229
value = StatusDescriptions;
233
int setStatusDescriptions(const vector<string>& newValue) {
234
StatusDescriptions = newValue;
235
StatusDescriptions_isNULL = false;
239
int getStatus(string& value) const {
240
if (Status_isNULL==true)
246
int setStatus(const string& newValue) {
248
Status_isNULL = false;
252
int getHealthState(unsigned short& value) const {
253
if (HealthState_isNULL==true)
259
int setHealthState(const unsigned short& newValue) {
260
HealthState = newValue;
261
HealthState_isNULL = false;
265
int getPrimaryStatus(unsigned short& value) const {
266
if (PrimaryStatus_isNULL==true)
268
value = PrimaryStatus;
272
int setPrimaryStatus(const unsigned short& newValue) {
273
PrimaryStatus = newValue;
274
PrimaryStatus_isNULL = false;
278
int getDetailedStatus(unsigned short& value) const {
279
if (DetailedStatus_isNULL==true)
281
value = DetailedStatus;
285
int setDetailedStatus(const unsigned short& newValue) {
286
DetailedStatus = newValue;
287
DetailedStatus_isNULL = false;
291
int getOperatingStatus(unsigned short& value) const {
292
if (OperatingStatus_isNULL==true)
294
value = OperatingStatus;
298
int setOperatingStatus(const unsigned short& newValue) {
299
OperatingStatus = newValue;
300
OperatingStatus_isNULL = false;
304
int getCommunicationStatus(unsigned short& value) const {
305
if (CommunicationStatus_isNULL==true)
307
value = CommunicationStatus;
311
int setCommunicationStatus(const unsigned short& newValue) {
312
CommunicationStatus = newValue;
313
CommunicationStatus_isNULL = false;
317
int getEnabledState(unsigned short& value) const {
318
if (EnabledState_isNULL==true)
320
value = EnabledState;
324
int setEnabledState(const unsigned short& newValue) {
325
EnabledState = newValue;
326
EnabledState_isNULL = false;
330
int getOtherEnabledState(string& value) const {
331
if (OtherEnabledState_isNULL==true)
333
value = OtherEnabledState;
337
int setOtherEnabledState(const string& newValue) {
338
OtherEnabledState = newValue;
339
OtherEnabledState_isNULL = false;
343
int getRequestedState(unsigned short& value) const {
344
if (RequestedState_isNULL==true)
346
value = RequestedState;
350
int setRequestedState(const unsigned short& newValue) {
351
RequestedState = newValue;
352
RequestedState_isNULL = false;
356
int getEnabledDefault(unsigned short& value) const {
357
if (EnabledDefault_isNULL==true)
359
value = EnabledDefault;
363
int setEnabledDefault(const unsigned short& newValue) {
364
EnabledDefault = newValue;
365
EnabledDefault_isNULL = false;
369
int getTimeOfLastStateChange(string& value) const {
370
if (TimeOfLastStateChange_isNULL==true)
372
value = TimeOfLastStateChange;
376
int setTimeOfLastStateChange(const string& newValue) {
377
TimeOfLastStateChange = newValue;
378
TimeOfLastStateChange_isNULL = false;
382
int getAvailableRequestedStates(vector<unsigned short>& value) const {
383
if (AvailableRequestedStates_isNULL==true)
385
value = AvailableRequestedStates;
389
int setAvailableRequestedStates(const vector<unsigned short>& newValue) {
390
AvailableRequestedStates = newValue;
391
AvailableRequestedStates_isNULL = false;
395
int getTransitioningToState(unsigned short& value) const {
396
if (TransitioningToState_isNULL==true)
398
value = TransitioningToState;
402
int setTransitioningToState(const unsigned short& newValue) {
403
TransitioningToState = newValue;
404
TransitioningToState_isNULL = false;
408
int getSystemCreationClassName(string& value) const {
409
if (SystemCreationClassName_isNULL==true)
411
value = SystemCreationClassName;
415
int setSystemCreationClassName(const string& newValue) {
416
SystemCreationClassName = newValue;
417
SystemCreationClassName_isNULL = false;
421
int getSystemName(string& value) const {
422
if (SystemName_isNULL==true)
428
int setSystemName(const string& newValue) {
429
SystemName = newValue;
430
SystemName_isNULL = false;
434
int getCreationClassName(string& value) const {
435
if (CreationClassName_isNULL==true)
437
value = CreationClassName;
441
int setCreationClassName(const string& newValue) {
442
CreationClassName = newValue;
443
CreationClassName_isNULL = false;
447
int getName(string& value) const {
448
if (Name_isNULL==true)
454
int setName(const string& newValue) {
460
int getPrimaryOwnerName(string& value) const {
461
if (PrimaryOwnerName_isNULL==true)
463
value = PrimaryOwnerName;
467
int setPrimaryOwnerName(const string& newValue) {
468
PrimaryOwnerName = newValue;
469
PrimaryOwnerName_isNULL = false;
473
int getPrimaryOwnerContact(string& value) const {
474
if (PrimaryOwnerContact_isNULL==true)
476
value = PrimaryOwnerContact;
480
int setPrimaryOwnerContact(const string& newValue) {
481
PrimaryOwnerContact = newValue;
482
PrimaryOwnerContact_isNULL = false;
486
int getStartMode(string& value) const {
487
if (StartMode_isNULL==true)
493
int setStartMode(const string& newValue) {
494
StartMode = newValue;
495
StartMode_isNULL = false;
499
int getStarted(bool& value) const {
500
if (Started_isNULL==true)
506
int setStarted(const bool& newValue) {
508
Started_isNULL = false;
514
class OpenDRIM_AccountManagementService_RequestStateChange_In {
518
unsigned short RequestedState;
519
bool RequestedState_isNULL;
524
string TimeoutPeriod;
525
bool TimeoutPeriod_isNULL;
527
OpenDRIM_AccountManagementService_RequestStateChange_In() {
528
RequestedState_isNULL = true;
530
TimeoutPeriod_isNULL = true;
533
~OpenDRIM_AccountManagementService_RequestStateChange_In() {}
535
int getRequestedState(unsigned short& value) const {
536
if (RequestedState_isNULL == true)
538
value = RequestedState;
541
int setRequestedState(const unsigned short& newValue) {
542
RequestedState = newValue;
543
RequestedState_isNULL = false;
547
int getJob(Objectpath& value) const {
548
if (Job_isNULL == true)
553
int setJob(const Objectpath& newValue) {
559
int getTimeoutPeriod(string& value) const {
560
if (TimeoutPeriod_isNULL == true)
562
value = TimeoutPeriod;
565
int setTimeoutPeriod(const string& newValue) {
566
TimeoutPeriod = newValue;
567
TimeoutPeriod_isNULL = false;
573
class OpenDRIM_AccountManagementService_RequestStateChange_Out {
580
OpenDRIM_AccountManagementService_RequestStateChange_Out() {
584
~OpenDRIM_AccountManagementService_RequestStateChange_Out() {}
586
int getJob(Objectpath& value) const {
587
if (Job_isNULL == true)
592
int setJob(const Objectpath& newValue) {
600
class OpenDRIM_AccountManagementService_ChangeAffectedElementsAssignedSequence_In {
604
vector<Objectpath> ManagedElements;
605
bool ManagedElements_isNULL;
607
vector<unsigned short> AssignedSequence;
608
bool AssignedSequence_isNULL;
613
OpenDRIM_AccountManagementService_ChangeAffectedElementsAssignedSequence_In() {
614
ManagedElements_isNULL = true;
615
AssignedSequence_isNULL = true;
619
~OpenDRIM_AccountManagementService_ChangeAffectedElementsAssignedSequence_In() {}
621
int getManagedElements(vector<Objectpath>& value) const {
622
if (ManagedElements_isNULL == true)
624
value = ManagedElements;
627
int setManagedElements(const vector<Objectpath>& newValue) {
628
ManagedElements = newValue;
629
ManagedElements_isNULL = false;
633
int getAssignedSequence(vector<unsigned short>& value) const {
634
if (AssignedSequence_isNULL == true)
636
value = AssignedSequence;
639
int setAssignedSequence(const vector<unsigned short>& newValue) {
640
AssignedSequence = newValue;
641
AssignedSequence_isNULL = false;
645
int getJob(Objectpath& value) const {
646
if (Job_isNULL == true)
651
int setJob(const Objectpath& newValue) {
659
class OpenDRIM_AccountManagementService_ChangeAffectedElementsAssignedSequence_Out {
666
OpenDRIM_AccountManagementService_ChangeAffectedElementsAssignedSequence_Out() {
670
~OpenDRIM_AccountManagementService_ChangeAffectedElementsAssignedSequence_Out() {}
672
int getJob(Objectpath& value) const {
673
if (Job_isNULL == true)
678
int setJob(const Objectpath& newValue) {
686
class OpenDRIM_AccountManagementService_CreateAccount_In {
693
string AccountTemplate;
694
bool AccountTemplate_isNULL;
699
vector<Objectpath> Identities;
700
bool Identities_isNULL;
702
OpenDRIM_AccountManagementService_CreateAccount_In() {
703
System_isNULL = true;
704
AccountTemplate_isNULL = true;
705
Account_isNULL = true;
706
Identities_isNULL = true;
709
~OpenDRIM_AccountManagementService_CreateAccount_In() {}
711
int getSystem(Objectpath& value) const {
712
if (System_isNULL == true)
717
int setSystem(const Objectpath& newValue) {
719
System_isNULL = false;
723
int getAccountTemplate(string& value) const {
724
if (AccountTemplate_isNULL == true)
726
value = AccountTemplate;
729
int setAccountTemplate(const string& newValue) {
730
AccountTemplate = newValue;
731
AccountTemplate_isNULL = false;
735
int getAccount(Objectpath& value) const {
736
if (Account_isNULL == true)
741
int setAccount(const Objectpath& newValue) {
743
Account_isNULL = false;
747
int getIdentities(vector<Objectpath>& value) const {
748
if (Identities_isNULL == true)
753
int setIdentities(const vector<Objectpath>& newValue) {
754
Identities = newValue;
755
Identities_isNULL = false;
761
class OpenDRIM_AccountManagementService_CreateAccount_Out {
768
vector<Objectpath> Identities;
769
bool Identities_isNULL;
771
OpenDRIM_AccountManagementService_CreateAccount_Out() {
772
Account_isNULL = true;
773
Identities_isNULL = true;
776
~OpenDRIM_AccountManagementService_CreateAccount_Out() {}
778
int getAccount(Objectpath& value) const {
779
if (Account_isNULL == true)
784
int setAccount(const Objectpath& newValue) {
786
Account_isNULL = false;
790
int getIdentities(vector<Objectpath>& value) const {
791
if (Identities_isNULL == true)
796
int setIdentities(const vector<Objectpath>& newValue) {
797
Identities = newValue;
798
Identities_isNULL = false;
804
#endif /*OPENDRIM_ACCOUNTMANAGEMENTSERVICE_H_*/