OW_NAMESPACE::WQLFilterRep Class Reference

#include <OW_WQLFilterRep.hpp>

Inheritance diagram for OW_NAMESPACE::WQLFilterRep:

Inheritance graph
[legend]
Collaboration diagram for OW_NAMESPACE::WQLFilterRep:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 WQLFilterRep (const CIMInstance &inst, const RepositoryIFCRef &cimServer)
virtual void open (const String &)
 Open this RepositoryIFC.
virtual void close ()
 Close this GenericHDBRepository.
virtual String getName () const
 Every service may have a name.
virtual void init (const ServiceEnvironmentIFCRef &env)
 init() will be called to give the derived class an opportunity to initialize itself.
virtual void shutdown ()
 The service must shutdown completely before returning from this function.
virtual ServiceEnvironmentIFCRef getEnvironment () const
virtual void enumNameSpace (StringResultHandlerIFC &result, OperationContext &context)
 Gets a list of the namespaces.
virtual void createNameSpace (const String &ns, OperationContext &context)
 Create a cim namespace.
virtual void deleteNameSpace (const String &ns, OperationContext &context)
 Delete a specified namespace.
virtual CIMQualifierType getQualifierType (const String &ns, const String &qualifierName, OperationContext &context)
 Get an existing qualifier type from the repository.
virtual void setQualifierType (const String &ns, const CIMQualifierType &qt, OperationContext &context)
 Updates the specified CIM qualifier type in the specified namespace.
virtual void enumQualifierTypes (const String &ns, CIMQualifierTypeResultHandlerIFC &result, OperationContext &context)
 Enumerate the qualifier types in a name space.
virtual void deleteQualifierType (const String &ns, const String &qualName, OperationContext &context)
 Delete an existing qualifier type from the repository.
virtual void createClass (const String &ns, const CIMClass &cimClass, OperationContext &context)
 creates a class in the store
virtual CIMClass modifyClass (const String &ns, const CIMClass &cc, OperationContext &context)
 set a class in the store - note children are not affected
virtual CIMClass deleteClass (const String &ns, const String &className, OperationContext &context)
 Delete an existing class from the store.
virtual CIMClass getClass (const String &ns, const String &className, WBEMFlags::ELocalOnlyFlag localOnly, WBEMFlags::EIncludeQualifiersFlag includeQualifiers, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin, const StringArray *propertyList, OperationContext &context)
 Gets an existing class from a store.
virtual CIMInstance getInstance (const String &ns, const CIMObjectPath &instanceName, WBEMFlags::ELocalOnlyFlag localOnly, WBEMFlags::EIncludeQualifiersFlag includeQualifiers, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin, const StringArray *propertyList, OperationContext &context)
 Retrieve a specific instance.
virtual void enumClasses (const String &ns, const String &className, CIMClassResultHandlerIFC &result, WBEMFlags::EDeepFlag deep, WBEMFlags::ELocalOnlyFlag localOnly, WBEMFlags::EIncludeQualifiersFlag includeQualifiers, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin, OperationContext &context)
 Enumerates the class specified by the CIMObjectPath.
virtual void enumClassNames (const String &ns, const String &className, StringResultHandlerIFC &result, WBEMFlags::EDeepFlag deep, OperationContext &context)
 Enumerates the class specified by the CIMObjectPath.
virtual void enumInstances (const String &ns, const String &className, CIMInstanceResultHandlerIFC &result, WBEMFlags::EDeepFlag deep, WBEMFlags::ELocalOnlyFlag localOnly, WBEMFlags::EIncludeQualifiersFlag includeQualifiers, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin, const StringArray *propertyList, WBEMFlags::EEnumSubclassesFlag enumSubclasses, OperationContext &context)
 Retrieve an enumeration of instances (CIMInstance) for a particular class.
virtual void enumInstanceNames (const String &ns, const String &className, CIMObjectPathResultHandlerIFC &result, WBEMFlags::EDeepFlag deep, OperationContext &context)
 Retrieve an enumeration of instances (CIMInstance) for a particular class.
virtual CIMObjectPath createInstance (const String &ns, const CIMInstance &ci, OperationContext &context)
 Creates a instance in the store.
virtual CIMInstance modifyInstance (const String &ns, const CIMInstance &modifiedInstance, WBEMFlags::EIncludeQualifiersFlag includeQualifiers, const StringArray *propertyList, OperationContext &context)
 Update an instance.
virtual CIMInstance deleteInstance (const String &ns, const CIMObjectPath &cop, OperationContext &context)
 Delete an existing instance from the store.
virtual void setProperty (const String &ns, const CIMObjectPath &name, const String &propertyName, const CIMValue &cv, OperationContext &context)
 Set a property value on an CIMInstance.
