OW_NAMESPACE::SharedLibraryRepository Class Reference

#include <OW_SharedLibraryRepository.hpp>

Inheritance diagram for OW_NAMESPACE::SharedLibraryRepository:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SharedLibraryRepository (SharedLibraryRepositoryIFCRef ref)
 ~SharedLibraryRepository ()
virtual void close ()
 Close this RepositoryIFC.
virtual String getName () const
 Every service may have a name.
virtual StringArray getDependencies () const
 Get the list of services this service depends on.
virtual void init (const ServiceEnvironmentIFCRef &env)
 init() will be called to give the derived class an opportunity to initialize itself.
virtual void initialized ()
 initialized() will be called after init() has been sucessfully called on all services.
virtual void start ()
 In start(), a service should start doing whatever it does, such as starting a new thread or adding selectables to the environment.
virtual void started ()
 started() will be called on all services after start() has been called on all services.
virtual void shutdown ()
 The service must shutdown completely before returning from this function.
virtual void shuttingDown ()
 shuttingdown() will be called before shutdown() is called on all services.
virtual void open (const String &path)
 Open this RepositoryIFC.
virtual ServiceEnvironmentIFCRef getEnvironment () const
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 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 CIMInstance deleteInstance (const String &ns, const CIMObjectPath &cop, OperationContext &context)
 Delete an existing instance from the store.
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 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 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 namespace and classname.
virtual CIMValue invokeMethod (const String &ns, const CIMObjectPath &path, const String &methodName, const CIMParamValueArray &inParams, CIMParamValueArray &outParams, OperationContext &context)
 Invokes a method.
virtual void enumInstanceNames (const String &ns, const String &className, CIMObjectPathResultHandlerIFC &result, WBEMFlags::EDeepFlag deep, OperationContext &context)
 Retrieve an enumeration of instance object paths (CIMInstance) 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 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 CIMValue getProperty (const String &ns, const CIMObjectPath &name, const String &propertyName, OperationContext &context)
 Get the specified CIM instance property.
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 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

SharedLibraryRepositoryIFCRef m_ref

Detailed Description

Definition at line 43 of file OW_SharedLibraryRepository.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::SharedLibraryRepository::SharedLibraryRepository SharedLibraryRepositoryIFCRef  ref  ) 
 

Definition at line 49 of file OW_SharedLibraryRepository.cpp.

OW_NAMESPACE::SharedLibraryRepository::~SharedLibraryRepository  ) 
 

Definition at line 52 of file OW_SharedLibraryRepository.cpp.


Member Function Documentation

void OW_NAMESPACE::SharedLibraryRepository::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 262 of file OW_SharedLibraryRepository.cpp.

References context, m_ref, ns, and result.

void OW_NAMESPACE::SharedLibraryRepository::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 273 of file OW_SharedLibraryRepository.cpp.

References context, m_ref, ns, propertyList, and result.

void OW_NAMESPACE::SharedLibraryRepository::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 286 of file OW_SharedLibraryRepository.cpp.

References context, m_ref, ns, propertyList, and result.

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

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 317 of file OW_SharedLibraryRepository.cpp.

References context, and m_ref.

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

Close this RepositoryIFC.

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 54 of file OW_SharedLibraryRepository.cpp.

References m_ref.

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

Creates a class in the store.

Parameters:
ns The namespace in which to create a class.
cimClass The class to create.
context 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 167 of file OW_SharedLibraryRepository.cpp.

References cimClass, context, m_ref, and ns.

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

Creates a instance in the store.

Parameters:
ns The namespace to which the an instance should be added.
ci The instance that is to be stored with that object path
context ACL object describing user making request.
Exceptions:
HDBException 
CIMException 
IOException 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 120 of file OW_SharedLibraryRepository.cpp.

References context, m_ref, and ns.

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

Create a cim namespace.

Parameters:
ns The namespace to be created.
context ACL object describing user making request.
Exceptions:
CIMException If the namespace already exists.

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 69 of file OW_SharedLibraryRepository.cpp.

References context, m_ref, and ns.

