OW_NAMESPACE::CIMRepository2 Class Reference

#include <OW_CIMRepository2.hpp>

Inheritance diagram for OW_NAMESPACE::CIMRepository2:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CIMRepository2 (ServiceEnvironmentIFCRef env)
 Create a new CIMRepository object.
virtual ~CIMRepository2 ()
 Destroy this CIMRepository object.
virtual void open (const String &path)
 Open
Exceptions:
IOException. 

virtual void close ()
 Close this RepositoryIFC.
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 void enumNameSpace (StringResultHandlerIFC &result, OperationContext &context)
 Gets a list of the namespaces.
virtual CIMQualifierType getQualifierType (const String &ns, const String &qualifierName, OperationContext &context)
 Get an existing qualifier type from the repository.
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 setQualifierType (const String &ns, const CIMQualifierType &qt, OperationContext &context)
 Updates the specified CIM qualifier type in the specified namespace.
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 CIMClass deleteClass (const String &ns, const String &className, OperationContext &context)
 Delete an existing class from the store.
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 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 object paths (CIMObjectPath) for a particular class.
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 CIMInstance getInstance (const String &ns, const CIMObjectPath &instanceName, WBEMFlags::ELocalOnlyFlag localOnly, WBEMFlags::EIncludeQualifiersFlag includeQualifiers, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin, const StringArray *propertyList, CIMClass *pOutClass, OperationContext &context)
virtual CIMInstance deleteInstance (const String &ns, const CIMObjectPath &cop, OperationContext &context)
 Delete an existing instance from the store.
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 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 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 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 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)
 
Exceptions:
CIMException CIM_ERR_ACCESS_DENIED CIM_ERR_NOT_SUPPORTED CIM_ERR_INVALID_NAMESPACE CIM_ERR_INVALID_PARAMETER CIM_ERR_QUERY_LANGUAGE_NOT_SUPPORTED CIM_ERR_INVALID_QUERY CIM_ERR_FAILED

virtual void beginOperation (WBEMFlags::EOperationFlag op, OperationContext &context)
virtual void endOperation (WBEMFlags::EOperationFlag op, OperationContext &context, WBEMFlags::EOperationResultFlag result)
ServiceEnvironmentIFCRef getEnvironment () const
CIMClass _getClass (const String &ns, const String &className)
CIMClass _instGetClass (const String &ns, const String &className)
void checkGetClassRvalAndThrow (CIMException::ErrNoType rval, const String &ns, const String &className)
void checkGetClassRvalAndThrowInst (CIMException::ErrNoType rval, const String &ns, const String &className)
void _commonAssociators (const String &ns, const CIMObjectPath &path_, const String &assocClassName, const String &resultClass, const String &role, const String &resultRole, WBEMFlags::EIncludeQualifiersFlag includeQualifiers, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin, const StringArray *propertyList, CIMInstanceResultHandlerIFC *piresult, CIMObjectPathResultHandlerIFC *popresult, CIMClassResultHandlerIFC *pcresult, OperationContext &context)
void _commonReferences (const String &ns, const CIMObjectPath &path_, const String &resultClass, const String &role, WBEMFlags::EIncludeQualifiersFlag includeQualifiers, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin, const StringArray *propertyList, CIMInstanceResultHandlerIFC *piresult, CIMObjectPathResultHandlerIFC *popresult, CIMClassResultHandlerIFC *pcresult, OperationContext &context)
void _getAssociationClasses (const String &ns, const String &assocClassName, const String &className, CIMClassResultHandlerIFC &result, const String &role, OperationContext &context)
void _staticReferences (const CIMObjectPath &path, const SortedVectorSet< String > *refClasses, const String &role, WBEMFlags::EIncludeQualifiersFlag includeQualifiers, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin, const StringArray *propertyList, CIMInstanceResultHandlerIFC &result, OperationContext &context)
void _staticReferenceNames (const CIMObjectPath &path, const SortedVectorSet< String > *refClasses, const String &role, CIMObjectPathResultHandlerIFC &result)
void _staticReferencesClass (const CIMObjectPath &path, const SortedVectorSet< String > *resultClasses, const String &role, WBEMFlags::EIncludeQualifiersFlag includeQualifiers, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin, const StringArray *propertyList, CIMObjectPathResultHandlerIFC *popresult, CIMClassResultHandlerIFC *pcresult, OperationContext &context)
void _staticAssociators (const CIMObjectPath &path, const SortedVectorSet< String > *passocClasses, const SortedVectorSet< String > *presultClasses, const String &role, const String &resultRole, WBEMFlags::EIncludeQualifiersFlag includeQualifiers, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin, const StringArray *propertyList, CIMInstanceResultHandlerIFC &result, OperationContext &context)
void _staticAssociatorNames (const CIMObjectPath &path, const SortedVectorSet< String > *passocClasses, const SortedVectorSet< String > *presultClasses, const String &role, const String &resultRole, CIMObjectPathResultHandlerIFC &result)
void _staticAssociatorsClass (const CIMObjectPath &path, const SortedVectorSet< String > *assocClassNames, const SortedVectorSet< String > *resultClasses, const String &role, const String &resultRole, WBEMFlags::EIncludeQualifiersFlag includeQualifiers, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin, const StringArray *propertyList, CIMObjectPathResultHandlerIFC *popresult, CIMClassResultHandlerIFC *pcresult, OperationContext &context)
void _validatePropagatedKeys (const String &ns, const CIMInstance &ci, const CIMClass &theClass)