virtual CIMValue getProperty (const String &ns, const CIMObjectPath &name, const String &propertyName, OperationContext &context)
 Get the specified CIM instance property.
virtual CIMValue invokeMethod (const String &ns, const CIMObjectPath &path, const String &methodName, const CIMParamValueArray &inParams, CIMParamValueArray &outParams, OperationContext &context)
 Invokes a method.
virtual void associators (const String &ns, const CIMObjectPath &path, CIMInstanceResultHandlerIFC &result, const String &assocClass, const String &resultClass, const String &role, const String &resultRole, WBEMFlags::EIncludeQualifiersFlag includeQualifiers, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin, const StringArray *propertyList, OperationContext &context)
 This operation is used to enumerate CIM Objects (Classes or Instances) that are associated to a particular source CIM Object.
virtual void associatorsClasses (const String &ns, const CIMObjectPath &path, CIMClassResultHandlerIFC &result, const String &assocClass, const String &resultClass, const String &role, const String &resultRole, WBEMFlags::EIncludeQualifiersFlag includeQualifiers, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin, const StringArray *propertyList, OperationContext &context)
 This operation is used to enumerate CIMClasses that are associated to a particular source CIM Object.
virtual void referenceNames (const String &ns, const CIMObjectPath &path, CIMObjectPathResultHandlerIFC &result, const String &resultClass, const String &role, OperationContext &context)
 This operation is used to enumerate the association objects that refer to a particular target CIM Object (Class or Instance).
virtual void associatorNames (const String &ns, const CIMObjectPath &path, CIMObjectPathResultHandlerIFC &result, const String &assocClass, const String &resultClass, const String &role, const String &resultRole, OperationContext &context)
 This method is used to enumerate the names of CIM Objects (Classes or Instances) that are associated to a particular CIM Object.
virtual void references (const String &ns, const CIMObjectPath &path, CIMInstanceResultHandlerIFC &result, const String &resultClass, const String &role, WBEMFlags::EIncludeQualifiersFlag includeQualifiers, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin, const StringArray *propertyList, OperationContext &context)
 This operation is used to enumerate the association objects that refer to a particular target CIM Object (Class or Instance).
virtual void referencesClasses (const String &ns, const CIMObjectPath &path, CIMClassResultHandlerIFC &result, const String &resultClass, const String &role, WBEMFlags::EIncludeQualifiersFlag includeQualifiers, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin, const StringArray *propertyList, OperationContext &context)
 This operation is used to enumerate the association objects that refer to a particular target CIM Class.
virtual void execQuery (const String &ns, CIMInstanceResultHandlerIFC &result, const String &query, const String &queryLanguage, OperationContext &context)
 Executes a query to retrieve or modify objects.
virtual void beginOperation (WBEMFlags::EOperationFlag op, OperationContext &context)
virtual void endOperation (WBEMFlags::EOperationFlag op, OperationContext &context, WBEMFlags::EOperationResultFlag result)

Private Attributes

CIMInstance m_inst
RepositoryIFCRef m_pCIMServer

Detailed Description

Definition at line 46 of file OW_WQLFilterRep.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::WQLFilterRep::WQLFilterRep const CIMInstance inst,
const RepositoryIFCRef cimServer
 

Definition at line 51 of file OW_WQLFilterRep.cpp.


Member Function Documentation

void OW_NAMESPACE::WQLFilterRep::associatorNames const String ns,
const CIMObjectPath path,
CIMObjectPathResultHandlerIFC result,
const String assocClass,
const String resultClass,
const String role,
const String resultRole,
OperationContext context
[virtual]
 

This method is used to enumerate the names of CIM Objects (Classes or Instances) that are associated to a particular CIM Object.

Parameters:
ns The namespace containing the CIM Objects to be enumerated.
objectName Defines the source CIM Object whose associated Objects are to be returned. This may be either a Class name or Instance name (modelpath).
result A callback object that will handle the CIMObjectPaths as they are received.
assocClass The AssocClass input parameter, if not empty (""), MUST be a valid CIM Association Class name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be associated to the source Object via an Instance of this Class or one of its subclasses.
resultClass The ResultClass input parameter, if not empty (""), MUST be valid CIM Class name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be either an Instance of this Class (or one of its subclasses) or be this Class (or one of its subclasses).
role The Role input parameter, if not empty (""), MUST be a valid Property name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be associated to the source Object via an Association in which the source Object plays the specified role (i.e. the name of the Property in the Association Class that refers to the source Object MUST match the value of this parameter).
resultRole The ResultRole input parameter, if not empty (""), MUST be a valid Property name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be associated to the source Object via an Association in which the returned Object plays the specified role (i.e. the name of the Property in the Association Class that refers to the returned Object MUST match the value of this parameter).
Exceptions:
CIMException - as defined in the associators method

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 352 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::CIMException::INVALID_QUERY, and OW_THROWCIMMSG.

