OW_NAMESPACE::SimpleAuthorizer Class Reference

#include <OW_SimpleAuthorizer.hpp>

Inheritance diagram for OW_NAMESPACE::SimpleAuthorizer:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SimpleAuthorizer ()
 Create a new SimpleAuthorization object.
virtual ~SimpleAuthorizer ()
 Destroy this SimpleAuthorization object.
virtual String getName () const
 Every service may have a name.
virtual void setSubRepositoryIFC (const RepositoryIFCRef &rep)
virtual void open (const String &path)
 Open this SimpleAuthorization.
virtual void close ()
 Close this GenericHDBRepository.
virtual ServiceEnvironmentIFCRef getEnvironment () const
AuthorizerIFCclone () 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 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 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


Private Member Functions

virtual void beginOperation (WBEMFlags::EOperationFlag op, OperationContext &context)
virtual void endOperation (WBEMFlags::EOperationFlag op, OperationContext &context, WBEMFlags::EOperationResultFlag result)

Private Attributes

IntrusiveReference< AccessMgrm_accessMgr
RepositoryIFCRef m_cimRepository

Detailed Description

Definition at line 48 of file OW_SimpleAuthorizer.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::SimpleAuthorizer::SimpleAuthorizer  ) 
 

Create a new SimpleAuthorization object.

Definition at line 370 of file OW_SimpleAuthorizer.cpp.

Referenced by clone().

OW_NAMESPACE::SimpleAuthorizer::~SimpleAuthorizer  )  [virtual]
 

Destroy this SimpleAuthorization object.

Definition at line 375 of file OW_SimpleAuthorizer.cpp.


Member Function Documentation

void OW_NAMESPACE::SimpleAuthorizer::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 705 of file OW_SimpleAuthorizer.cpp.

References OW_NAMESPACE::AccessMgr::ASSOCIATORNAMES, context, m_accessMgr, m_cimRepository, ns, and result.

void OW_NAMESPACE::SimpleAuthorizer::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 675 of file OW_SimpleAuthorizer.cpp.

References OW_NAMESPACE::AccessMgr::ASSOCIATORS, context, m_accessMgr, m_cimRepository, ns, propertyList, and result.

void OW_NAMESPACE::SimpleAuthorizer::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 690 of file OW_SimpleAuthorizer.cpp.

References OW_NAMESPACE::AccessMgr::ASSOCIATORS, context, m_accessMgr, m_cimRepository, ns, propertyList, and result.

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

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 762 of file OW_SimpleAuthorizer.cpp.

References context, and m_cimRepository.

AuthorizerIFC * OW_NAMESPACE::SimpleAuthorizer::clone  )  const [virtual]
 

Implements OW_NAMESPACE::AuthorizerIFC.

Definition at line 395 of file OW_SimpleAuthorizer.cpp.

References SimpleAuthorizer().

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

Close this GenericHDBRepository.

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 406 of file OW_SimpleAuthorizer.cpp.

void OW_NAMESPACE::SimpleAuthorizer::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 506 of file OW_SimpleAuthorizer.cpp.

References cimClass, context, OW_NAMESPACE::AccessMgr::CREATECLASS, m_accessMgr, m_cimRepository, and ns.

CIMObjectPath OW_NAMESPACE::SimpleAuthorizer::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 596 of file OW_SimpleAuthorizer.cpp.

References context, OW_NAMESPACE::AccessMgr::CREATEINSTANCE, m_accessMgr, m_cimRepository, and ns.

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

Create a cim namespace.

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

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 419 of file OW_SimpleAuthorizer.cpp.

References context, m_cimRepository, and ns.

CIMClass OW_NAMESPACE::SimpleAuthorizer::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 498 of file OW_SimpleAuthorizer.cpp.

References className, context, OW_NAMESPACE::AccessMgr::DELETECLASS, m_accessMgr, m_cimRepository, and ns.

CIMInstance OW_NAMESPACE::SimpleAuthorizer::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 588 of file OW_SimpleAuthorizer.cpp.

References context, cop, OW_NAMESPACE::AccessMgr::DELETEINSTANCE, m_accessMgr, m_cimRepository, and ns.

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

