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_IDENTITYINGROUP_H_
33
#define OPENDRIM_IDENTITYINGROUP_H_
35
#include <Association.h>
37
// Direct Invocation includes, may have to be adjusted
39
#include "cmpiCIM_ManagedElement.h"
40
#include "CIM_ManagedElementAccess.h"
41
#include "cmpiCIM_Collection.h"
42
#include "CIM_CollectionAccess.h"
45
const static char* OpenDRIM_IdentityInGroup_classnames[] = {"OpenDRIM_IdentityInGroup"};
46
static string OpenDRIM_IdentityInGroup_NAMESPACE = _NAMESPACE;
47
const static string Member_role = "Member";
48
const static char* Member_classnames[] = {"OpenDRIM_AccountIdentity"};
49
const static string Member_NAMESPACE = _NAMESPACE;
51
const static string Collection_role = "Collection";
52
const static char* Collection_classnames[] = {"OpenDRIM_Group"};
53
const static string Collection_NAMESPACE = _NAMESPACE;
55
class OpenDRIM_IdentityInGroup {
59
Objectpath Collection;
60
bool Collection_isNULL;
66
bool IsPrimaryGroup_isNULL;
68
OpenDRIM_IdentityInGroup() {
69
Collection_isNULL = true;
71
IsPrimaryGroup_isNULL = true;
74
~OpenDRIM_IdentityInGroup() {}
76
string getKeys() const {
77
return CF_toLowCase(".Collection=\"" + CF_quoteString(Collection.toString()) + "\""".Member=\"" + CF_quoteString(Member.toString()) + "\"");
80
int getCollection(Objectpath& value) const {
81
if (Collection_isNULL==true)
87
int setCollection(const Objectpath& newValue) {
88
Collection = newValue;
89
Collection.setNamespace(Collection_NAMESPACE);
90
Collection_isNULL = false;
94
int getMember(Objectpath& value) const {
95
if (Member_isNULL==true)
101
int setMember(const Objectpath& newValue) {
103
Member.setNamespace(Member_NAMESPACE);
104
Member_isNULL = false;
108
int getIsPrimaryGroup(bool& value) const {
109
if (IsPrimaryGroup_isNULL==true)
111
value = IsPrimaryGroup;
115
int setIsPrimaryGroup(const bool& newValue) {
116
IsPrimaryGroup = newValue;
117
IsPrimaryGroup_isNULL = false;
123
#endif /*OPENDRIM_IDENTITYINGROUP_H_*/