Public Attributes

InstanceRepository2 m_iStore
MetaRepository2 m_mStore
AssocDb2 m_classAssocDb
AssocDb2 m_instAssocDb
ServiceEnvironmentIFCRef m_env

Private Member Functions

 CIMRepository2 (const CIMRepository2 &)
CIMRepository2operator= (const CIMRepository2 &)

Private Attributes

bool m_checkReferentialIntegrity
DB_ENV * m_dbenv

Friends

class CIMServer

Detailed Description

Definition at line 50 of file OW_CIMRepository2.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::CIMRepository2::CIMRepository2 ServiceEnvironmentIFCRef  env  ) 
 

Create a new CIMRepository object.

Definition at line 76 of file OW_CIMRepository2.cpp.

References OW_NAMESPACE::ConfigOpts::CHECK_REFERENTIAL_INTEGRITY_opt, OW_NAMESPACE::COMPONENT_NAME, OW_NAMESPACE::g_logger, m_checkReferentialIntegrity, m_env, and OW_DEFAULT_CHECK_REFERENTIAL_INTEGRITY.

OW_NAMESPACE::CIMRepository2::~CIMRepository2  )  [virtual]
 

Destroy this CIMRepository object.

Definition at line 100 of file OW_CIMRepository2.cpp.

References close().

OW_NAMESPACE::CIMRepository2::CIMRepository2 const CIMRepository2  )  [private]
 


Member Function Documentation

void OW_NAMESPACE::CIMRepository2::_commonAssociators const String ns,
const CIMObjectPath path_,
const String assocClassName,
const String resultClass,
const String role,
const String resultRole,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin,
const StringArray propertyList,
CIMInstanceResultHandlerIFC piresult,
CIMObjectPathResultHandlerIFC popresult,
CIMClassResultHandlerIFC pcresult,
OperationContext context
 

Definition at line 1276 of file OW_CIMRepository2.cpp.

References OW_NAMESPACE::String::c_str(), OW_NAMESPACE::CIMException::INVALID_NAMESPACE, m_mStore, OW_NAMESPACE::MetaRepository2::nameSpaceExists(), ns, OW_THROWCIMMSG, and OW_NAMESPACE::CIMObjectPath::setNameSpace().

Referenced by associatorNames(), associators(), and associatorsClasses().

void OW_NAMESPACE::CIMRepository2::_commonReferences const String ns,
const CIMObjectPath path_,
const String resultClass,
const String role,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin,
const StringArray propertyList,
CIMInstanceResultHandlerIFC piresult,
CIMObjectPathResultHandlerIFC popresult,
CIMClassResultHandlerIFC pcresult,
OperationContext context
 

Definition at line 1064 of file OW_CIMRepository2.cpp.

References OW_NAMESPACE::String::c_str(), OW_NAMESPACE::CIMException::INVALID_NAMESPACE, m_mStore, OW_NAMESPACE::MetaRepository2::nameSpaceExists(), ns, OW_THROWCIMMSG, and OW_NAMESPACE::CIMObjectPath::setNameSpace().

Referenced by referenceNames(), references(), and referencesClasses().

void OW_NAMESPACE::CIMRepository2::_getAssociationClasses const String ns,
const String assocClassName,
const String className,
CIMClassResultHandlerIFC result,
const String role,
OperationContext context
 

Definition at line 1548 of file OW_CIMRepository2.cpp.

