#include <OW_RepositoryCIMOMHandle.hpp>
Inheritance diagram for OW_NAMESPACE::RepositoryCIMOMHandle:
Public Types | |
typedef RepositoryIFCRef RepositoryCIMOMHandle::* | safe_bool |
enum | ELockingFlag { E_NO_LOCKING, E_LOCKING } |
Public Member Functions | |
RepositoryCIMOMHandle (const RepositoryIFCRef &pRepos, OperationContext &context, ELockingFlag lock=E_LOCKING) | |
Create a new RepositoryCIMOMHandle with a given repository interface and user access contol information. | |
virtual void | close () |
Close the connetion to the CIMOM. | |
virtual void | createNameSpace (const String &ns) |
virtual void | deleteNameSpace (const String &ns) |
virtual void | enumNameSpace (StringResultHandlerIFC &result) |
virtual void | enumClass (const String &ns, const String &className, CIMClassResultHandlerIFC &result, WBEMFlags::EDeepFlag deep=WBEMFlags::E_SHALLOW, WBEMFlags::ELocalOnlyFlag localOnly=WBEMFlags::E_NOT_LOCAL_ONLY, WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_INCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_INCLUDE_CLASS_ORIGIN) |
Enumerates the class specified by the CIMObjectPath. | |
virtual void | enumClassNames (const String &ns, const String &className, StringResultHandlerIFC &result, WBEMFlags::EDeepFlag deep=WBEMFlags::E_DEEP) |
Enumerates the child classes of className. | |
virtual CIMQualifierType | getQualifierType (const String &ns, const String &qualifierName) |
Gets the CIM qualifier type specified in the CIM object path. | |
virtual void | enumQualifierTypes (const String &ns, CIMQualifierTypeResultHandlerIFC &result) |
Enumerates the qualifiers defined in a namespace. | |
virtual void | deleteQualifierType (const String &ns, const String &qualName) |
Deletes a CIM qualfier type. | |
virtual void | setQualifierType (const String &ns, const CIMQualifierType &qt) |
Updates the specified CIM qualifier type in the specified namespace if it exists. | |
virtual CIMInstance | getInstance (const String &ns, const CIMObjectPath &instanceName, WBEMFlags::ELocalOnlyFlag localOnly=WBEMFlags::E_NOT_LOCAL_ONLY, WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_EXCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, const StringArray *propertyList=0) |
Gets the CIM instance for the specified CIM object path. | |
virtual void | enumInstances (const String &ns, const String &className, CIMInstanceResultHandlerIFC &result, WBEMFlags::EDeepFlag deep=WBEMFlags::E_DEEP, WBEMFlags::ELocalOnlyFlag localOnly=WBEMFlags::E_NOT_LOCAL_ONLY, WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_EXCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, const StringArray *propertyList=0) |
Gathers all instances (the whole instance and not just the names) belonging to the class specified in the path. | |
virtual void | enumInstanceNames (const String &ns, const String &className, CIMObjectPathResultHandlerIFC &result) |
Gathers all instance names belonging to the class specified in the path. | |
virtual CIMClass | getClass (const String &ns, const String &className, WBEMFlags::ELocalOnlyFlag localOnly=WBEMFlags::E_NOT_LOCAL_ONLY, WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_INCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_INCLUDE_CLASS_ORIGIN, const StringArray *propertyList=NULL) |
Gets the CIM class for the specified CIM object path. | |
virtual CIMValue | invokeMethod (const String &ns, const CIMObjectPath &path, const String &methodName, const CIMParamValueArray &inParams, CIMParamValueArray &outParams) |
Executes the specified method on the specified object. | |
virtual void | createClass (const String &ns, const CIMClass &cc) |
Adds the CIM class to the specified namespace. | |
virtual void | modifyClass (const String &ns, const CIMClass &cc) |
Updates the CIM class within the specified namespace. | |
virtual void | deleteClass (const String &ns, const String &className) |
Deletes the CIM class specified by className from namespace ns. | |
virtual CIMObjectPath | createInstance (const String &ns, const CIMInstance &ci) |
Add the specified CIM instance to the specified namespace. | |
virtual void | setProperty (const String &ns, const CIMObjectPath &name, const String &propertyName, const CIMValue &cv) |
Set the specified CIM instance property. | |
virtual void | modifyInstance (const String &ns, const CIMInstance &modifiedInstance, WBEMFlags::EIncludeQualifiersFlag includeQualifiers, const StringArray *propertyList) |
Update the specified CIM instance within the specified namespace. | |
virtual void | deleteInstance (const String &ns, const CIMObjectPath &path) |
Deletes the CIM instance specified by path from namespace ns. | |
virtual CIMValue | getProperty (const String &ns, const CIMObjectPath &name, const String &propertyName) |
Get the specified CIM instance property. | |
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) |
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=String(), const String &resultClass=String(), const String &role=String(), const String &resultRole=String(), WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_EXCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, const StringArray *propertyList=0) |
This operation is used to enumerate CIMClasses that are associated to a particular source 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) |
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) |
This operation is used to enumerate the association objects that refer to a particular target CIM Class. | |
virtual void | associatorNames (const String &ns, const CIMObjectPath &path, CIMObjectPathResultHandlerIFC &result, const String &assocClass, const String &resultClass, const String &role, const String &resultRole) |
This method is used to enumerate the names of CIM Objects (Classes or Instances) that are associated to a particular CIM Object. | |
virtual void | referenceNames (const String &ns, const CIMObjectPath &path, CIMObjectPathResultHandlerIFC &result, const String &resultClass, const String &role) |
This operation is used to enumerate the association objects that refer to a particular target CIM Object (Class or Instance). | |
virtual void | execQuery (const String &ns, CIMInstanceResultHandlerIFC &result, const String &query, const String &queryLanguage) |
Executes a query to retrieve or modify objects. | |
operator safe_bool () const | |
bool | operator! () const |
void | beginOperation (WBEMFlags::EOperationFlag op, OperationContext &context) |
void | endOperation (WBEMFlags::EOperationFlag op, OperationContext &context, WBEMFlags::EOperationResultFlag result) |
Private Attributes | |
RepositoryIFCRef | m_pServer |
A Reference to the Repository interface that this RepositoryCIMOMHandle will use. | |
ELockingFlag | m_lock |
If m_lock is E_NO_LOCKING, then this RepositoryCIMOMHandle will never attempt to acquire a read/write lock on the cim server, or begin a new transaction. | |
OperationContext & | m_context |
Definition at line 52 of file OW_RepositoryCIMOMHandle.hpp.
|
Definition at line 221 of file OW_RepositoryCIMOMHandle.hpp. |
|
Definition at line 56 of file OW_RepositoryCIMOMHandle.hpp. |
|
Create a new RepositoryCIMOMHandle with a given repository interface and user access contol information.
Definition at line 51 of file OW_RepositoryCIMOMHandle.cpp. |
|
This method is used to enumerate the names of CIM Objects (Classes or Instances) that are associated to a particular CIM Object.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 349 of file OW_RepositoryCIMOMHandle.cpp. References OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_ASSOCIATOR_NAMES, m_context, m_pServer, ns, and result. |
|
This operation is used to enumerate CIM Objects (Classes or Instances) that are associated to a particular source CIM Object.
Clients SHOULD NOT explicitly specify properties in the PropertyList parameter unless they have specified a non-empty ("") value for the ResultClass parameter.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 363 of file OW_RepositoryCIMOMHandle.cpp. References OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_ASSOCIATORS, m_context, m_pServer, ns, propertyList, and result. |
|
This operation is used to enumerate CIMClasses that are associated to a particular source CIM Object.
Clients SHOULD NOT explicitly specify properties in the PropertyList parameter unless they have specified a non-empty ("") value for the ResultClass parameter.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 381 of file OW_RepositoryCIMOMHandle.cpp. References OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_ASSOCIATORS_CLASSES, m_context, m_pServer, ns, propertyList, and result. |
|
Definition at line 456 of file OW_RepositoryCIMOMHandle.cpp. References m_context, m_lock, and m_pServer. Referenced by OW_NAMESPACE::OperationScope::OperationScope(). |
|
Close the connetion to the CIMOM. This will free resources used for the client session. The destructor will call close(). Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 87 of file OW_RepositoryCIMOMHandle.cpp. |
|
Adds the CIM class to the specified namespace.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 268 of file OW_RepositoryCIMOMHandle.cpp. References OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_CREATE_CLASS, m_context, m_pServer, and ns. |
|
Add the specified CIM instance to the specified namespace.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 300 of file OW_RepositoryCIMOMHandle.cpp. References OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_CREATE_INSTANCE, m_context, m_pServer, and ns. |
|
Definition at line 93 of file OW_RepositoryCIMOMHandle.cpp. References OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_CREATE_NAMESPACE, m_context, m_pServer, and ns. |
|
Deletes the CIM class specified by className from namespace ns.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 277 of file OW_RepositoryCIMOMHandle.cpp. References className, OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_DELETE_CLASS, m_context, m_pServer, and ns. |
|
Deletes the CIM instance specified by path from namespace ns.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 310 of file OW_RepositoryCIMOMHandle.cpp. References OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_DELETE_INSTANCE, m_context, m_pServer, and ns. |
|
Definition at line 101 of file OW_RepositoryCIMOMHandle.cpp. References OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_DELETE_NAMESPACE, m_context, m_pServer, and ns. |
|
Deletes a CIM qualfier type.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 183 of file OW_RepositoryCIMOMHandle.cpp. References OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_DELETE_QUALIFIER_TYPE, m_context, m_pServer, and ns. |
|
Definition at line 466 of file OW_RepositoryCIMOMHandle.cpp. References m_context, m_lock, and m_pServer. Referenced by OW_NAMESPACE::OperationScope::~OperationScope(). |
|
Enumerates the class specified by the CIMObjectPath.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 118 of file OW_RepositoryCIMOMHandle.cpp. References className, OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_ENUM_CLASSES, m_context, m_pServer, ns, and result. |
|
Enumerates the child classes of className.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 133 of file OW_RepositoryCIMOMHandle.cpp. References className, OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_ENUM_CLASS_NAMES, m_context, m_pServer, ns, and result. |
|
Gathers all instance names belonging to the class specified in the path. This could include instances of all the classes in the specified class' hierarchy.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 161 of file OW_RepositoryCIMOMHandle.cpp. References className, OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_DEEP, OW_NAMESPACE::WBEMFlags::E_ENUM_INSTANCE_NAMES, m_context, m_pServer, ns, and result. |
|
Gathers all instances (the whole instance and not just the names) belonging to the class specified in the path. This could include instances of all the classes in the specified class' hierarchy.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 144 of file OW_RepositoryCIMOMHandle.cpp. References className, OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_ENUM_INSTANCES, OW_NAMESPACE::WBEMFlags::E_ENUM_SUBCLASSES, m_context, m_pServer, ns, propertyList, and result. |
|
Definition at line 110 of file OW_RepositoryCIMOMHandle.cpp. References OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_ENUM_NAMESPACE, m_context, m_pServer, and result. |
|
Enumerates the qualifiers defined in a namespace.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 191 of file OW_RepositoryCIMOMHandle.cpp. References OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_ENUM_QUALIFIER_TYPES, m_context, m_pServer, ns, and result. |
|
Executes a query to retrieve or modify objects.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 444 of file OW_RepositoryCIMOMHandle.cpp. References OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_EXEC_QUERY, m_context, m_pServer, ns, and result. |
|
Gets the CIM class for the specified CIM object path.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 211 of file OW_RepositoryCIMOMHandle.cpp. References className, OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_GET_CLASS, m_context, m_pServer, ns, and propertyList. |
|
Gets the CIM instance for the specified CIM object path.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 227 of file OW_RepositoryCIMOMHandle.cpp. References OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_GET_INSTANCE, m_context, m_pServer, ns, and propertyList. |
|
Get the specified CIM instance property.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 334 of file OW_RepositoryCIMOMHandle.cpp. References OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_GET_PROPERTY, m_context, m_pServer, name, and ns. |
|
Gets the CIM qualifier type specified in the CIM object path.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 172 of file OW_RepositoryCIMOMHandle.cpp. References OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_GET_QUALIFIER_TYPE, m_context, m_pServer, and ns. |
|
Executes the specified method on the specified object. A method is a declaration containing the method name, return type, and parameters in the method.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 243 of file OW_RepositoryCIMOMHandle.cpp. References OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_INVOKE_METHOD, m_context, m_pServer, ns, and outParams. |
|
Updates the CIM class within the specified namespace.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 258 of file OW_RepositoryCIMOMHandle.cpp. References OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_MODIFY_CLASS, m_context, m_pServer, and ns. |
|
Update the specified CIM instance within the specified namespace.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 287 of file OW_RepositoryCIMOMHandle.cpp. References OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_MODIFY_INSTANCE, m_context, m_pServer, ns, and propertyList. |
|
Definition at line 222 of file OW_RepositoryCIMOMHandle.hpp. References m_pServer. |
|
Definition at line 224 of file OW_RepositoryCIMOMHandle.hpp. |
|
This operation is used to enumerate the association objects that refer to a particular target CIM Object (Class or Instance).
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 399 of file OW_RepositoryCIMOMHandle.cpp. References OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_REFERENCE_NAMES, m_context, m_pServer, ns, and result. |
|
This operation is used to enumerate the association objects that refer to a particular target CIM Object (Class or Instance).
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 411 of file OW_RepositoryCIMOMHandle.cpp. References OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_REFERENCES, m_context, m_pServer, ns, propertyList, and result. |
|
This operation is used to enumerate the association objects that refer to a particular target CIM Class.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 427 of file OW_RepositoryCIMOMHandle.cpp. References OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_REFERENCES_CLASSES, m_context, m_pServer, ns, propertyList, and result. |
|
Set the specified CIM instance property.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 319 of file OW_RepositoryCIMOMHandle.cpp. References OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_SET_PROPERTY, m_context, m_pServer, name, and ns. |
|
Updates the specified CIM qualifier type in the specified namespace if it exists. If it doesn't exist, it will be added.
Implements OW_NAMESPACE::CIMOMHandleIFC. Definition at line 201 of file OW_RepositoryCIMOMHandle.cpp. References OW_NAMESPACE::OperationScope::completedSuccessfully(), OW_NAMESPACE::WBEMFlags::E_SET_QUALIFIER_TYPE, m_context, m_pServer, and ns. |
|
|
If m_lock is E_NO_LOCKING, then this RepositoryCIMOMHandle will never attempt to acquire a read/write lock on the cim server, or begin a new transaction.
Definition at line 251 of file OW_RepositoryCIMOMHandle.hpp. Referenced by beginOperation(), and endOperation(). |
|
A Reference to the Repository interface that this RepositoryCIMOMHandle will use.
Definition at line 241 of file OW_RepositoryCIMOMHandle.hpp. Referenced by associatorNames(), associators(), associatorsClasses(), beginOperation(), createClass(), createInstance(), createNameSpace(), deleteClass(), deleteInstance(), deleteNameSpace(), deleteQualifierType(), endOperation(), enumClass(), enumClassNames(), enumInstanceNames(), enumInstances(), enumNameSpace(), enumQualifierTypes(), execQuery(), getClass(), getInstance(), getProperty(), getQualifierType(), invokeMethod(), modifyClass(), modifyInstance(), operator safe_bool(), referenceNames(), references(), referencesClasses(), setProperty(), and setQualifierType(). |