void OW_NAMESPACE::WQLFilterRep::associators const String ns,
const CIMObjectPath path,
CIMInstanceResultHandlerIFC result,
const String assocClass,
const String resultClass,
const String role,
const String resultRole,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin,
const StringArray propertyList,
OperationContext context
[virtual]
 

This operation is used to enumerate CIM Objects (Classes or Instances) that are associated to a particular source CIM Object.

Parameters:
ns The namspace.
path Defines the path of the source CIM Object whose associated Objects are to be returned. This may be a path to either a Class name or Instance name (model path).
result A callback object that will handle the CIMInstances as they are received.
assocClass The AssocClass input parameter, if not empty (""), MUST be a valid CIM Association Class name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be associated to the source Object via an Instance of this Class or one of its subclasses.
resultClass The ResultClass input parameter, if not empty (""), MUST be a valid CIM Class name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be either an Instance of this Class (or one of its subclasses) or be this Class (or one of its subclasses).
role The Role input parameter, if not empty (""), MUST be a valid Property name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be associated to the source Object via an Association in which the source Object plays the specified role (i.e. the name of the Property in the Association Class that refers to the source Object MUST match the value of this parameter).
resultRole The ResultRole input parameter, if not empty (""), MUST be a valid Property name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be associated to the source Object via an Association in which the returned Object plays the specified role (i.e. the name of the Property in the Association Class that refers to the returned Object MUST match the value of this parameter).
includeQualifiers If set to E_INCLUDE_QUALIFIERS then all Qualifiers for each Object (including Qualifiers on the Object and on any returned Properties) MUST be included as QUALIFIER elements in the response. If set to E_EXCLUDE_QUALIFIERS, then no qualifier elements will be present in the returned object(s).
includeClassOrigin If set to E_INCLUDE_CLASS_ORIGIN, then the CLASSORIGIN attribute MUST be present on all appropriate elements in each returned Object. If set to E_EXCLUDE_CLASS_ORIGIN, no CLASSORIGIN attributes are present in each returned Object.
propertyList If the PropertyList input parameter is not NULL, the members of the array define one or more Property names. Each returned Object MUST NOT include elements for any Properties missing from this list. If the PropertyList input parameter is an empty array this signifies that no Properties are included in each returned Object. If the PropertyList input parameter is NULL this specifies that all Properties (subject to the conditions expressed by the other parameters) are included in each returned Object.
If the PropertyList contains duplicate elements, the Server MUST ignore the duplicates but otherwise process the request normally. If the PropertyList contains elements which are invalid Property names for any target Object, the Server MUST ignore such entries but otherwise process the request normally.

Clients SHOULD NOT explicitly specify properties in the PropertyList parameter unless they have specified a non-empty ("") value for the ResultClass parameter.

Exceptions:
CIMException. The following IDs can be expected: CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED, CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters), CIM_ERR_FAILED (some other unspecified error occurred).

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 312 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::CIMException::INVALID_QUERY, and OW_THROWCIMMSG.

void OW_NAMESPACE::WQLFilterRep::associatorsClasses const String ns,
const CIMObjectPath path,
CIMClassResultHandlerIFC result,
const String assocClass,
const String resultClass,
const String role,
const String resultRole,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin,
const StringArray propertyList,
OperationContext context
[virtual]
 

This operation is used to enumerate CIMClasses that are associated to a particular source CIM Object.