Delete a specified namespace.

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

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 427 of file OW_SimpleAuthorizer.cpp.

References context, m_cimRepository, and ns.

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

Delete an existing qualifier type from the repository.

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

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 464 of file OW_SimpleAuthorizer.cpp.

References context, OW_NAMESPACE::AccessMgr::DELETEQUALIFIER, m_accessMgr, m_cimRepository, and ns.

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

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 769 of file OW_SimpleAuthorizer.cpp.

References context, and m_cimRepository.

void OW_NAMESPACE::SimpleAuthorizer::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 525 of file OW_SimpleAuthorizer.cpp.

References className, context, OW_NAMESPACE::AccessMgr::ENUMERATECLASSES, m_accessMgr, m_cimRepository, ns, and result.

void OW_NAMESPACE::SimpleAuthorizer::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 537 of file OW_SimpleAuthorizer.cpp.

References className, context, OW_NAMESPACE::AccessMgr::ENUMERATECLASSNAMES, m_accessMgr, m_cimRepository, ns, and result.

void OW_NAMESPACE::SimpleAuthorizer::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 548 of file OW_SimpleAuthorizer.cpp.

References className, context, OW_NAMESPACE::AccessMgr::ENUMERATEINSTANCENAMES, m_accessMgr, m_cimRepository, ns, and result.

void OW_NAMESPACE::SimpleAuthorizer::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 561 of file OW_SimpleAuthorizer.cpp.

References className, context, OW_NAMESPACE::AccessMgr::ENUMERATEINSTANCES, m_accessMgr, m_cimRepository, ns, propertyList, and result.

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

Gets a list of the namespaces.

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

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 436 of file OW_SimpleAuthorizer.cpp.

References context, m_cimRepository, and result.

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

Enumerate the qualifier types in a name space.

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

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 454 of file OW_SimpleAuthorizer.cpp.

References context, OW_NAMESPACE::AccessMgr::ENUMERATEQUALIFIERS, m_accessMgr, m_cimRepository, ns, and result.

void OW_NAMESPACE::SimpleAuthorizer::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 663 of file OW_SimpleAuthorizer.cpp.

References context, m_cimRepository, ns, and result.

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

Gets an existing class from a store.

Parameters:
path The path for the class to retrieve
localOnly If true, then only CIM elements (properties, methods, qualifiers) overriden within the definition are returned.
includeQualifiers If true, then all qualifiers for the class (including properties, methods, and method parameters) are returned.
includeClassOrigin If true, then the class origin attribute will be returned on all appropriate components.
propertyList If not NULL then is specifies the only properties that can be returned with the class. If not NULL but the array is empty, then no properties should be returned. If NULL then all properties will be returned.
aclInfo ACL object describing user making request.
Returns:
A valid CIMClass object on success. 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 482 of file OW_SimpleAuthorizer.cpp.

References className, context, OW_NAMESPACE::AccessMgr::GETCLASS, m_accessMgr, and ns.

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

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 411 of file OW_SimpleAuthorizer.cpp.

References m_cimRepository.

CIMInstance OW_NAMESPACE::SimpleAuthorizer::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 574 of file OW_SimpleAuthorizer.cpp.

References context, OW_NAMESPACE::AccessMgr::GETINSTANCE, m_accessMgr, m_cimRepository, ns, and propertyList.

String OW_NAMESPACE::SimpleAuthorizer::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 380 of file OW_SimpleAuthorizer.cpp.

References OW_NAMESPACE::ServiceIFCNames::SimpleAuthorizer.

CIMValue OW_NAMESPACE::SimpleAuthorizer::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 623 of file OW_SimpleAuthorizer.cpp.

References context, OW_NAMESPACE::AccessMgr::GETPROPERTY, m_accessMgr, m_cimRepository, name, and ns.

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

Get an existing qualifier type from the repository.

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

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 444 of file OW_SimpleAuthorizer.cpp.

References context, OW_NAMESPACE::AccessMgr::GETQUALIFIER, m_accessMgr, m_cimRepository, and ns.

CIMValue OW_NAMESPACE::SimpleAuthorizer::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 652 of file OW_SimpleAuthorizer.cpp.