References OW_NAMESPACE::CIMNULL, OW_NAMESPACE::WBEMFlags::E_DEEP, OW_NAMESPACE::WBEMFlags::E_INCLUDE_CLASS_ORIGIN, OW_NAMESPACE::WBEMFlags::E_INCLUDE_QUALIFIERS, OW_NAMESPACE::WBEMFlags::E_NOT_LOCAL_ONLY, OW_NAMESPACE::String::empty(), OW_NAMESPACE::MetaRepository2::enumClass(), OW_NAMESPACE::MetaRepository2::getCIMClass(), OW_NAMESPACE::ResultHandlerIFC< T >::handle(), m_mStore, ns, OW_THROWCIM, result, and OW_NAMESPACE::CIMException::SUCCESS.

CIMClass OW_NAMESPACE::CIMRepository2::_getClass const String ns,
const String className
 

Definition at line 384 of file OW_CIMRepository2.cpp.

References checkGetClassRvalAndThrow(), OW_NAMESPACE::CIMNULL, className, OW_NAMESPACE::WBEMFlags::E_INCLUDE_CLASS_ORIGIN, OW_NAMESPACE::WBEMFlags::E_INCLUDE_QUALIFIERS, OW_NAMESPACE::WBEMFlags::E_NOT_LOCAL_ONLY, OW_NAMESPACE::MetaRepository2::getCIMClass(), m_mStore, ns, and theClass.

Referenced by _staticAssociatorsClass(), _staticReferencesClass(), createClass(), deleteClass(), and modifyClass().

CIMClass OW_NAMESPACE::CIMRepository2::_instGetClass const String ns,
const String className
 

Definition at line 393 of file OW_CIMRepository2.cpp.

References checkGetClassRvalAndThrowInst(), OW_NAMESPACE::CIMNULL, className, OW_NAMESPACE::WBEMFlags::E_INCLUDE_CLASS_ORIGIN, OW_NAMESPACE::WBEMFlags::E_INCLUDE_QUALIFIERS, OW_NAMESPACE::WBEMFlags::E_NOT_LOCAL_ONLY, OW_NAMESPACE::MetaRepository2::getCIMClass(), m_mStore, ns, and theClass.

Referenced by enumInstanceNames(), enumInstances(), getInstance(), getProperty(), and setProperty().

void OW_NAMESPACE::CIMRepository2::_staticAssociatorNames const CIMObjectPath path,
const SortedVectorSet< String > *  passocClasses,
const SortedVectorSet< String > *  presultClasses,
const String role,
const String resultRole,
CIMObjectPathResultHandlerIFC result
 

Definition at line 1425 of file OW_CIMRepository2.cpp.

References OW_NAMESPACE::AssocDb2::getAllEntries(), handler, m_instAssocDb, and result.

void OW_NAMESPACE::CIMRepository2::_staticAssociators const CIMObjectPath path,
const SortedVectorSet< String > *  passocClasses,
const SortedVectorSet< String > *  presultClasses,
const String role,
const String resultRole,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin,
const StringArray propertyList,
CIMInstanceResultHandlerIFC result,
OperationContext context
 

Definition at line 1347 of file OW_CIMRepository2.cpp.

References context, OW_NAMESPACE::AssocDb2::getAllEntries(), handler, m_instAssocDb, propertyList, and result.

void OW_NAMESPACE::CIMRepository2::_staticAssociatorsClass const CIMObjectPath path,
const SortedVectorSet< String > *  assocClassNames,
const SortedVectorSet< String > *  resultClasses,
const String role,
const String resultRole,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin,
const StringArray propertyList,
CIMObjectPathResultHandlerIFC popresult,
CIMClassResultHandlerIFC pcresult,
OperationContext context
 

Definition at line 1438 of file OW_CIMRepository2.cpp.

References _getClass(), context, OW_NAMESPACE::AssocDb2::getAllEntries(), OW_NAMESPACE::CIMObjectPath::getClassName(), OW_NAMESPACE::CIMObjectPath::getNameSpace(), OW_NAMESPACE::CIMClass::getSuperClass(), handler, m_classAssocDb, ns, OW_ASSERT, propertyList, OW_NAMESPACE::CIMObjectPath::setClassName(), and theClass.

void OW_NAMESPACE::CIMRepository2::_staticReferenceNames const CIMObjectPath path,
const SortedVectorSet< String > *  refClasses,
const String role,
CIMObjectPathResultHandlerIFC result
 

Definition at line 1266 of file OW_CIMRepository2.cpp.

References OW_NAMESPACE::AssocDb2::getAllEntries(), handler, m_instAssocDb, and result.

void OW_NAMESPACE::CIMRepository2::_staticReferences const CIMObjectPath path,
const SortedVectorSet< String > *  refClasses,
const String role,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin,
const StringArray propertyList,
CIMInstanceResultHandlerIFC result,
OperationContext context
 

Definition at line 1253 of file OW_CIMRepository2.cpp.