Parameters:
ns The namspace.
path Defines the path of the source CIM Object whose associated Objects are to be returned. This may be a path to either a Class name or Instance name (model path).
result A callback object that will handle the CIMClasses as they are received.
assocClass The AssocClass input parameter, if not empty (""), MUST be a valid CIM Association Class name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be associated to the source Object via an Instance of this Class or one of its subclasses.
resultClass The ResultClass input parameter, if not empty (""), MUST be a valid CIM Class name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be either an Instance of this Class (or one of its subclasses) or be this Class (or one of its subclasses).
role The Role input parameter, if not empty (""), MUST be a valid Property name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be associated to the source Object via an Association in which the source Object plays the specified role (i.e. the name of the Property in the Association Class that refers to the source Object MUST match the value of this parameter).
resultRole The ResultRole input parameter, if not empty (""), MUST be a valid Property name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be associated to the source Object via an Association in which the returned Object plays the specified role (i.e. the name of the Property in the Association Class that refers to the returned Object MUST match the value of this parameter).
includeQualifiers If set to E_INCLUDE_QUALIFIERS then all Qualifiers for each Object (including Qualifiers on the Object and on any returned Properties) MUST be included as elements in the response.If set to E_EXCLUDE_QUALIFIERS, then no qualifiers will be present in the returned object(s).
includeClassOrigin If the IncludeClassOrigin input parameter is set to E_INCLUDE_ORIGIN, then the CLASSORIGIN attribute MUST be present on all appropriate elements in each returned Object. If set to E_EXCLUDE_ORIGIN, no CLASSORIGIN attributes are present in each returned Object.
propertyList If the PropertyList input parameter is not NULL, the members of the array define one or more Property names. Each returned Object MUST NOT include elements for any Properties missing from this list. If the PropertyList input parameter is an empty array this signifies that no Properties are included in each returned Object. If the PropertyList input parameter is NULL this specifies that all Properties (subject to the conditions expressed by the other parameters) are included in each returned Object.
If the PropertyList contains duplicate elements, the Server MUST ignore the duplicates but otherwise process the request normally. If the PropertyList contains elements which are invalid Property names for any target Object, the Server MUST ignore such entries but otherwise process the request normally.

Clients SHOULD NOT explicitly specify properties in the PropertyList parameter unless they have specified a non-empty ("") value for the ResultClass parameter.

Exceptions:
CIMException. The following IDs can be expected: CIM_ERR_ACCESS_DENIED, CIM_ERR_NOT_SUPPORTED, CIM_ERR_INVALID_NAMESPACE, CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters), CIM_ERR_FAILED (some other unspecified error occurred)

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 326 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::CIMException::INVALID_QUERY, and OW_THROWCIMMSG.

void OW_NAMESPACE::WQLFilterRep::beginOperation WBEMFlags::EOperationFlag  op,
OperationContext context
[virtual]
 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 402 of file OW_WQLFilterRep.cpp.

virtual void OW_NAMESPACE::WQLFilterRep::close  )  [inline, virtual]
 

Close this GenericHDBRepository.

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 58 of file OW_WQLFilterRep.hpp.

void OW_NAMESPACE::WQLFilterRep::createClass const String ns,
const CIMClass cimClass,
OperationContext context
[virtual]
 

creates a class in the store

Parameters:
path The path for the class to create
cimClass The class to create
aclInfo ACL object describing user making request.
Exceptions:
CIMException if the class already exists, or parent class is not yet on file.
HDBException An error occurred in the database.
IOException Couldn't write class object to file.

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 136 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::CIMException::INVALID_QUERY, and OW_THROWCIMMSG.

CIMObjectPath OW_NAMESPACE::WQLFilterRep::createInstance const String ns,
const CIMInstance ci,
OperationContext context
[virtual]
 

Creates a instance in the store.

Parameters:
cop The CIMObectPath that specifies the instance
ci The instance that is to be stored with that object path
aclInfo ACL object describing user making request.
Exceptions:
HDBException 
CIMException 
IOException 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 248 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::CIMException::INVALID_QUERY, and OW_THROWCIMMSG.

void OW_NAMESPACE::WQLFilterRep::createNameSpace const String ns,
OperationContext context
[virtual]
 

Create a cim namespace.

Parameters:
ns The namespace to be created.
Exceptions:
CIMException If the namespace already exists.

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 82 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::CIMException::INVALID_QUERY, and OW_THROWCIMMSG.

CIMClass OW_NAMESPACE::WQLFilterRep::deleteClass const String ns,
const String className,
OperationContext context
[virtual]
 

Delete an existing class from the store.

Parameters:
ns The namespace containing the class to delete.
className The class to delete
aclInfo ACL object describing user making request.
Returns:
A CIMClass representing the class which was deleted. This is likely usefull only for creating CIM_ClassCreation incidations.
Exceptions:
CIMException if class does not exist

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 152 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::CIMException::INVALID_QUERY, and OW_THROWCIMMSG.

CIMInstance OW_NAMESPACE::WQLFilterRep::deleteInstance const String ns,
const CIMObjectPath cop,
OperationContext context
[virtual]
 

Delete an existing instance from the store.

Parameters:
cop The CIMObectPath that specifies the instance
aclInfo ACL object describing user making request.
Exceptions:
HDBException 
CIMException 
IOException 
Returns:
an CIMInstance representing the Instance just deleted. This is likely usefull only for creating CIM_InstDeletion indications;

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 268 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::CIMException::INVALID_QUERY, and OW_THROWCIMMSG.

void OW_NAMESPACE::WQLFilterRep::deleteNameSpace const String ns,
OperationContext context
[virtual]
 

Delete a specified namespace.