CIMClass OW_NAMESPACE::SharedLibraryRepository::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
context 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 177 of file OW_SharedLibraryRepository.cpp.

References className, context, m_ref, and ns.

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

Delete an existing instance from the store.

Parameters:
ns The namespace from which to delete an instance.
cop The CIMObectPath that specifies the instance.
context 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 145 of file OW_SharedLibraryRepository.cpp.

References context, cop, m_ref, and ns.

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

Delete a specified namespace.

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

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 74 of file OW_SharedLibraryRepository.cpp.

References context, m_ref, and ns.

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

Delete an existing qualifier type from the repository.

Parameters:
ns The namespace from which the qualfier should be deleted.
qualName The name of the qualifier to be deleted.
context ACL object describing user making request.
Exceptions:
CIMException 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 98 of file OW_SharedLibraryRepository.cpp.

References context, m_ref, and ns.

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

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 321 of file OW_SharedLibraryRepository.cpp.

References context, and m_ref.

void OW_NAMESPACE::SharedLibraryRepository::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:
ns The namespace to search.
className The name of the class to find.
path The CIMObjectPath identifying the class to be enumerated.
deep If set to E_DEEP, the enumeration returned will contain the names of all classes derived from the enumerated class. If set to E_SHALLOW the enumermation will return only the names of the first level children of the enumerated class.
localOnly If E_LOCAL_ONLY, then only CIM elements (properties, methods, qualifiers) overriden within the definition are returned.
includeQualifiers If set to E_INCLUDE_QUALIFIERS, then all qualifiers for the class (including properties, methods, and method parameters) are returned.
includeClassOrigin If set to E_INCLUDE_CLASS_ORIGIN, then the class origin attribute will be returned on all appropriate components.
context ACL object describing user making request.
Exceptions:
CIMException If the specified CIMObjectPath object cannot be found.

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 183 of file OW_SharedLibraryRepository.cpp.

References className, context, m_ref, ns, and result.

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

Enumerates the class specified by the namespace and classname.

Parameters:
ns The namespace to search for classes.
className The name of the class(es) to be enumerated. If this is empty, it specifies that all classnames should be returned.
result A callback object which will handle the results as they are received.
deep If set to E_DEEP, the enumeration returned will contain the names of all classes derived from the enumerated class. If set to E_SHALLOW the enumermation will return only the names of the first level children of the enumerated class.
context ACL object describing user making request.
Exceptions:
CIMException If the specified namespace object cannot be found.

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 192 of file OW_SharedLibraryRepository.cpp.

References className, context, m_ref, ns, and result.

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

Retrieve an enumeration of instance object paths (CIMInstance) for a particular class.

Parameters:
ns The namespace to search for instance names.
className The name of the class to locate.
result A callback object to handle the instance path of the names as they are received.
deep If set to E_DEEP, the enumeration returned will contain the names of all instances of the specified class and all classes derived from it. If set to E_SHALLOW only names of instances belonging to the specified class are returned.
context ACL object describing user making request.
Exceptions:
HDBException 
CIMException 
IOException 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 209 of file OW_SharedLibraryRepository.cpp.

References className, context, m_ref, ns, and result.

void OW_NAMESPACE::SharedLibraryRepository::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:
ns The namespace to search for instances.
className The name of the class to locate.
result A callback object which will handle the instances as they are received.
deep If set to E_DEEP, the enumeration returned will contain the names of all instances of the specified class and all classes derived from it. If set to E_SHALLOW only names of instances belonging to the specified class are returned.
localOnly If set to E_LOCAL_ONLY, only non-inherited properties/qualifiers are included in the instances.
includeQualifiers If set to E_INCLUDE_QUALIFIERS, then all qualifiers for the instance (including properties, methods, and method parameters) are returned.
includeClassOrigin If set to E_INCLUDE_CLASS_ORIGIN, 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.
context ACL object describing user making request.
Exceptions:
HDBException 
CIMException 
IOException 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 151 of file OW_SharedLibraryRepository.cpp.

References className, context, m_ref, ns, propertyList, and result.

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

Gets a list of the namespaces.