References context, OW_NAMESPACE::AssocDb2::getAllEntries(), handler, m_instAssocDb, propertyList, and result.

void OW_NAMESPACE::CIMRepository2::_staticReferencesClass const CIMObjectPath path,
const SortedVectorSet< String > *  resultClasses,
const String role,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin,
const StringArray propertyList,
CIMObjectPathResultHandlerIFC popresult,
CIMClassResultHandlerIFC pcresult,
OperationContext context
 

Definition at line 1480 of file OW_CIMRepository2.cpp.

References _getClass(), context, OW_NAMESPACE::AssocDb2::getAllEntries(), OW_NAMESPACE::CIMObjectPath::getClassName(), OW_NAMESPACE::CIMObjectPath::getNameSpace(), OW_NAMESPACE::CIMClass::getSuperClass(), handler, m_classAssocDb, m_env, ns, OW_ASSERT, OW_LOG_DEBUG, propertyList, OW_NAMESPACE::CIMObjectPath::setClassName(), theClass, and OW_NAMESPACE::CIMObjectPath::toString().

void OW_NAMESPACE::CIMRepository2::_validatePropagatedKeys const String ns,
const CIMInstance ci,
const CIMClass theClass
 

Definition at line 1635 of file OW_CIMRepository2.cpp.

References OW_NAMESPACE::CIMClass::getKeys(), OW_NAMESPACE::Array< T >::size(), and theClass.

void OW_NAMESPACE::CIMRepository2::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 989 of file OW_CIMRepository2.cpp.

References _commonAssociators(), context, OW_NAMESPACE::WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, OW_NAMESPACE::WBEMFlags::E_EXCLUDE_QUALIFIERS, ns, and result.

void OW_NAMESPACE::CIMRepository2::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 959 of file OW_CIMRepository2.cpp.

References _commonAssociators(), context, ns, propertyList, and result.

void OW_NAMESPACE::CIMRepository2::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 974 of file OW_CIMRepository2.cpp.

References _commonAssociators(), context, ns, propertyList, and result.

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

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 1742 of file OW_CIMRepository2.cpp.

void OW_NAMESPACE::CIMRepository2::checkGetClassRvalAndThrow CIMException::ErrNoType  rval,
const String ns,
const String className
 

Definition at line 1579 of file OW_CIMRepository2.cpp.

References OW_NAMESPACE::String::c_str(), className, OW_NAMESPACE::CIMException::INVALID_NAMESPACE, m_mStore, OW_NAMESPACE::MetaRepository2::nameSpaceExists(), ns, OW_THROWCIMMSG, OW_NAMESPACE::CIMException::SUCCESS, and OW_NAMESPACE::toString().

Referenced by _getClass(), and getClass().

void OW_NAMESPACE::CIMRepository2::checkGetClassRvalAndThrowInst CIMException::ErrNoType  rval,
const String ns,
const String className
 

Definition at line 1596 of file OW_CIMRepository2.cpp.

References OW_NAMESPACE::String::c_str(), className, OW_NAMESPACE::CIMException::INVALID_CLASS, OW_NAMESPACE::CIMException::INVALID_NAMESPACE, m_mStore, OW_NAMESPACE::MetaRepository2::nameSpaceExists(), ns, OW_THROWCIMMSG, OW_NAMESPACE::CIMException::SUCCESS, and OW_NAMESPACE::toString().

Referenced by _instGetClass().

void OW_NAMESPACE::CIMRepository2::close  )  [virtual]
 

Close this RepositoryIFC.

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 243 of file OW_CIMRepository2.cpp.

References OW_NAMESPACE::AssocDb2::close(), OW_NAMESPACE::MetaRepository2::close(), OW_NAMESPACE::InstanceRepository2::close(), m_classAssocDb, m_dbenv, m_instAssocDb, m_iStore, and m_mStore.

Referenced by ~CIMRepository2().

void OW_NAMESPACE::CIMRepository2::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 CIM_ERR_ACCESS_DENIED CIM_ERR_NOT_SUPPORTED CIM_ERR_INVALID_NAMESPACE CIM_ERR_INVALID_PARAMETER CIM_ERR_ALREADY_EXISTS CIM_ERR_INVALID_SUPERCLASS CIM_ERR_FAILED

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 478 of file OW_CIMRepository2.cpp.

References _getClass(), OW_NAMESPACE::AssocDb2::addEntries(), cimClass, OW_NAMESPACE::MetaRepository2::createClass(), OW_NAMESPACE::CIMClass::getName(), OW_NAMESPACE::CIMClass::isAssociation(), m_classAssocDb, m_mStore, and ns.