Parameters:
ns The namespace to delete.
aclInfo ACL object describing user making request.
Exceptions:
CIMException If the namespace does not exist.

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 90 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::CIMException::INVALID_QUERY, and OW_THROWCIMMSG.

void OW_NAMESPACE::WQLFilterRep::deleteQualifierType const String ns,
const String qualName,
OperationContext context
[virtual]
 

Delete an existing qualifier type from the repository.

Parameters:
objPath The object path fro the qualifer type.
aclInfo ACL object describing user making request.
Exceptions:
CIMException 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 126 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::CIMException::INVALID_QUERY, and OW_THROWCIMMSG.

void OW_NAMESPACE::WQLFilterRep::endOperation WBEMFlags::EOperationFlag  op,
OperationContext context,
WBEMFlags::EOperationResultFlag  result
[virtual]
 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 407 of file OW_WQLFilterRep.cpp.

void OW_NAMESPACE::WQLFilterRep::enumClasses const String ns,
const String className,
CIMClassResultHandlerIFC result,
WBEMFlags::EDeepFlag  deep,
WBEMFlags::ELocalOnlyFlag  localOnly,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin,
OperationContext context
[virtual]
 

Enumerates the class specified by the CIMObjectPath.

Parameters:
path The CIMObjectPath identifying the class to be enumerated.
deep If set to CIMClient::DEEP, the enumeration returned will contain the names of all classes derived from the enumerated class. If set to CIMClient::SHALLOW the enumermation will return only the names of the first level children of the enumerated class.
localOnly If true, then only CIM elements (properties, methods, qualifiers) overriden within the definition are returned.
includeQualifiers If true, then all qualifiers for the class (including properties, methods, and method parameters) are returned.
includeClassOrigin If true, then the class origin attribute will be returned on all appropriate components.
aclInfo ACL object describing user making request.
Exceptions:
CIMException If the specified CIMObjectPath object cannot be foundl

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 183 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::CIMException::INVALID_QUERY, and OW_THROWCIMMSG.

void OW_NAMESPACE::WQLFilterRep::enumClassNames const String ns,
const String className,
StringResultHandlerIFC result,
WBEMFlags::EDeepFlag  deep,
OperationContext context
[virtual]
 

Enumerates the class specified by the CIMObjectPath.

Parameters:
path The CIMObjectPath identifying the class to be enumerated.
deep If set to CIMClient::DEEP, the enumeration returned will contain the names of all classes derived from the enumerated class. If set to CIMClient::SHALLOW the enumermation will return only the names of the first level children of the enumerated class.
aclInfo ACL object describing user making request.
Exceptions:
CIMException If the specified CIMObjectPath object cannot be foundl

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 196 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::CIMException::INVALID_QUERY, and OW_THROWCIMMSG.

void OW_NAMESPACE::WQLFilterRep::enumInstanceNames const String ns,
const String className,
CIMObjectPathResultHandlerIFC result,
WBEMFlags::EDeepFlag  deep,
OperationContext context
[virtual]
 

Retrieve an enumeration of instances (CIMInstance) for a particular class.

Parameters:
path The CIMObjectPath identifying the class whose instances are to be enumerated.
deep If set to CIMClient::DEEP, the enumeration returned will contain the names of all instances of the specified class and all classes derived from it. If set to CIMClient::SHALLOW only names of instances belonging to the specified class are returned.
aclInfo ACL object describing user making request.
Exceptions:
HDBException 
CIMException 
IOException 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 235 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::CIMException::INVALID_QUERY, and OW_THROWCIMMSG.

void OW_NAMESPACE::WQLFilterRep::enumInstances const String ns,
const String className,
CIMInstanceResultHandlerIFC result,
WBEMFlags::EDeepFlag  deep,
WBEMFlags::ELocalOnlyFlag  localOnly,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin,
const StringArray propertyList,
WBEMFlags::EEnumSubclassesFlag  enumSubclasses,
OperationContext context
[virtual]
 

Retrieve an enumeration of instances (CIMInstance) for a particular class.

Parameters:
path The CIMObjectPath identifying the class whose instances are to be enumerated.
deep If set to CIMClient::DEEP, the enumeration returned will contain the names of all instances of the specified class and all classes derived from it. If set to CIMClient::SHALLOW only names of instances belonging to the specified class are returned.
localOnly If true only non-inherited properties/qualifiers are included in the instances.
includeQualifiers If true, then all qualifiers for the instance (including properties, methods, and method parameters) are returned.
includeClassOrigin If true, then the class origin attribute will be returned on all appropriate components.
propertyList If not NULL then is specifies the only properties that can be returned with the class. If not NULL but the array is empty, then no properties should be returned. If NULL then all properties will be returned.
aclInfo ACL object describing user making request.
Exceptions:
HDBException 
CIMException 
IOException 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 207 of file OW_WQLFilterRep.cpp.