Parameters:
context 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 80 of file OW_SharedLibraryRepository.cpp.

References context, m_ref, and result.

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

Enumerate the qualifier types in a name space.

Parameters:
ns The namespeace to search for qualifiers.
result A callback object to handle the qualifier types as they are received.
context ACL object describing user making request.
Exceptions:
CIMException 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 92 of file OW_SharedLibraryRepository.cpp.

References context, m_ref, ns, and result.

void OW_NAMESPACE::SharedLibraryRepository::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 309 of file OW_SharedLibraryRepository.cpp.

References context, m_ref, ns, and result.

CIMClass OW_NAMESPACE::SharedLibraryRepository::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:
ns The namespace from which the class should be retrieved.
className the name of the class to retrieve from the repository.
localOnly If E_LOCAL_ONLY, then only CIM elements (properties, methods, qualifiers) overriden within the definition are returned.
includeQualifiers If E_INCLUDE_QUALIFIERS, then all qualifiers for the class (including properties, methods, and method parameters) are returned.
includeClassOrigin If E_INCLUDE_CLASS_ORIGIN, then the class origin attribute will be returned on all appropriate components.
propertyList If not NULL then it 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.
context 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 109 of file OW_SharedLibraryRepository.cpp.

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

StringArray OW_NAMESPACE::SharedLibraryRepository::getDependencies  )  const [virtual]
 

Get the list of services this service depends on.

The returned services will be started before and shutdown after this service. It is an error to return the name of a non-existent service, and the cimom startup will fail. The default is to have no dependencies.

Reimplemented from OW_NAMESPACE::ServiceIFC.

Definition at line 56 of file OW_SharedLibraryRepository.cpp.

References m_ref.

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

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 64 of file OW_SharedLibraryRepository.cpp.

References m_ref.

CIMInstance OW_NAMESPACE::SharedLibraryRepository::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:
ns The namespace from which to retrieve an instance.
instanceName The path of the instance to be retrieved.
localOnly If E_LOCAL_ONLY, only return non-derived properties.
includeQualifiers If E_INCLUDE_QUALIFIERS, then all qualifiers for the instance (including properties, methods, and method parameters) are returned.
includeClassOrigin If E_INCLUDE_CLASS_ORIGIN, 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.
context ACL object describing user making request.
Returns:
An CIMInstance object
Exceptions:
HDBException 
CIMException 
IOException 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 217 of file OW_SharedLibraryRepository.cpp.

References context, m_ref, ns, and propertyList.

String OW_NAMESPACE::SharedLibraryRepository::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 55 of file OW_SharedLibraryRepository.cpp.

References m_ref.

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

Get the specified CIM instance property.

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

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 252 of file OW_SharedLibraryRepository.cpp.

References context, m_ref, name, and ns.

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

Get an existing qualifier type from the repository.

Parameters:
ns The namespace to search for the qualifier.
qualifierName The name of the qualifier to be located.
context 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 85 of file OW_SharedLibraryRepository.cpp.

References context, m_ref, and ns.

void OW_NAMESPACE::SharedLibraryRepository::init const ServiceEnvironmentIFCRef env  )  [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 57 of file OW_SharedLibraryRepository.cpp.

References env, and m_ref.

void OW_NAMESPACE::SharedLibraryRepository::initialized  )  [virtual]
 

initialized() will be called after init() has been sucessfully called on all services.

This gives a service the chance to communicate with another service if necessary. The default implementation does nothing.

Reimplemented from OW_NAMESPACE::ServiceIFC.

Definition at line 58 of file OW_SharedLibraryRepository.cpp.

References m_ref.

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

Invokes a method.

Parameters:
ns The namespace containing the method instance.
path 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 CIMParamValue objects for inbound values
outParams An array of CIMParamValue objects for outbound values
outParams A vector of CIMProperty for outbound values
context ACL object describing user making request.
Exceptions:
CIMException 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 200 of file OW_SharedLibraryRepository.cpp.

References context, m_ref, ns, and outParams.

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

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