CIMObjectPath OW_NAMESPACE::CIMRepository2::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:
CIMException CIM_ERR_ACCESS_DENIED CIM_ERR_NOT_SUPPORTED CIM_ERR_INVALID_NAMESPACE CIM_ERR_INVALID_PARAMETER CIM_ERR_ALREADY_EXISTS CIM_ERR_INVALID_CLASS CIM_ERR_FAILED

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 779 of file OW_CIMRepository2.cpp.

References OW_NAMESPACE::E_DEBUG_LEVEL, m_env, ns, OW_LOG_DEBUG, and OW_NAMESPACE::CIMInstance::toMOF().

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

Create a cim namespace.

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

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 260 of file OW_CIMRepository2.cpp.

References context, OW_NAMESPACE::MetaRepository2::createNameSpace(), OW_NAMESPACE::E_DEBUG_LEVEL, m_env, m_mStore, ns, and OW_LOG_DEBUG.

Referenced by OW_NAMESPACE::CIM_NamespaceInstProv::createInstance().

CIMClass OW_NAMESPACE::CIMRepository2::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:
an CIMClass representing the class which was deleted.
Exceptions:
CIMException CIM_ERR_CLASS_HAS_CHILDREN CIM_ERR_CLASS_HAS_INSTANCES CIM_ERR_ACCESS_DENIED CIM_ERR_NOT_FOUND CIM_ERR_NOT_SUPPORTED CIM_ERR_INVALID_NAMESPACE CIM_ERR_INVALID_PARAMETER CIM_ERR_FAILED

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 452 of file OW_CIMRepository2.cpp.

References _getClass(), className, OW_NAMESPACE::E_DEBUG_LEVEL, OW_NAMESPACE::WBEMFlags::E_DEEP, OW_NAMESPACE::WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, OW_NAMESPACE::WBEMFlags::E_EXCLUDE_QUALIFIERS, OW_NAMESPACE::WBEMFlags::E_LOCAL_ONLY, enumClasses(), m_classAssocDb, m_env, m_iStore, m_mStore, ns, OW_ASSERT, and OW_LOG_DEBUG.

CIMInstance OW_NAMESPACE::CIMRepository2::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:
CIMException CIM_ERR_ACCESS_DENIED CIM_ERR_NOT_FOUND CIM_ERR_NOT_SUPPORTED CIM_ERR_INVALID_NAMESPACE CIM_ERR_INVALID_PARAMETER CIM_ERR_INVALID_CLASS CIM_ERR_FAILED

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 738 of file OW_CIMRepository2.cpp.

References cop, OW_NAMESPACE::E_DEBUG_LEVEL, m_env, ns, OW_LOG_DEBUG, OW_NAMESPACE::CIMObjectPath::setNameSpace(), and OW_NAMESPACE::CIMObjectPath::toString().

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

Delete a specified namespace.

Parameters:
ns The namespace to delete.
aclInfo ignored
Exceptions:
CIMException If the namespace does not exist.

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 272 of file OW_CIMRepository2.cpp.

References context, OW_NAMESPACE::MetaRepository2::deleteNameSpace(), OW_NAMESPACE::E_DEBUG_LEVEL, m_env, m_mStore, ns, and OW_LOG_DEBUG.

Referenced by OW_NAMESPACE::CIM_NamespaceInstProv::deleteInstance().

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

Delete an existing qualifier type from the repository.

Parameters:
ns The name space.
qualName The qualifier type name
aclInfo ignored
Exceptions:
CIMException 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 325 of file OW_CIMRepository2.cpp.

References OW_NAMESPACE::MetaRepository2::deleteQualifierType(), m_mStore, OW_NAMESPACE::MetaRepository2::nameSpaceExists(), OW_NAMESPACE::CIMException::NOT_FOUND, ns, and OW_THROWCIMMSG.

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

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 1748 of file OW_CIMRepository2.cpp.

void OW_NAMESPACE::CIMRepository2::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 CIM_ERR_ACCESS_DENIED CIM_ERR_NOT_SUPPORTED CIM_ERR_INVALID_NAMESPACE CIM_ERR_INVALID_PARAMETER CIM_ERR_INVALID_CLASS CIM_ERR_FAILED

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 526 of file OW_CIMRepository2.cpp.

References className, OW_NAMESPACE::E_DEBUG_LEVEL, OW_NAMESPACE::MetaRepository2::enumClass(), m_env, m_mStore, ns, OW_LOG_DEBUG, and result.

Referenced by deleteClass().

