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_ACCOUNTASSOCIATEDCAPABILITIES_H_
33
#define OPENDRIM_ACCOUNTASSOCIATEDCAPABILITIES_H_
35
#include <Association.h>
37
// Direct Invocation includes, may have to be adjusted
39
#include "cmpiCIM_Capabilities.h"
40
#include "CIM_CapabilitiesAccess.h"
41
#include "cmpiCIM_ManagedElement.h"
42
#include "CIM_ManagedElementAccess.h"
45
const static char* OpenDRIM_AccountAssociatedCapabilities_classnames[] = {"OpenDRIM_AccountAssociatedCapabilities"};
46
static string OpenDRIM_AccountAssociatedCapabilities_NAMESPACE = _NAMESPACE;
47
const static string Capabilities_role = "Capabilities";
48
const static char* Capabilities_classnames[] = {"OpenDRIM_AccountCapabilities"};
49
const static string Capabilities_NAMESPACE = _NAMESPACE;
51
const static string ManagedElement_role = "ManagedElement";
52
const static char* ManagedElement_classnames[] = {"OpenDRIM_Account"};
53
const static string ManagedElement_NAMESPACE = _NAMESPACE;
55
class OpenDRIM_AccountAssociatedCapabilities {
59
Objectpath ManagedElement;
60
bool ManagedElement_isNULL;
62
Objectpath Capabilities;
63
bool Capabilities_isNULL;
65
vector<unsigned short> Characteristics;
66
bool Characteristics_isNULL;
68
OpenDRIM_AccountAssociatedCapabilities() {
69
ManagedElement_isNULL = true;
70
Capabilities_isNULL = true;
71
Characteristics_isNULL = true;
74
~OpenDRIM_AccountAssociatedCapabilities() {}
76
string getKeys() const {
77
return CF_toLowCase(".ManagedElement=\"" + CF_quoteString(ManagedElement.toString()) + "\""".Capabilities=\"" + CF_quoteString(Capabilities.toString()) + "\"");
80
int getManagedElement(Objectpath& value) const {
81
if (ManagedElement_isNULL==true)
83
value = ManagedElement;
87
int setManagedElement(const Objectpath& newValue) {
88
ManagedElement = newValue;
89
ManagedElement.setNamespace(ManagedElement_NAMESPACE);
90
ManagedElement_isNULL = false;
94
int getCapabilities(Objectpath& value) const {
95
if (Capabilities_isNULL==true)
101
int setCapabilities(const Objectpath& newValue) {
102
Capabilities = newValue;
103
Capabilities.setNamespace(Capabilities_NAMESPACE);
104
Capabilities_isNULL = false;
108
int getCharacteristics(vector<unsigned short>& value) const {
109
if (Characteristics_isNULL==true)
111
value = Characteristics;
115
int setCharacteristics(const vector<unsigned short>& newValue) {
116
Characteristics = newValue;
117
Characteristics_isNULL = false;
123
#endif /*OPENDRIM_ACCOUNTASSOCIATEDCAPABILITIES_H_*/