(file) Return to CreateClass.HTML CVS log (file) (dir) Up to [Pegasus] / pegasus / cgi / htdocs

  1 karl  1.1 <html>
  2             <body bgcolor="#CCCCCC">
  3               <table width="100%">
  4                 <tr>
  5           	<td width="50%" align="bottom"><h1>CreateClass CIM Operation</h1><td>
  6           	<td width="50%" align="right">
  7           	  <img border=1 src="/pegasus/icons/OpenGroupLogo.gif">
  8                   </td>
  9                 </tr>
 10               </table>
 11               <hr>
 12 karl  1.2     <form name="CreateClass" METHOD=GET ACTION="/pegasus/cgi-bin/CGIClient">
 13                 <INPUT TYPE="hidden" NAME="Operation" VALUE="CreateClass">
 14 karl  1.4       <INPUT TYPE="hidden" NAME="hostaddress" VALUE="localhost:5988">
 15                 <INPUT TYPE="hidden" NAME="debug" VALUE="">
 16 karl  1.2       <p>The <TT>CreateClass</TT> method creates a single CIM Class for the target Namespace
 17                 where the ClassName input parameter defines the name of the class to be created.
 18 karl  1.3       <p><b>NameSpace</b> <INPUT TYPE="text" NAME="NameSpace" SIZE=30 VALUE="root/cimv2">
 19 karl  1.2       String that defines the target namespace. See <a href="getnamespaces.html">NameSpace
 20                 Operations</a> for more information<p><b>ClassName</b> <INPUT TYPE="text" NAME="NewClass" SIZE=30>
 21                 Defines the name of the Class to be created. See <a href="EnumerateClassNames.html">Enumerate
 22                 Class Names</a> for a list of classes that already exist
 23                 <p><b>SuperClass</b> <INPUT TYPE="text" NAME="SuperClass" SIZE=30> Name of the class that the new class inherits from
 24                 <p><b>PropertyName1 </b> <INPUT TYPE="text" NAME="PropertyName1" SIZE=30 >
 25                 &nbsp;&nbsp;&nbsp;<b>PropertyValue1 </b> <INPUT TYPE="text" NAME="PropertyValue1" SIZE=30 >&nbsp; String
 26                 <p><b>PropertyName2 </b> <INPUT TYPE="text" NAME="PropertyName2" SIZE=30 >
 27                 &nbsp;&nbsp;&nbsp;<b>PropertyValue2 </b> <INPUT TYPE="text" NAME="PropertyValue2" SIZE=30 >&nbsp; String
 28                <p><b>PropertyName3 </b> <INPUT TYPE="text" NAME="PropertyName3" SIZE=30 >
 29                 &nbsp;&nbsp;&nbsp;<b>PropertyValue3 </b> <INPUT TYPE="text" NAME="PropertyValue3" SIZE=30 >&nbsp; Integer
 30                 <p><INPUT TYPE="submit" VALUE="Submit Request">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 31                 <INPUT TYPE="reset" VALUE="Reset Form">
 32 karl  1.3 
 33 karl  1.2     <p><p>
 34 karl  1.1     The <TT>createClass</TT> method creates a single CIM Class in
 35               the target Namespace. The Class MUST NOT already exist. The NewClass input
 36               parameter defines the new Class.  The proposed definition MUST be a correct
 37               Class definition according to the CIM specification.
 38           
 39               In processing the creation of the new Class, the following rules MUST be
 40               conformed to by the CIM Server:
 41           
 42               Any CLASSORIGIN and PROPAGATED attributes in the NewClass MUST be ignored by
 43               the Server. If the new Class has no Superclass, the NewClass parameter
 44               defines a new base Class. The Server MUST ensure that all Properties and
 45               Methods of the new Class have a CLASSORIGIN attribute whose value is the
 46               name of the new Class. If the new Class has a Superclass, the NewClass
 47               parameter defines a new Subclass of that Superclass. The Superclass MUST
 48               exist. The Server MUST ensure that:
 49           
 50               <UL>
 51                   <LI>Any Properties, Methods or Qualifiers in the Subclass not defined in
 52                   the Superclass are created as new elements of the Subclass. In
 53                   particular the Server MUST set the CLASSORIGIN attribute on the new
 54                   Properties and Methods to the name of the Subclass, and ensure that all
 55 karl  1.1         other Properties and Methods preserve their CLASSORIGIN attribute value
 56                   from that defined in the Superclass
 57           
 58                   If a Property is defined in the Superclass and in the Subclass, the
 59                   value assigned to that property in the Subclass (including NULL) becomes
 60                   the default value of the property for the Subclass. If a Property or
 61                   Method of the Superclass is not specified in the Subclass, then that
 62                   Property or Method is inherited without modification by the Subclass
 63           
 64                   <LI>Any Qualifiers defined in the Superclass with a TOSUBCLASS attribute
 65                   value of true MUST appear in the resulting Subclass. Qualifiers in the
 66                   Superclass with a TOSUBCLASS attribute value of false MUST NOT be
 67                   propagated to the Subclass . Any Qualifier propagated from the
 68                   Superclass cannot be modified in the Subclass if the OVERRIDABLE
 69                   attribute of that Qualifier was set to false in the Superclass. It is a
 70                   Client error to specify such a Qualifier in the NewClass with a
 71                   different definition to that in the Superclass (where definition
 72                   encompasses the name, type and flavor attribute settings of the
 73                   <QUALIFIER> element, and the value of the Qualifier).
 74           	</LI>
 75               </UL>
 76 karl  1.1 
 77               @param NameSpace The NameSpace parameter is a string that defines the target
 78               namespace \Ref{NAMESPACE}
 79           
 80               @parm NewClass The NewClass input parameter defines the new Class.
 81           
 82               @return If successful, the specified Class MUST have been created by the CIM
 83               Server.
 84           
 85               If unsuccessful, one of the following status codes MUST be returned by this
 86               method, where the first applicable error in the list (starting with the
 87               first element of the list, and working down) is the error returned. Any
 88               additional method-specific interpretation of the error in is given in
 89               parentheses.
 90               <UL>
 91                    <LI>CIM_ERR_ACCESS_DENIED
 92                    <LI>CIM_ERR_NOT_SUPPORTED
 93                    <LI>CIM_ERR_INVALID_NAMESPACE
 94                    <LI>CIM_ERR_INVALID_PARAMETER (including missing, duplicate,
 95                    unrecognized or otherwise incorrect parameters)
 96                    <LI>CIM_ERR_ALREADY_EXISTS (the CIM Class already exists)
 97 karl  1.1          <LI>CIM_ERR_INVALID_SUPERCLASS (the putative CIM Class declares a
 98                    non-existent superclass)
 99                    <LI>CIM_ERR_FAILED (some other unspecified error occurred)</LI>
100               </UL>
101               <PRE>
102               virtual void createClass(
103           
104 karl  1.4 		const String&amp; nameSpace,
105           		ClassDecl&amp; newClass) = 0;
106 karl  1.1 
107               </PRE>
108                 	</form>
109 karl  1.2    <script>
110 karl  1.4        document.CreateClass.hostaddress.value = top.hostAddress;
111                  document.CreateClass.debug.value = top.debug;
112                  document.CreateClass.NameSpace.value = top.NameSpace;
113           	   window.focus();
114 karl  1.3    </script>
115 karl  1.1 	    </body>
116           </html>
117           

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2