void OW_NAMESPACE::CIMRepository2::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.
localOnly Only include properties
aclInfo ACL object describing user making request.
Exceptions:
CIMException CIM_ERR_ACCESS_DENIED CIM_ERR_NOT_SUPPORTED CIM_ERR_INVALID_NAMESPACE CIM_ERR_INVALID_PARAMETER CIM_ERR_INVALID_CLASS CIM_ERR_FAILED

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 543 of file OW_CIMRepository2.cpp.

References className, OW_NAMESPACE::E_DEBUG_LEVEL, OW_NAMESPACE::MetaRepository2::enumClassNames(), m_env, m_mStore, ns, OW_LOG_DEBUG, and result.

Referenced by OW_NAMESPACE::CIM_NamespaceInstProv::deleteInstance(), and OW_NAMESPACE::getClassChildren().

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

Retrieve an enumeration of instances object paths (CIMObjectPath) 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:
CIMException CIM_ERR_ACCESS_DENIED CIM_ERR_NOT_SUPPORTED CIM_ERR_INVALID_NAMESPACE CIM_ERR_INVALID_PARAMETER CIM_ERR_INVALID_CLASS CIM_ERR_FAILED

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 582 of file OW_CIMRepository2.cpp.

References _instGetClass(), className, OW_NAMESPACE::E_DEBUG_LEVEL, OW_NAMESPACE::InstanceRepository2::getInstanceNames(), m_env, m_iStore, ns, OW_LOG_DEBUG, result, and theClass.

void OW_NAMESPACE::CIMRepository2::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 Return properties defined on subclasses of the class in path
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:
CIMException CIM_ERR_ACCESS_DENIED CIM_ERR_NOT_SUPPORTED CIM_ERR_INVALID_NAMESPACE CIM_ERR_INVALID_PARAMETER CIM_ERR_INVALID_CLASS CIM_ERR_FAILED

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 669 of file OW_CIMRepository2.cpp.

References _instGetClass(), className, OW_NAMESPACE::E_DEBUG_LEVEL, OW_NAMESPACE::InstanceRepository2::getCIMInstances(), m_env, m_iStore, ns, OW_LOG_DEBUG, propertyList, result, and theTopClass.

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

Gets a list of the namespaces.

Parameters:
aclInfo ignored
result result.handle() will be called for each namespace.
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 285 of file OW_CIMRepository2.cpp.

References context, OW_NAMESPACE::E_DEBUG_LEVEL, OW_NAMESPACE::MetaRepository2::enumNameSpace(), m_env, m_mStore, OW_LOG_DEBUG, and result.

Referenced by OW_NAMESPACE::enumNameSpace(), and OW_NAMESPACE::enumNameSpaceE().

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

Enumerate the qualifier types in a name space.

Parameters:
ns The namespace to enumerate the qualifiers in.
aclInfo ignored
result result.handle() will be called for each qualifier type.
Exceptions:
CIMException 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 312 of file OW_CIMRepository2.cpp.

References OW_NAMESPACE::E_DEBUG_LEVEL, OW_NAMESPACE::MetaRepository2::enumQualifierTypes(), m_env, m_mStore, ns, OW_LOG_DEBUG, and result.

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

Exceptions:
CIMException CIM_ERR_ACCESS_DENIED CIM_ERR_NOT_SUPPORTED CIM_ERR_INVALID_NAMESPACE CIM_ERR_INVALID_PARAMETER CIM_ERR_QUERY_LANGUAGE_NOT_SUPPORTED CIM_ERR_INVALID_QUERY CIM_ERR_FAILED

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 948 of file OW_CIMRepository2.cpp.

References OW_NAMESPACE::CIMException::NOT_SUPPORTED, and OW_THROWCIM.

CIMClass OW_NAMESPACE::CIMRepository2::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 ignored
includeQualifiers ignored
includeClassOrigin ignored
propertyList ignored
aclInfo ignored
Returns:
A valid CIMClass object on success. A NULL CIMClass will never be returned. An exception will be thrown instead. CIMClass object.
Exceptions:
CIMException CIM_ERR_FAILED CIM_ERR_ACCESS_DENIED CIM_ERR_NOT_FOUND CIM_ERR_INVALID_NAMESPACE CIM_ERR_INVALID_PARAMETER

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 364 of file OW_CIMRepository2.cpp.

References checkGetClassRvalAndThrow(), OW_NAMESPACE::CIMNULL, className, OW_NAMESPACE::E_DEBUG_LEVEL, OW_NAMESPACE::MetaRepository2::getCIMClass(), OW_NAMESPACE::CIMClass::getName(), m_env, m_mStore, ns, OW_LOG_DEBUG, propertyList, and theClass.

