1 karl 1.16 //%2006////////////////////////////////////////////////////////////////////////
|
2 mike 1.1 //
|
3 karl 1.12 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
4 // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
5 // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
|
6 karl 1.8 // IBM Corp.; EMC Corporation, The Open Group.
|
7 karl 1.12 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
8 // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
|
9 karl 1.13 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
10 // EMC Corporation; VERITAS Software Corporation; The Open Group.
|
11 karl 1.16 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
12 // EMC Corporation; Symantec Corporation; The Open Group.
|
13 mike 1.1 //
14 // Permission is hereby granted, free of charge, to any person obtaining a copy
15 // of this software and associated documentation files (the "Software"), to
16 // deal in the Software without restriction, including without limitation the
17 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
18 // sell copies of the Software, and to permit persons to whom the Software is
19 // furnished to do so, subject to the following conditions:
|
20 kumpf 1.5 //
|
21 mike 1.1 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
22 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
23 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
24 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
25 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
26 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
27 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 //
30 //==============================================================================
31 //
32 // Author: Mike Brasher (mbrasher@bmc.com)
33 //
|
34 kumpf 1.3 // Modified By: Carol Ann Krug Graves, Hewlett-Packard Company
35 // (carolann_graves@hp.com)
|
36 kumpf 1.14 // Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
|
37 kumpf 1.3 //
|
38 mike 1.1 //%/////////////////////////////////////////////////////////////////////////////
39
40 #ifndef Pegasus_Common_RepositoryBase_h
41 #define Pegasus_Common_RepositoryBase_h
42
43 #include <Pegasus/Common/Config.h>
|
44 schuur 1.11 #include <Pegasus/Common/HashTable.h>
|
45 mike 1.1 #include <Pegasus/Common/IPC.h>
46 #include <Pegasus/Common/CIMClass.h>
47 #include <Pegasus/Common/CIMObject.h>
48 #include <Pegasus/Common/CIMInstance.h>
49 #include <Pegasus/Common/CIMPropertyList.h>
50 #include <Pegasus/Common/CIMQualifierDecl.h>
|
51 kumpf 1.15 #include <Pegasus/Common/ContentLanguageList.h>
|
52 mike 1.1
53 PEGASUS_NAMESPACE_BEGIN
54
55 class RepositoryDeclContext;
56
57 /** This class declares the interface for a CIM repository implementation.
58
|
59 kumpf 1.6 CIMRepositoryBase is a pure virtual base class (all the method signatures
|
60 mike 1.1 must
61 */
|
62 kumpf 1.6 class CIMRepositoryBase
|
63 mike 1.1 {
64 public:
65
66 virtual ~CIMRepositoryBase() { }
67
68 virtual CIMClass getClass(
|
69 kumpf 1.7 const CIMNamespaceName& nameSpace,
70 const CIMName& className,
|
71 mike 1.1 Boolean localOnly = true,
72 Boolean includeQualifiers = true,
73 Boolean includeClassOrigin = false,
74 const CIMPropertyList& propertyList = CIMPropertyList()) = 0;
75
76 virtual CIMInstance getInstance(
|
77 kumpf 1.7 const CIMNamespaceName& nameSpace,
|
78 kumpf 1.2 const CIMObjectPath& instanceName,
|
79 mike 1.1 Boolean localOnly = true,
80 Boolean includeQualifiers = false,
81 Boolean includeClassOrigin = false,
82 const CIMPropertyList& propertyList = CIMPropertyList()) = 0;
83
84 virtual void deleteClass(
|
85 kumpf 1.7 const CIMNamespaceName& nameSpace,
86 const CIMName& className) = 0;
|
87 mike 1.1
88 virtual void deleteInstance(
|
89 kumpf 1.7 const CIMNamespaceName& nameSpace,
|
90 kumpf 1.2 const CIMObjectPath& instanceName) = 0;
|
91 mike 1.1
92 virtual void createClass(
|
93 kumpf 1.7 const CIMNamespaceName& nameSpace,
|
94 chuck 1.10 const CIMClass& newClass,
|
95 kumpf 1.15 const ContentLanguageList& contentLangs = ContentLanguageList()) = 0;
|
96 mike 1.1
|
97 kumpf 1.2 virtual CIMObjectPath createInstance(
|
98 kumpf 1.7 const CIMNamespaceName& nameSpace,
|
99 chuck 1.10 const CIMInstance& newInstance,
|
100 kumpf 1.15 const ContentLanguageList& contentLangs = ContentLanguageList()) = 0;
|
101 mike 1.1
102 virtual void modifyClass(
|
103 kumpf 1.7 const CIMNamespaceName& nameSpace,
|
104 chuck 1.10 const CIMClass& modifiedClass,
|
105 kumpf 1.15 const ContentLanguageList& contentLangs = ContentLanguageList()) = 0;
|
106 mike 1.1
107 virtual void modifyInstance(
|
108 kumpf 1.7 const CIMNamespaceName& nameSpace,
|
109 kumpf 1.3 const CIMInstance& modifiedInstance,
|
110 mike 1.1 Boolean includeQualifiers = true,
|
111 chuck 1.10 const CIMPropertyList& propertyList = CIMPropertyList(),
|
112 kumpf 1.15 const ContentLanguageList& contentLangs = ContentLanguageList()) = 0;
|
113 mike 1.1
114 virtual Array<CIMClass> enumerateClasses(
|
115 kumpf 1.7 const CIMNamespaceName& nameSpace,
116 const CIMName& className = CIMName(),
|
117 mike 1.1 Boolean deepInheritance = false,
118 Boolean localOnly = true,
119 Boolean includeQualifiers = true,
120 Boolean includeClassOrigin = false) = 0;
121
|
122 kumpf 1.7 virtual Array<CIMName> enumerateClassNames(
123 const CIMNamespaceName& nameSpace,
124 const CIMName& className = CIMName(),
|
125 mike 1.1 Boolean deepInheritance = false) = 0;
126
|
127 kumpf 1.3 virtual Array<CIMInstance> enumerateInstances(
|
128 kumpf 1.7 const CIMNamespaceName& nameSpace,
129 const CIMName& className,
|
130 mike 1.1 Boolean deepInheritance = true,
131 Boolean localOnly = true,
132 Boolean includeQualifiers = false,
133 Boolean includeClassOrigin = false,
134 const CIMPropertyList& propertyList = CIMPropertyList()) = 0;
135
|
136 kumpf 1.2 virtual Array<CIMObjectPath> enumerateInstanceNames(
|
137 kumpf 1.7 const CIMNamespaceName& nameSpace,
138 const CIMName& className) = 0;
|
139 mike 1.1
140 virtual Array<CIMInstance> execQuery(
141 const String& queryLanguage,
142 const String& query) = 0;
143
|
144 kumpf 1.4 virtual Array<CIMObject> associators(
|
145 kumpf 1.7 const CIMNamespaceName& nameSpace,
|
146 kumpf 1.2 const CIMObjectPath& objectName,
|
147 kumpf 1.7 const CIMName& assocClass = CIMName(),
148 const CIMName& resultClass = CIMName(),
|
149 mike 1.1 const String& role = String::EMPTY,
150 const String& resultRole = String::EMPTY,
151 Boolean includeQualifiers = false,
152 Boolean includeClassOrigin = false,
153 const CIMPropertyList& propertyList = CIMPropertyList()) = 0;
154
|
155 kumpf 1.2 virtual Array<CIMObjectPath> associatorNames(
|
156 kumpf 1.7 const CIMNamespaceName& nameSpace,
|
157 kumpf 1.2 const CIMObjectPath& objectName,
|
158 kumpf 1.7 const CIMName& assocClass = CIMName(),
159 const CIMName& resultClass = CIMName(),
|
160 mike 1.1 const String& role = String::EMPTY,
161 const String& resultRole = String::EMPTY) = 0;
162
|
163 kumpf 1.4 virtual Array<CIMObject> references(
|
164 kumpf 1.7 const CIMNamespaceName& nameSpace,
|
165 kumpf 1.2 const CIMObjectPath& objectName,
|
166 kumpf 1.7 const CIMName& resultClass = CIMName(),
|
167 mike 1.1 const String& role = String::EMPTY,
168 Boolean includeQualifiers = false,
169 Boolean includeClassOrigin = false,
170 const CIMPropertyList& propertyList = CIMPropertyList()) = 0;
171
|
172 kumpf 1.2 virtual Array<CIMObjectPath> referenceNames(
|
173 kumpf 1.7 const CIMNamespaceName& nameSpace,
|
174 kumpf 1.2 const CIMObjectPath& objectName,
|
175 kumpf 1.7 const CIMName& resultClass = CIMName(),
|
176 mike 1.1 const String& role = String::EMPTY) = 0;
177
178 virtual CIMValue getProperty(
|
179 kumpf 1.7 const CIMNamespaceName& nameSpace,
|
180 kumpf 1.2 const CIMObjectPath& instanceName,
|
181 kumpf 1.7 const CIMName& propertyName) = 0;
|
182 mike 1.1
183 virtual void setProperty(
|
184 kumpf 1.7 const CIMNamespaceName& nameSpace,
|
185 kumpf 1.2 const CIMObjectPath& instanceName,
|
186 kumpf 1.7 const CIMName& propertyName,
|
187 chuck 1.10 const CIMValue& newValue = CIMValue(),
|
188 kumpf 1.15 const ContentLanguageList& contentLangs = ContentLanguageList()) = 0;
|
189 mike 1.1
190 virtual CIMQualifierDecl getQualifier(
|
191 kumpf 1.7 const CIMNamespaceName& nameSpace,
192 const CIMName& qualifierName) = 0;
|
193 mike 1.1
194 virtual void setQualifier(
|
195 kumpf 1.7 const CIMNamespaceName& nameSpace,
|
196 chuck 1.10 const CIMQualifierDecl& qualifierDecl,
|
197 kumpf 1.15 const ContentLanguageList& contentLangs = ContentLanguageList()) = 0;
|
198 mike 1.1
199 virtual void deleteQualifier(
|
200 kumpf 1.7 const CIMNamespaceName& nameSpace,
201 const CIMName& qualifierName) = 0;
|
202 mike 1.1
203 virtual Array<CIMQualifierDecl> enumerateQualifiers(
|
204 kumpf 1.7 const CIMNamespaceName& nameSpace) = 0;
|
205 mike 1.1
|
206 schuur 1.11 typedef HashTable <String, String, EqualNoCaseFunc, HashLowerCaseFunc> NameSpaceAttributes;
207
208 virtual void createNameSpace(const CIMNamespaceName& nameSpace,
209 const NameSpaceAttributes &attributes=NameSpaceAttributes()) = 0;
|
210 mike 1.1
|
211 kumpf 1.7 virtual Array<CIMNamespaceName> enumerateNameSpaces() const = 0;
|
212 mike 1.1
|
213 kumpf 1.7 virtual void deleteNameSpace(const CIMNamespaceName& nameSpace) = 0;
|
214 mike 1.1
|
215 schuur 1.11 virtual Boolean getNameSpaceAttributes(const CIMNamespaceName& nameSpace,
216 NameSpaceAttributes &attributes)=0;
217
|
218 mike 1.1 virtual void getSubClassNames(
|
219 kumpf 1.7 const CIMNamespaceName& nameSpaceName,
220 const CIMName& className,
|
221 mike 1.1 Boolean deepInheritance,
|
222 kumpf 1.7 Array<CIMName>& subClassNames) const = 0;
|
223 mike 1.1
224 virtual void getSuperClassNames(
|
225 kumpf 1.7 const CIMNamespaceName& nameSpaceName,
226 const CIMName& className,
227 Array<CIMName>& subClassNames) const = 0;
|
228 mike 1.1 };
229
230 PEGASUS_NAMESPACE_END
231
232 #endif /* Pegasus_Common_RepositoryBase_h */
|