References className, context, OW_NAMESPACE::WBEMFlags::E_INCLUDE_CLASS_ORIGIN, OW_NAMESPACE::WBEMFlags::E_INCLUDE_QUALIFIERS, OW_NAMESPACE::WBEMFlags::E_NOT_LOCAL_ONLY, OW_NAMESPACE::CIMInstance::getClassName(), OW_NAMESPACE::ResultHandlerIFC< T >::handle(), m_inst, m_pCIMServer, ns, result, and OW_NAMESPACE::CIMName::toString().

void OW_NAMESPACE::WQLFilterRep::enumNameSpace StringResultHandlerIFC result,
OperationContext context
[virtual]
 

Gets a list of the namespaces.

Parameters:
aclInfo ACL object describing user making request.
Returns:
An Array of namespace names as strings.
Exceptions:
CIMException If the namespace does not exist or the object cannot be found in the specified namespace.

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 72 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::CIMException::INVALID_QUERY, and OW_THROWCIMMSG.

void OW_NAMESPACE::WQLFilterRep::enumQualifierTypes const String ns,
CIMQualifierTypeResultHandlerIFC result,
OperationContext context
[virtual]
 

Enumerate the qualifier types in a name space.

Parameters:
path The object path to enumeration the qualifiers in.
aclInfo ACL object describing user making request.
Returns:
An enumeration of CIMQualifierTypes
Exceptions:
CIMException 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 117 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::CIMException::INVALID_QUERY, and OW_THROWCIMMSG.

void OW_NAMESPACE::WQLFilterRep::execQuery const String ns,
CIMInstanceResultHandlerIFC result,
const String query,
const String queryLanguage,
OperationContext context
[virtual]
 

Executes a query to retrieve or modify objects.

Parameters:
ns CIMNameSpace that identifies the namespace in which to query.
query A string containing the text of the query. This parameter cannot be empty..
queryLanguage A string containing the query language the query is written in.
Returns:
CIMInstanceArray A deep enumeration of all instances of the specified class and all classes derived from the specified class, that match the query string.
Exceptions:
CIMException If any of the following errors occur: The user does not have permission to view the result. The requested query language is not supported. The query specifies a class that does not exist.

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 392 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::CIMException::INVALID_QUERY, and OW_THROWCIMMSG.

CIMClass OW_NAMESPACE::WQLFilterRep::getClass const String ns,
const String className,
WBEMFlags::ELocalOnlyFlag  localOnly,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin,
const StringArray propertyList,
OperationContext context
[virtual]
 

Gets an existing class from a store.

Parameters:
path The path for the class to retrieve
localOnly If true, then only CIM elements (properties, methods, qualifiers) overriden within the definition are returned.
includeQualifiers If true, then all qualifiers for the class (including properties, methods, and method parameters) are returned.
includeClassOrigin If true, then the class origin attribute will be returned on all appropriate components.
propertyList If not NULL then is specifies the only properties that can be returned with the class. If not NULL but the array is empty, then no properties should be returned. If NULL then all properties will be returned.
aclInfo ACL object describing user making request.
Returns:
A valid CIMClass object on success. Otherwise a NULL CIMClass object.
Exceptions:
CIMException 
HDBException An error occurred in the database.
IOException Couldn't read class object from file.

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 161 of file OW_WQLFilterRep.cpp.

References className, context, m_pCIMServer, ns, and propertyList.

ServiceEnvironmentIFCRef OW_NAMESPACE::WQLFilterRep::getEnvironment  )  const [virtual]
 

Returns:
A reference to the ServiceEnvironmentIFC this object is using.

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 66 of file OW_WQLFilterRep.cpp.

References m_pCIMServer.

CIMInstance OW_NAMESPACE::WQLFilterRep::getInstance const String ns,
const CIMObjectPath instanceName,
WBEMFlags::ELocalOnlyFlag  localOnly,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin,
const StringArray propertyList,
OperationContext context
[virtual]
 

Retrieve a specific instance.

Parameters:
cop The CIMObectPath that specifies the instance
localOnly If true, only return non-derived properties.
includeQualifiers If true, then all qualifiers for the instance (including properties, methods, and method parameters) are returned.
includeClassOrigin If true, then the class origin attribute will be returned on all appropriate components.
propertyList If not NULL then is specifies the only properties that can be returned with the class. If not NULL but the array is empty, then no properties should be returned. If NULL then all properties will be returned.
aclInfo ACL object describing user making request.
Returns:
An CIMInstance object
Exceptions:
HDBException 
CIMException 
IOException 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 173 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::CIMException::INVALID_QUERY, and OW_THROWCIMMSG.