References context, OW_NAMESPACE::AccessMgr::INVOKEMETHOD, m_accessMgr, m_cimRepository, ns, and outParams.

CIMClass OW_NAMESPACE::SimpleAuthorizer::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 514 of file OW_SimpleAuthorizer.cpp.

References context, m_accessMgr, m_cimRepository, OW_NAMESPACE::AccessMgr::MODIFYCLASS, and ns.

CIMInstance OW_NAMESPACE::SimpleAuthorizer::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 607 of file OW_SimpleAuthorizer.cpp.

References context, m_accessMgr, m_cimRepository, OW_NAMESPACE::AccessMgr::MODIFYINSTANCE, ns, and propertyList.

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

Open this SimpleAuthorization.

Exceptions:
IOException 

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 401 of file OW_SimpleAuthorizer.cpp.

void OW_NAMESPACE::SimpleAuthorizer::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 747 of file OW_SimpleAuthorizer.cpp.

References context, m_accessMgr, m_cimRepository, ns, OW_NAMESPACE::AccessMgr::REFERENCENAMES, and result.

void OW_NAMESPACE::SimpleAuthorizer::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 719 of file OW_SimpleAuthorizer.cpp.

References context, m_accessMgr, m_cimRepository, ns, propertyList, OW_NAMESPACE::AccessMgr::REFERENCES, and result.

void OW_NAMESPACE::SimpleAuthorizer::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 733 of file OW_SimpleAuthorizer.cpp.

References context, m_accessMgr, m_cimRepository, ns, propertyList, OW_NAMESPACE::AccessMgr::REFERENCES, and result.

void OW_NAMESPACE::SimpleAuthorizer::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 638 of file OW_SimpleAuthorizer.cpp.

References context, m_accessMgr, m_cimRepository, name, ns, and OW_NAMESPACE::AccessMgr::SETPROPERTY.

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

Updates the specified CIM qualifier type in the specified namespace.

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

Implements OW_NAMESPACE::RepositoryIFC.

Definition at line 472 of file OW_SimpleAuthorizer.cpp.

References context, m_accessMgr, m_cimRepository, ns, and OW_NAMESPACE::AccessMgr::SETQUALIFIER.

void OW_NAMESPACE::SimpleAuthorizer::setSubRepositoryIFC const RepositoryIFCRef rep  )  [virtual]
 

Implements OW_NAMESPACE::AuthorizerIFC.

Definition at line 386 of file OW_SimpleAuthorizer.cpp.

References env, m_accessMgr, and m_cimRepository.


Member Data Documentation

IntrusiveReference<AccessMgr> OW_NAMESPACE::SimpleAuthorizer::m_accessMgr [private]
 

Definition at line 558 of file OW_SimpleAuthorizer.hpp.

Referenced by associatorNames(), associators(), associatorsClasses(), createClass(), createInstance(), deleteClass(), deleteInstance(), deleteQualifierType(), enumClasses(), enumClassNames(), enumInstanceNames(), enumInstances(), enumQualifierTypes(), getClass(), getInstance(), getProperty(), getQualifierType(), invokeMethod(), modifyClass(), modifyInstance(), referenceNames(), references(), referencesClasses(), setProperty(), setQualifierType(), and setSubRepositoryIFC().

RepositoryIFCRef OW_NAMESPACE::SimpleAuthorizer::m_cimRepository [private]
 

Definition at line 560 of file OW_SimpleAuthorizer.hpp.

Referenced by associatorNames(), associators(), associatorsClasses(), beginOperation(), createClass(), createInstance(), createNameSpace(), deleteClass(), deleteInstance(), deleteNameSpace(), deleteQualifierType(), endOperation(), enumClasses(), enumClassNames(), enumInstanceNames(), enumInstances(), enumNameSpace(), enumQualifierTypes(), execQuery(), getEnvironment(), getInstance(), getProperty(), getQualifierType(), invokeMethod(), modifyClass(), modifyInstance(), referenceNames(), references(), referencesClasses(), setProperty(), setQualifierType(), and setSubRepositoryIFC().


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