ServiceEnvironmentIFCRef OW_NAMESPACE::CIMRepository2::getEnvironment  )  const [inline, virtual]
 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 542 of file OW_CIMRepository2.hpp.

References m_env.

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

Definition at line 710 of file OW_CIMRepository2.cpp.

References _instGetClass(), OW_NAMESPACE::CIMNULL, OW_NAMESPACE::InstanceRepository2::getCIMInstance(), OW_NAMESPACE::CIMObjectPath::getClassName(), m_iStore, ns, OW_ASSERT, and propertyList.

CIMInstance OW_NAMESPACE::CIMRepository2::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:
CIMException CIM_ERR_FAILED CIM_ERR_ACCESS_DENIED CIM_ERR_NOT_FOUND CIM_ERR_INVALID_NAMESPACE CIM_ERR_INVALID_CLASS CIM_ERR_INVALID_PARAMETER

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 697 of file OW_CIMRepository2.cpp.

References context, ns, and propertyList.

Referenced by getProperty(), and modifyInstance().

CIMValue OW_NAMESPACE::CIMRepository2::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 914 of file OW_CIMRepository2.cpp.

References _instGetClass(), OW_NAMESPACE::String::c_str(), context, OW_NAMESPACE::WBEMFlags::E_INCLUDE_CLASS_ORIGIN, OW_NAMESPACE::WBEMFlags::E_INCLUDE_QUALIFIERS, OW_NAMESPACE::WBEMFlags::E_NOT_LOCAL_ONLY, getInstance(), OW_NAMESPACE::CIMClass::getProperty(), OW_NAMESPACE::CIMProperty::getValue(), name, OW_NAMESPACE::CIMException::NO_SUCH_PROPERTY, ns, OW_THROWCIMMSG, and theClass.

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

Get an existing qualifier type from the repository.

Parameters:
ns The namespace of the qualifier type
qualifierName The name of the qualifier type.
aclInfo ignored
Returns:
A valid CIMQaulifer type.
Exceptions:
CIMException 
IOException 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 297 of file OW_CIMRepository2.cpp.

References OW_NAMESPACE::E_DEBUG_LEVEL, OW_NAMESPACE::MetaRepository2::getQualifierType(), m_env, m_mStore, ns, OW_LOG_DEBUG, and OW_NAMESPACE::toString().

CIMValue OW_NAMESPACE::CIMRepository2::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.
Exceptions:
CIMException 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 938 of file OW_CIMRepository2.cpp.

References OW_NAMESPACE::CIMException::NOT_SUPPORTED, and OW_THROWCIM.

CIMClass OW_NAMESPACE::CIMRepository2::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 CIM_ERR_ACCESS_DENIED CIM_ERR_NOT_SUPPORTED CIM_ERR_INVALID_NAMESPACE CIM_ERR_INVALID_PARAMETER CIM_ERR_NOT_FOUND CIM_ERR_INVALID_SUPERCLASS CIM_ERR_CLASS_HAS_CHILDREN CIM_ERR_CLASS_HAS_INSTANCES CIM_ERR_FAILED

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 501 of file OW_CIMRepository2.cpp.

References _getClass(), OW_NAMESPACE::E_DEBUG_LEVEL, OW_NAMESPACE::CIMClass::getName(), m_env, m_mStore, OW_NAMESPACE::MetaRepository2::modifyClass(), ns, OW_ASSERT, OW_LOG_DEBUG, and OW_NAMESPACE::CIMClass::toMOF().

CIMInstance OW_NAMESPACE::CIMRepository2::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:
CIMException CIM_ERR_ACCESS_DENIED CIM_ERR_NOT_SUPPORTED CIM_ERR_INVALID_NAMESPACE CIM_ERR_INVALID_PARAMETER CIM_ERR_INVALID_CLASS CIM_ERR_NOT_FOUND CIM_ERR_FAILED

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 841 of file OW_CIMRepository2.cpp.

References OW_NAMESPACE::CIMNULL, cop, OW_NAMESPACE::WBEMFlags::E_INCLUDE_CLASS_ORIGIN, OW_NAMESPACE::WBEMFlags::E_INCLUDE_QUALIFIERS, OW_NAMESPACE::WBEMFlags::E_NOT_LOCAL_ONLY, getInstance(), m_iStore, OW_NAMESPACE::InstanceRepository2::modifyInstance(), ns, OW_ASSERT, propertyList, and theClass.

void OW_NAMESPACE::CIMRepository2::open const String path  )  [virtual]
 

Open

Exceptions:
IOException. 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 166 of file OW_CIMRepository2.cpp.