String OW_NAMESPACE::WQLFilterRep::getName  )  const [virtual]
 

Every service may have a name.

The name is used to calculate dependencies, other services can return the name from getDependencies(), to instruct the cimom about which order to start and shutdown all the services. The default is to have no name, in that case, no other service can depend on it.

Reimplemented from OW_NAMESPACE::ServiceIFC.

Definition at line 60 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::ServiceIFCNames::WQLFilterRep.

CIMValue OW_NAMESPACE::WQLFilterRep::getProperty const String ns,
const CIMObjectPath name,
const String propertyName,
OperationContext context
[virtual]
 

Get the specified CIM instance property.

Parameters:
name An CIMObjectPath that identifies the CIM instance to be accessed
propertyName The name of the property to retrieve.
aclInfo ACL object describing user making request.
Returns:
The CIMvalue for property identified by propertyName.
Exceptions:
CIMException 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 291 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::CIMException::INVALID_QUERY, and OW_THROWCIMMSG.

CIMQualifierType OW_NAMESPACE::WQLFilterRep::getQualifierType const String ns,
const String qualifierName,
OperationContext context
[virtual]
 

Get an existing qualifier type from the repository.

Parameters:
objPath The object path for the qaulifer type.
aclInfo ACL object describing user making request.
Returns:
A valid CIMQaulifer type on success. Otherwise a NULL CIMQualifier type.
Exceptions:
CIMException 
IOException 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 99 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::CIMException::INVALID_QUERY, and OW_THROWCIMMSG.

virtual void OW_NAMESPACE::WQLFilterRep::init const ServiceEnvironmentIFCRef env  )  [inline, virtual]
 

init() will be called to give the derived class an opportunity to initialize itself.

Do not create threads which interact with the environment until start() is called. During the loading/initializing phase, the environment is single-threaded.

Parameters:
env The service's interface to it's environment. A copy of this may be saved and re-used. All copies of env or objects obtained by calling member functions of env should be set to 0 in shutdown() to prevent circular reference counts.

Implements OW_NAMESPACE::ServiceIFC.

Definition at line 60 of file OW_WQLFilterRep.hpp.

CIMValue OW_NAMESPACE::WQLFilterRep::invokeMethod const String ns,
const CIMObjectPath path,
const String methodName,
const CIMParamValueArray inParams,
CIMParamValueArray outParams,
OperationContext context
[virtual]
 

Invokes a method.

Parameters:
name The object path of the object on which the method is being invoked this can be a class or instance
methodName The name of the method to invoke.
inParams An array of CIMProperty objects for inbound values
outParams An array of CIMProperty objects for inbound values
outParams A vector of CIMProperty for outbound values
aclInfo ACL object describing user making request.
Returns:
The return from the extrinsic method as a CIMValue.
Exceptions:
CIMException 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 302 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::CIMException::INVALID_QUERY, and OW_THROWCIMMSG.

CIMClass OW_NAMESPACE::WQLFilterRep::modifyClass const String ns,
const CIMClass cc,
OperationContext context
[virtual]
 

set a class in the store - note children are not affected

Parameters:
path The path for the class to create
cimClass The class to create
aclInfo ACL object describing user making request.
Returns:
an CIMClass representing the state of the class prior to the update. This is likely usefull only for creating CIM_ClassModification indications.
Exceptions:
CIMException if the class already exists

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 144 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::CIMException::INVALID_QUERY, and OW_THROWCIMMSG.

CIMInstance OW_NAMESPACE::WQLFilterRep::modifyInstance const String ns,
const CIMInstance modifiedInstance,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers,
const StringArray propertyList,
OperationContext context
[virtual]
 

Update an instance.

Parameters:
cop The CIMObectPath that specifies the instance
ci The instance with the new values
aclInfo ACL object describing user making request.
Returns:
a CIMInstance representing the state of the instance prior to the update. This is likely usefull only for creating CIM_InstModification indications.
Exceptions:
HDBException 
CIMException 
IOException 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 256 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::CIMException::INVALID_QUERY, and OW_THROWCIMMSG.

virtual void OW_NAMESPACE::WQLFilterRep::open const String  )  [inline, virtual]
 

Open this RepositoryIFC.

Exceptions:
IOException 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 54 of file OW_WQLFilterRep.hpp.

void OW_NAMESPACE::WQLFilterRep::referenceNames const String ns,
const CIMObjectPath path,
CIMObjectPathResultHandlerIFC result,
const String resultClass,
const String role,
OperationContext context
[virtual]
 

This operation is used to enumerate the association objects that refer to a particular target CIM Object (Class or Instance).

