1 karl 1.2 //%2005////////////////////////////////////////////////////////////////////////
|
2 chip 1.1 //
3 // 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 // IBM Corp.; EMC Corporation, The Open Group.
7 // 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.2 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
10 // EMC Corporation; VERITAS Software Corporation; The Open Group.
|
11 chip 1.1 //
12 // Permission is hereby granted, free of charge, to any person obtaining a copy
13 // of this software and associated documentation files (the "Software"), to
14 // deal in the Software without restriction, including without limitation the
15 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
16 // sell copies of the Software, and to permit persons to whom the Software is
17 // furnished to do so, subject to the following conditions:
|
18 karl 1.2 //
|
19 chip 1.1 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
20 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
21 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
22 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
23 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
24 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
25 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 //
28 //==============================================================================
29 //
30 // Author: Chip Vincent (cvincent@us.ibm.com)
31 //
|
32 aruran.ms 1.3 // Modified By: Aruran, IBM (ashanmug@in.ibm.com) for Bug# 3614
|
33 vijay.eli 1.4 // Vijay Eli, IBM, (vijayeli@in.ibm.com) for Bug# 3613
|
34 aruran.ms 1.5 // Aruran, IBM (ashanmug@in.ibm.com) for Bug# 3613
|
35 chip 1.1 //
36 //%/////////////////////////////////////////////////////////////////////////////
37
38 #ifndef Pegasus_NormalizationPropertyOwner_h
39 #define Pegasus_NormalizationPropertyOwner_h
40
41 #include <Pegasus/Config/ConfigPropertyOwner.h>
42
43 #include <Pegasus/Common/AutoPtr.h>
44
45 PEGASUS_NAMESPACE_BEGIN
46
47 /**
48 This is NormalizationPropertyOwner class that extends ConfigPropertyOwner
49 class.
50 */
51 class PEGASUS_CONFIG_LINKAGE NormalizationPropertyOwner : public ConfigPropertyOwner
52 {
53 public:
54 NormalizationPropertyOwner(void);
55
56 chip 1.1 /**
57 Initialize the config properties.
58
59 This method is expected to be called only once at the start of the
60 CIMOM. It initializes the properties with the default values.
61 */
62 void initialize(void);
63
64 /**
65 Get information about the specified property.
66
67 @param propertyName The name of the property.
68 @param propertyInfo List to store the property info.
69 @exception UnrecognizedConfigProperty if the property is not defined.
70 */
|
71 vijay.eli 1.4 void getPropertyInfo(const String & name, Array<String> & propertyInfo)
72 const;
|
73 chip 1.1
74 /**
75 Get default value of the specified property.
76
77 @param name The name of the property.
78 @return string containing the default value of the property specified.
79 @exception UnrecognizedConfigProperty if the property is not defined.
80 */
|
81 vijay.eli 1.4 String getDefaultValue(const String & name)const;
|
82 chip 1.1
83 /**
84 Get current value of the specified property.
85
86 @param name The name of the property.
87 @return string containing the currnet value of the property specified.
88 @exception UnrecognizedConfigProperty if the property is not defined.
89 */
|
90 vijay.eli 1.4 String getCurrentValue(const String & name)const;
|
91 chip 1.1
92 /**
93 Get planned value of the specified property.
94
95 @param name The name of the property.
96 @return string containing the planned value of the property specified.
97 @exception UnrecognizedConfigProperty if the property is not defined.
98 */
|
99 vijay.eli 1.4 String getPlannedValue(const String & name)const;
|
100 chip 1.1
101 /**
102 Init current value of the specified property to the specified value.
103 This method is expected to be called only once at the start of the
104 CIMOM. The property value will be initialized irrespective of whether
105 the property is dynamic or not.
106
107 @param name The name of the property.
108 @param value The current value of the property.
109 @exception UnrecognizedConfigProperty if the property is not defined.
110 @exception InvalidPropertyValue if the property value is not valid.
111 */
112 void initCurrentValue(const String & name, const String & value);
113
114 /**
115 Init planned value of the specified property to the specified value.
116 This method is expected to be called only once at the start of the
117 CIMOM. The property value will be initialized irrespective of whether
118 the property is dynamic or not.
119
120 @param name The name of the property.
121 chip 1.1 @param value The planned value of the property.
122 @exception UnrecognizedConfigProperty if the property is not defined.
123 @exception InvalidPropertyValue if the property value is not valid.
124 */
125 void initPlannedValue(const String & name, const String & value);
126
127 /**
128 Update current value of the specified property to the specified value.
129 The property value will be updated only if the property is dynamically
130 updatable.
131
132 @param name The name of the property.
133 @param value The current value of the property.
134 @exception NonDynamicConfigProperty if the property is not dynamic.
135 @exception InvalidPropertyValue if the property value is not valid.
136 @exception UnrecognizedConfigProperty if the property is not defined.
137 */
138 void updateCurrentValue(const String & name, const String & value);
139
140 /**
141 Update planned value of the specified property to the specified value.
142 chip 1.1
143 @param name The name of the property.
144 @param value The planned value of the property.
145 @exception InvalidPropertyValue if the property value is not valid.
146 @exception UnrecognizedConfigProperty if the property is not defined.
147 */
148 void updatePlannedValue(const String & name, const String & value);
149
150 /**
151 Checks to see if the given value is valid or not.
152
153 @param name The name of the property.
154 @param value The value of the property to be validated.
155 @return Boolean True if the specified value for the property is valid.
156 @exception UnrecognizedConfigProperty if the property is not defined.
157 */
|
158 vijay.eli 1.4 Boolean isValid(const String & name, const String & value)const;
|
159 chip 1.1
160 /**
161 Checks to see if the specified property is dynamic or not.
162
163 @param name The name of the property.
164 @return Boolean True if the specified property is dynamic.
165 @exception UnrecognizedConfigProperty if the property is not defined.
166 */
|
167 vijay.eli 1.4 Boolean isDynamic(const String & name)const;
|
168 chip 1.1
169 private:
|
170 aruran.ms 1.5 struct ConfigProperty * _lookupConfigProperty(const String & name) const;
|
171 chip 1.1
172 AutoPtr<struct ConfigProperty> _providerObjectNormalizationEnabled;
173 AutoPtr<struct ConfigProperty> _providerObjectNormalizationModuleExclusions;
174
175 };
176
177 PEGASUS_NAMESPACE_END
178
179 #endif
|