Parameters:
ns The namespace in which to modify the class.
cimClass The class to modify
context 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 172 of file OW_SharedLibraryRepository.cpp.

References context, m_ref, and ns.

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

Update an instance.

Parameters:
ns The namespace in which an instance should be modified.
ci The instance with the new values
includeQualfiers If set to E_INCLUDE_QUALIFIERS, then the qualifiers will be modified as well.
context 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 125 of file OW_SharedLibraryRepository.cpp.

References context, m_ref, ns, and propertyList.

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

Open this RepositoryIFC.

Exceptions:
IOException 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 63 of file OW_SharedLibraryRepository.cpp.

References m_ref.

void OW_NAMESPACE::SharedLibraryRepository::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 299 of file OW_SharedLibraryRepository.cpp.

References context, m_ref, ns, and result.

void OW_NAMESPACE::SharedLibraryRepository::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 228 of file OW_SharedLibraryRepository.cpp.

References context, m_ref, ns, propertyList, and result.

void OW_NAMESPACE::SharedLibraryRepository::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 239 of file OW_SharedLibraryRepository.cpp.

References context, m_ref, ns, propertyList, and result.

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

Set a property value on an CIMInstance.

Parameters:
ns The namespace in which a property should be modified.
name The object path of the instance.
propertyName The name of the property to update
cv The value to set the property to.
context ACL object describing user making request.
Exceptions:
CIMException 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 136 of file OW_SharedLibraryRepository.cpp.

References context, m_ref, name, and ns.

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

Updates the specified CIM qualifier type in the specified namespace.

Parameters:
ns The namespace from which the qualifier should be updated.
qt The CIM qualifier type to be updated.
context 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 103 of file OW_SharedLibraryRepository.cpp.

References context, m_ref, and ns.

void OW_NAMESPACE::SharedLibraryRepository::shutdown  )  [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 62 of file OW_SharedLibraryRepository.cpp.

References m_ref.

void OW_NAMESPACE::SharedLibraryRepository::shuttingDown  )  [virtual]
 

shuttingdown() will be called before shutdown() is called on all services.

This gives a service the chance to communicate with any other services before they are shutdown. After shuttingDown() is called the services will begin to be shutdown. The default implementation does nothing.

Reimplemented from OW_NAMESPACE::ServiceIFC.

Definition at line 61 of file OW_SharedLibraryRepository.cpp.

References m_ref.

void OW_NAMESPACE::SharedLibraryRepository::start  )  [virtual]
 

In start(), a service should start doing whatever it does, such as starting a new thread or adding selectables to the environment.

A service can't rely on the order of initalization, so if it needs to communicate with another one, that works hould be done in started() start() should not return until the service is actually started, but it must return.

Reimplemented from OW_NAMESPACE::ServiceIFC.

Definition at line 59 of file OW_SharedLibraryRepository.cpp.

References m_ref.

void OW_NAMESPACE::SharedLibraryRepository::started  )  [virtual]
 

started() will be called on all services after start() has been called on all services.

The default implementation does nothing.

Reimplemented from OW_NAMESPACE::ServiceIFC.

Definition at line 60 of file OW_SharedLibraryRepository.cpp.

References m_ref.


Member Data Documentation

SharedLibraryRepositoryIFCRef OW_NAMESPACE::SharedLibraryRepository::m_ref [private]
 

Definition at line 209 of file OW_SharedLibraryRepository.hpp.

Referenced by associatorNames(), associators(), associatorsClasses(), beginOperation(), close(), createClass(), createInstance(), createNameSpace(), deleteClass(), deleteInstance(), deleteNameSpace(), deleteQualifierType(), endOperation(), enumClasses(), enumClassNames(), enumInstanceNames(), enumInstances(), enumNameSpace(), enumQualifierTypes(), execQuery(), getClass(), getDependencies(), getEnvironment(), getInstance(), getName(), getProperty(), getQualifierType(), init(), initialized(), invokeMethod(), modifyClass(), modifyInstance(), open(), referenceNames(), references(), referencesClasses(), setProperty(), setQualifierType(), shutdown(), shuttingDown(), start(), and started().


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