1 karl 1.6 //%2006////////////////////////////////////////////////////////////////////////
|
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 karl 1.6 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
12 // EMC Corporation; Symantec Corporation; The Open Group.
|
13 chip 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 karl 1.2 //
|
21 chip 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: Chip Vincent (cvincent@us.ibm.com)
33 //
|
34 aruran.ms 1.3 // Modified By: Aruran, IBM (ashanmug@in.ibm.com) for Bug# 3614
|
35 vijay.eli 1.4 // Vijay Eli, IBM, (vijayeli@in.ibm.com) for Bug# 3613
|
36 aruran.ms 1.5 // Aruran, IBM (ashanmug@in.ibm.com) for Bug# 3613
|
37 chip 1.1 //
38 //%/////////////////////////////////////////////////////////////////////////////
39
40 #ifndef Pegasus_NormalizationPropertyOwner_h
41 #define Pegasus_NormalizationPropertyOwner_h
42
43 #include <Pegasus/Config/ConfigPropertyOwner.h>
44
45 #include <Pegasus/Common/AutoPtr.h>
46
47 PEGASUS_NAMESPACE_BEGIN
48
49 /**
50 This is NormalizationPropertyOwner class that extends ConfigPropertyOwner
51 class.
52 */
53 class PEGASUS_CONFIG_LINKAGE NormalizationPropertyOwner : public ConfigPropertyOwner
54 {
55 public:
56 NormalizationPropertyOwner(void);
57
58 chip 1.1 /**
59 Initialize the config properties.
60
61 This method is expected to be called only once at the start of the
62 CIMOM. It initializes the properties with the default values.
63 */
64 void initialize(void);
65
66 /**
67 Get information about the specified property.
68
69 @param propertyName The name of the property.
70 @param propertyInfo List to store the property info.
71 @exception UnrecognizedConfigProperty if the property is not defined.
72 */
|
73 vijay.eli 1.4 void getPropertyInfo(const String & name, Array<String> & propertyInfo)
74 const;
|
75 chip 1.1
76 /**
77 Get default value of the specified property.
78
79 @param name The name of the property.
80 @return string containing the default value of the property specified.
81 @exception UnrecognizedConfigProperty if the property is not defined.
82 */
|
83 vijay.eli 1.4 String getDefaultValue(const String & name)const;
|
84 chip 1.1
85 /**
86 Get current value of the specified property.
87
88 @param name The name of the property.
89 @return string containing the currnet value of the property specified.
90 @exception UnrecognizedConfigProperty if the property is not defined.
91 */
|
92 vijay.eli 1.4 String getCurrentValue(const String & name)const;
|
93 chip 1.1
94 /**
95 Get planned value of the specified property.
96
97 @param name The name of the property.
98 @return string containing the planned value of the property specified.
99 @exception UnrecognizedConfigProperty if the property is not defined.
100 */
|
101 vijay.eli 1.4 String getPlannedValue(const String & name)const;
|
102 chip 1.1
103 /**
104 Init current value of the specified property to the specified value.
105 This method is expected to be called only once at the start of the
106 CIMOM. The property value will be initialized irrespective of whether
107 the property is dynamic or not.
108
109 @param name The name of the property.
110 @param value The current value of the property.
111 @exception UnrecognizedConfigProperty if the property is not defined.
112 @exception InvalidPropertyValue if the property value is not valid.
113 */
114 void initCurrentValue(const String & name, const String & value);
115
116 /**
117 Init planned value of the specified property to the specified value.
118 This method is expected to be called only once at the start of the
119 CIMOM. The property value will be initialized irrespective of whether
120 the property is dynamic or not.
121
122 @param name The name of the property.
123 chip 1.1 @param value The planned value of the property.
124 @exception UnrecognizedConfigProperty if the property is not defined.
125 @exception InvalidPropertyValue if the property value is not valid.
126 */
127 void initPlannedValue(const String & name, const String & value);
128
129 /**
130 Update current value of the specified property to the specified value.
131 The property value will be updated only if the property is dynamically
132 updatable.
133
134 @param name The name of the property.
135 @param value The current value of the property.
136 @exception NonDynamicConfigProperty if the property is not dynamic.
137 @exception InvalidPropertyValue if the property value is not valid.
138 @exception UnrecognizedConfigProperty if the property is not defined.
139 */
140 void updateCurrentValue(const String & name, const String & value);
141
142 /**
143 Update planned value of the specified property to the specified value.
144 chip 1.1
145 @param name The name of the property.
146 @param value The planned value of the property.
147 @exception InvalidPropertyValue if the property value is not valid.
148 @exception UnrecognizedConfigProperty if the property is not defined.
149 */
150 void updatePlannedValue(const String & name, const String & value);
151
152 /**
153 Checks to see if the given value is valid or not.
154
155 @param name The name of the property.
156 @param value The value of the property to be validated.
157 @return Boolean True if the specified value for the property is valid.
158 @exception UnrecognizedConfigProperty if the property is not defined.
159 */
|
160 vijay.eli 1.4 Boolean isValid(const String & name, const String & value)const;
|
161 chip 1.1
162 /**
163 Checks to see if the specified property is dynamic or not.
164
165 @param name The name of the property.
166 @return Boolean True if the specified property is dynamic.
167 @exception UnrecognizedConfigProperty if the property is not defined.
168 */
|
169 vijay.eli 1.4 Boolean isDynamic(const String & name)const;
|
170 chip 1.1
171 private:
|
172 aruran.ms 1.5 struct ConfigProperty * _lookupConfigProperty(const String & name) const;
|
173 chip 1.1
174 AutoPtr<struct ConfigProperty> _providerObjectNormalizationEnabled;
175 AutoPtr<struct ConfigProperty> _providerObjectNormalizationModuleExclusions;
176
177 };
178
179 PEGASUS_NAMESPACE_END
180
181 #endif
|