Parameters:
ns The namespace.
path The ObjectName input parameter defines the target CIM Object path whose referring object names are to be returned. It may be either a Class name or an Instance name (model path).
result A callback object to handle the object paths as they are received.
resultClass The ResultClass input parameter, if not empty (""), MUST be a valid CIM Class name. It acts as a filter on the returned set of Object Names by mandating that each returned Object Name MUST identify an Instance of this Class (or one of its subclasses), or this Class (or one of its subclasses).
role The Role input parameter, if not empty (""), MUST be a valid Property name. It acts as a filter on the returned set of Object Names by mandating that each returned Object Name MUST identify an Object that refers to the target Instance via a Property whose name matches the value of this parameter.
Exceptions:
CIMException As defined for associators method.

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 340 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::CIMException::INVALID_QUERY, and OW_THROWCIMMSG.

void OW_NAMESPACE::WQLFilterRep::references const String ns,
const CIMObjectPath path,
CIMInstanceResultHandlerIFC result,
const String resultClass,
const String role,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin,
const StringArray propertyList,
OperationContext context
[virtual]
 

This operation is used to enumerate the association objects that refer to a particular target CIM Object (Class or Instance).

Parameters:
ns The namespace.
path The path input parameter defines the target CIM Object whose referring Objects are to be returned. This is either a Class name or Instance name (model path).
result A callback object which will handle the instances as they are received.
resultClass The ResultClass input parameter, if not empty (""), MUST be a valid CIM Class name. It acts as a filter on the returned set of Objects by mandating that each returned Object MUST be an Instance of this Class (or one of its subclasses), or this Class (or one of its subclasses).
role The Role input parameter, if not empty (""), MUST be a valid Property name. It acts as a filter on the returned set of Objects by mandating that each returned Objects MUST refer to the target Object via a Property whose name matches the value of this parameter.
includeQualifiers Refer to includeQualifiers for associators.
includeClassOrigin Refer to includeQualifiers for associators.
propertyList Refer to includeQualifiers for associators.
See also:
associators
Exceptions:
CIMException - as defined for associators method.

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 365 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::CIMException::INVALID_QUERY, and OW_THROWCIMMSG.

void OW_NAMESPACE::WQLFilterRep::referencesClasses const String ns,
const CIMObjectPath path,
CIMClassResultHandlerIFC result,
const String resultClass,
const String role,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin,
const StringArray propertyList,
OperationContext context
[virtual]
 

This operation is used to enumerate the association objects that refer to a particular target CIM Class.

See also:
references
Exceptions:
CIMException - as defined for associators method.

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 378 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::CIMException::INVALID_QUERY, and OW_THROWCIMMSG.

void OW_NAMESPACE::WQLFilterRep::setProperty const String ns,
const CIMObjectPath name,
const String propertyName,
const CIMValue cv,
OperationContext context
[virtual]
 

Set a property value on an CIMInstance.

Parameters:
name The object path of the instance
propertyName The name of the property to update
cv The value to set the property to.
aclInfo ACL object describing user making request.
Exceptions:
CIMException 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 277 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::CIMException::INVALID_QUERY, and OW_THROWCIMMSG.

void OW_NAMESPACE::WQLFilterRep::setQualifierType const String ns,
const CIMQualifierType qt,
OperationContext context
[virtual]
 

Updates the specified CIM qualifier type in the specified namespace.

Parameters:
name Am CIMObjectPath that identifies the CIM qualifier type.
qt The CIM qualifier type to be updated.
aclInfo ACL object describing user making request.
Exceptions:
CIMException If the qualifier type cannot be found or the user does not have write permission to the namespace.

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 109 of file OW_WQLFilterRep.cpp.

References OW_NAMESPACE::CIMException::INVALID_QUERY, and OW_THROWCIMMSG.

virtual void OW_NAMESPACE::WQLFilterRep::shutdown  )  [inline, virtual]
 

The service must shutdown completely before returning from this function.

All copies of the service environment or objects obtained from it should be set to 0 to avoid circular reference counts.

Implements OW_NAMESPACE::ServiceIFC.

Definition at line 61 of file OW_WQLFilterRep.hpp.


Member Data Documentation

CIMInstance OW_NAMESPACE::WQLFilterRep::m_inst [private]
 

Definition at line 470 of file OW_WQLFilterRep.hpp.

Referenced by enumInstances().

RepositoryIFCRef OW_NAMESPACE::WQLFilterRep::m_pCIMServer [private]
 

Definition at line 471 of file OW_WQLFilterRep.hpp.

Referenced by enumInstances(), getClass(), and getEnvironment().


The documentation for this class was generated from the following files:
Generated on Thu Feb 9 09:12:59 2006 for openwbem by  doxygen 1.4.6