References OW_NAMESPACE::String::c_str(), OW_NAMESPACE::FileSystem::canWrite(), OW_NAMESPACE::FileSystem::exists(), OW_NAMESPACE::FileSystem::makeDirectory(), OW_FILENAME_SEPARATOR, and OW_THROW.

CIMRepository2& OW_NAMESPACE::CIMRepository2::operator= const CIMRepository2  )  [private]
 

void OW_NAMESPACE::CIMRepository2::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 1028 of file OW_CIMRepository2.cpp.

References _commonReferences(), context, OW_NAMESPACE::WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, OW_NAMESPACE::WBEMFlags::E_EXCLUDE_QUALIFIERS, ns, and result.

void OW_NAMESPACE::CIMRepository2::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 1002 of file OW_CIMRepository2.cpp.

References _commonReferences(), context, ns, propertyList, and result.

void OW_NAMESPACE::CIMRepository2::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 1015 of file OW_CIMRepository2.cpp.

References _commonReferences(), context, ns, propertyList, and result.

void OW_NAMESPACE::CIMRepository2::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 860 of file OW_CIMRepository2.cpp.

References _instGetClass(), OW_NAMESPACE::String::c_str(), OW_NAMESPACE::CIMValueCast::castValueToDataType(), OW_NAMESPACE::CIMException::getErrNo(), OW_NAMESPACE::CIMClass::getProperty(), name, OW_NAMESPACE::CIMException::NO_SUCH_PROPERTY, ns, OW_THROWCIMMSG, OW_NAMESPACE::CIMException::setErrNo(), theClass, and OW_NAMESPACE::CIMException::TYPE_MISMATCH.

void OW_NAMESPACE::CIMRepository2::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 ignored
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 350 of file OW_CIMRepository2.cpp.

References OW_NAMESPACE::E_DEBUG_LEVEL, m_env, m_mStore, ns, OW_LOG_DEBUG, OW_NAMESPACE::MetaRepository2::setQualifierType(), and OW_NAMESPACE::CIMQualifierType::toString().


Friends And Related Function Documentation

friend class CIMServer [friend]
 

Definition at line 635 of file OW_CIMRepository2.hpp.


Member Data Documentation

bool OW_NAMESPACE::CIMRepository2::m_checkReferentialIntegrity [private]
 

Definition at line 631 of file OW_CIMRepository2.hpp.

Referenced by CIMRepository2().

AssocDb2 OW_NAMESPACE::CIMRepository2::m_classAssocDb
 

Definition at line 626 of file OW_CIMRepository2.hpp.

Referenced by _staticAssociatorsClass(), _staticReferencesClass(), close(), createClass(), and deleteClass().

DB_ENV* OW_NAMESPACE::CIMRepository2::m_dbenv [private]
 

Definition at line 633 of file OW_CIMRepository2.hpp.

Referenced by close().

ServiceEnvironmentIFCRef OW_NAMESPACE::CIMRepository2::m_env
 

Definition at line 629 of file OW_CIMRepository2.hpp.

Referenced by _staticReferencesClass(), CIMRepository2(), createInstance(), createNameSpace(), deleteClass(), deleteInstance(), deleteNameSpace(), enumClasses(), enumClassNames(), enumInstanceNames(), enumInstances(), enumNameSpace(), enumQualifierTypes(), getClass(), getEnvironment(), getQualifierType(), modifyClass(), and setQualifierType().

AssocDb2 OW_NAMESPACE::CIMRepository2::m_instAssocDb
 

Definition at line 627 of file OW_CIMRepository2.hpp.

Referenced by _staticAssociatorNames(), _staticAssociators(), _staticReferenceNames(), _staticReferences(), and close().

InstanceRepository2 OW_NAMESPACE::CIMRepository2::m_iStore
 

Definition at line 623 of file OW_CIMRepository2.hpp.

Referenced by close(), deleteClass(), enumInstanceNames(), enumInstances(), getInstance(), and modifyInstance().

MetaRepository2 OW_NAMESPACE::CIMRepository2::m_mStore
 

Definition at line 624 of file OW_CIMRepository2.hpp.

Referenced by _commonAssociators(), _commonReferences(), _getAssociationClasses(), _getClass(), _instGetClass(), checkGetClassRvalAndThrow(), checkGetClassRvalAndThrowInst(), close(), createClass(), createNameSpace(), deleteClass(), deleteNameSpace(), deleteQualifierType(), enumClasses(), enumClassNames(), enumNameSpace(), enumQualifierTypes(), getClass(), getQualifierType(), modifyClass(), and setQualifierType().


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