Return to CreateClass.HTML CVS log | Up to [Pegasus] / pegasus / cgi / htdocs |
File: [Pegasus] / pegasus / cgi / htdocs / Attic / CreateClass.HTML
(download)
/
(as text)
Revision: 1.5, Thu Aug 28 17:10:40 2008 UTC (15 years, 10 months ago) by kumpf Branch: MAIN CVS Tags: TASK-PEP362_RestfulService-merged_out_from_trunk, TASK-PEP348_SCMO-merged_out_from_trunk, TASK-PEP317_pullop-merged_out_from_trunk, TASK-PEP317_pullop-merged_in_to_trunk, HPUX_TEST, HEAD Changes since 1.4: +0 -0 lines FILE REMOVED BUG#: 7860 TITLE: pegasus/cgi directory is obsolete DESCRIPTION: Remove unused files. |
<html> <body bgcolor="#CCCCCC"> <table width="100%"> <tr> <td width="50%" align="bottom"><h1>CreateClass CIM Operation</h1><td> <td width="50%" align="right"> <img border=1 src="/pegasus/icons/OpenGroupLogo.gif"> </td> </tr> </table> <hr> <form name="CreateClass" METHOD=GET ACTION="/pegasus/cgi-bin/CGIClient"> <INPUT TYPE="hidden" NAME="Operation" VALUE="CreateClass"> <INPUT TYPE="hidden" NAME="hostaddress" VALUE="localhost:5988"> <INPUT TYPE="hidden" NAME="debug" VALUE=""> <p>The <TT>CreateClass</TT> method creates a single CIM Class for the target Namespace where the ClassName input parameter defines the name of the class to be created. <p><b>NameSpace</b> <INPUT TYPE="text" NAME="NameSpace" SIZE=30 VALUE="root/cimv2"> String that defines the target namespace. See <a href="getnamespaces.html">NameSpace Operations</a> for more information<p><b>ClassName</b> <INPUT TYPE="text" NAME="NewClass" SIZE=30> Defines the name of the Class to be created. See <a href="EnumerateClassNames.html">Enumerate Class Names</a> for a list of classes that already exist <p><b>SuperClass</b> <INPUT TYPE="text" NAME="SuperClass" SIZE=30> Name of the class that the new class inherits from <p><b>PropertyName1 </b> <INPUT TYPE="text" NAME="PropertyName1" SIZE=30 > <b>PropertyValue1 </b> <INPUT TYPE="text" NAME="PropertyValue1" SIZE=30 > String <p><b>PropertyName2 </b> <INPUT TYPE="text" NAME="PropertyName2" SIZE=30 > <b>PropertyValue2 </b> <INPUT TYPE="text" NAME="PropertyValue2" SIZE=30 > String <p><b>PropertyName3 </b> <INPUT TYPE="text" NAME="PropertyName3" SIZE=30 > <b>PropertyValue3 </b> <INPUT TYPE="text" NAME="PropertyValue3" SIZE=30 > Integer <p><INPUT TYPE="submit" VALUE="Submit Request"> <INPUT TYPE="reset" VALUE="Reset Form"> <p><p> The <TT>createClass</TT> method creates a single CIM Class in the target Namespace. The Class MUST NOT already exist. The NewClass input parameter defines the new Class. The proposed definition MUST be a correct Class definition according to the CIM specification. In processing the creation of the new Class, the following rules MUST be conformed to by the CIM Server: Any CLASSORIGIN and PROPAGATED attributes in the NewClass MUST be ignored by the Server. If the new Class has no Superclass, the NewClass parameter defines a new base Class. The Server MUST ensure that all Properties and Methods of the new Class have a CLASSORIGIN attribute whose value is the name of the new Class. If the new Class has a Superclass, the NewClass parameter defines a new Subclass of that Superclass. The Superclass MUST exist. The Server MUST ensure that: <UL> <LI>Any Properties, Methods or Qualifiers in the Subclass not defined in the Superclass are created as new elements of the Subclass. In particular the Server MUST set the CLASSORIGIN attribute on the new Properties and Methods to the name of the Subclass, and ensure that all other Properties and Methods preserve their CLASSORIGIN attribute value from that defined in the Superclass If a Property is defined in the Superclass and in the Subclass, the value assigned to that property in the Subclass (including NULL) becomes the default value of the property for the Subclass. If a Property or Method of the Superclass is not specified in the Subclass, then that Property or Method is inherited without modification by the Subclass <LI>Any Qualifiers defined in the Superclass with a TOSUBCLASS attribute value of true MUST appear in the resulting Subclass. Qualifiers in the Superclass with a TOSUBCLASS attribute value of false MUST NOT be propagated to the Subclass . Any Qualifier propagated from the Superclass cannot be modified in the Subclass if the OVERRIDABLE attribute of that Qualifier was set to false in the Superclass. It is a Client error to specify such a Qualifier in the NewClass with a different definition to that in the Superclass (where definition encompasses the name, type and flavor attribute settings of the <QUALIFIER> element, and the value of the Qualifier). </LI> </UL> @param NameSpace The NameSpace parameter is a string that defines the target namespace \Ref{NAMESPACE} @parm NewClass The NewClass input parameter defines the new Class. @return If successful, the specified Class MUST have been created by the CIM Server. If unsuccessful, one of the following status codes MUST be returned by this method, where the first applicable error in the list (starting with the first element of the list, and working down) is the error returned. Any additional method-specific interpretation of the error in is given in parentheses. <UL> <LI>CIM_ERR_ACCESS_DENIED <LI>CIM_ERR_NOT_SUPPORTED <LI>CIM_ERR_INVALID_NAMESPACE <LI>CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters) <LI>CIM_ERR_ALREADY_EXISTS (the CIM Class already exists) <LI>CIM_ERR_INVALID_SUPERCLASS (the putative CIM Class declares a non-existent superclass) <LI>CIM_ERR_FAILED (some other unspecified error occurred)</LI> </UL> <PRE> virtual void createClass( const String& nameSpace, ClassDecl& newClass) = 0; </PRE> </form> <script> document.CreateClass.hostaddress.value = top.hostAddress; document.CreateClass.debug.value = top.debug; document.CreateClass.NameSpace.value = top.NameSpace; window.focus(); </script> </body> </html>
No CVS admin address has been configured |
Powered by ViewCVS 0.9.2 |