OW_NAMESPACE::Authorizer2IFC Class Reference

#include <OW_Authorizer2IFC.hpp>

Inheritance diagram for OW_NAMESPACE::Authorizer2IFC:

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

Collaboration graph
[legend]
List of all members.

Public Types

enum  EWriteFlag { E_CREATE, E_MODIFY, E_DELETE }
enum  EAccessType { E_READ, E_WRITE, E_READWRITE }
enum  EDynamicFlag { E_NOT_DYNAMIC, E_DYNAMIC }

Public Member Functions

virtual ~Authorizer2IFC ()
virtual bool doAllowReadInstance (const ServiceEnvironmentIFCRef &env, const String &ns, const String &className, const StringArray *clientPropertyList, StringArray &authorizedPropertyList, OperationContext &context)=0
 Determine if a read of the given instance is allowed.
virtual bool doAllowWriteInstance (const ServiceEnvironmentIFCRef &env, const String &ns, const CIMObjectPath &instanceName, EDynamicFlag dynamic, EWriteFlag flag, OperationContext &context)=0
 Determine if a write of the given instance is allowed.
virtual bool doAllowReadSchema (const ServiceEnvironmentIFCRef &env, const String &ns, OperationContext &context)=0
 Determine if a read of the schema is allowed in the given namespace.
virtual bool doAllowWriteSchema (const ServiceEnvironmentIFCRef &env, const String &ns, EWriteFlag flag, OperationContext &context)=0
 Determine if a write of the schema in the given namespace is allowed.
virtual bool doAllowAccessToNameSpace (const ServiceEnvironmentIFCRef &env, const String &ns, EAccessType accessType, OperationContext &context)=0
 Determine if the user is allowed access to a namespace.
virtual bool doAllowCreateNameSpace (const ServiceEnvironmentIFCRef &env, const String &ns, OperationContext &context)=0
 Determine if user is allowed to create the given namespace.
virtual bool doAllowDeleteNameSpace (const ServiceEnvironmentIFCRef &env, const String &ns, OperationContext &context)=0
 Determine if the user is allow to delete the given namespace.
virtual bool doAllowEnumNameSpace (const ServiceEnvironmentIFCRef &env, OperationContext &context)=0
 Determine if the user is allowed to enumerate namespaces.
virtual bool doAllowMethodInvocation (const ServiceEnvironmentIFCRef &env, const String &ns, const CIMObjectPath &path, const String &methodName, OperationContext &context)=0
 Determine if a method may be invoked.
virtual void init (ServiceEnvironmentIFCRef &)

Detailed Description

Definition at line 49 of file OW_Authorizer2IFC.hpp.


Member Enumeration Documentation

enum OW_NAMESPACE::Authorizer2IFC::EAccessType
 

Enumerator:
E_READ 
E_WRITE 
E_READWRITE 

Definition at line 55 of file OW_Authorizer2IFC.hpp.

enum OW_NAMESPACE::Authorizer2IFC::EDynamicFlag
 

Enumerator:
E_NOT_DYNAMIC 
E_DYNAMIC 

Definition at line 57 of file OW_Authorizer2IFC.hpp.

enum OW_NAMESPACE::Authorizer2IFC::EWriteFlag
 

Enumerator:
E_CREATE 
E_MODIFY 
E_DELETE 

Definition at line 53 of file OW_Authorizer2IFC.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::Authorizer2IFC::~Authorizer2IFC  )  [virtual]
 

Definition at line 37 of file OW_Authorizer2IFC.cpp.


Member Function Documentation

virtual bool OW_NAMESPACE::Authorizer2IFC::doAllowAccessToNameSpace const ServiceEnvironmentIFCRef env,
const String ns,
EAccessType  accessType,
OperationContext context
[pure virtual]
 

Determine if the user is allowed access to a namespace.

Parameters:
env A reference to a provider environment.
ns The namespace that will be accessed.
accessType EREAD, WRITE, EREADWRITE
context 
Returns:
true if access is allowed. Otherwise false.

Implemented in OW_NAMESPACE::SimpleAuthorizer2.

virtual bool OW_NAMESPACE::Authorizer2IFC::doAllowCreateNameSpace const ServiceEnvironmentIFCRef env,
const String ns,
OperationContext context
[pure virtual]
 

Determine if user is allowed to create the given namespace.

Parameters:
env A reference to a provider environment.
ns The namespace that will be created.
context 
Returns:
true if the creation is authorized. Otherwise false.

Implemented in OW_NAMESPACE::SimpleAuthorizer2.

virtual bool OW_NAMESPACE::Authorizer2IFC::doAllowDeleteNameSpace const ServiceEnvironmentIFCRef env,
const String ns,
OperationContext context
[pure virtual]
 

Determine if the user is allow to delete the given namespace.

Parameters:
env A reference to a provider environment.
ns The namespace that will be deleted.
context 
Returns:
true if the deletion is authorized. Otherwise false.

Implemented in OW_NAMESPACE::SimpleAuthorizer2.

virtual bool OW_NAMESPACE::Authorizer2IFC::doAllowEnumNameSpace const ServiceEnvironmentIFCRef env,
OperationContext context
[pure virtual]
 

Determine if the user is allowed to enumerate namespaces.

Parameters:
env A reference to a provider environment
context 
Returns:
true if the enumerate is allowed. Otherwise false.

Implemented in OW_NAMESPACE::SimpleAuthorizer2.

virtual bool OW_NAMESPACE::Authorizer2IFC::doAllowMethodInvocation const ServiceEnvironmentIFCRef env,
const String ns,
const CIMObjectPath path,
const String methodName,
OperationContext context
[pure virtual]
 

Determine if a method may be invoked.

Parameters:
env A reference to a provider environment.
ns The namespace containing the instance or class.
path The name of the instance or class containing the method.
methodName The name of the method.
context 
Returns:
true if access is allowed. Otherwise false.

Implemented in OW_NAMESPACE::SimpleAuthorizer2.

virtual bool OW_NAMESPACE::Authorizer2IFC::doAllowReadInstance const ServiceEnvironmentIFCRef env,
const String ns,
const String className,
const StringArray clientPropertyList,
StringArray authorizedPropertyList,
OperationContext context
[pure virtual]
 

Determine if a read of the given instance is allowed.

The given objectPath could be a class path or an instance path.

Parameters:
env A reference to a provider environment
ns The namespace the instance will be read from
className The class name of the instances that will be read.
clientPropertyList This is the property list given by the client when requesting the instance(s). The client expects it to have the following meaning: If not NULL then it specifies the only properties that can be returned in the instance. If not NULL but the array is empty, then no properties should be returned. If NULL then all properties will be returned.
authorizedPropertyList This is the property list the authorizer will placed the authorized property names in. The return value of this method determines how this property list is interpreted. If this method returns NULL, then this propertyList will be iignored on returned. If a pointer to this string array is returned, then authorizedPropertyList contains the property names the client is allowed to retrieve. In this case, if the property list is empty, then the client will not get any properties.
context 
Returns:
true if access is allowed. Otherwise false.

Implemented in OW_NAMESPACE::SimpleAuthorizer2.

virtual bool OW_NAMESPACE::Authorizer2IFC::doAllowReadSchema const ServiceEnvironmentIFCRef env,
const String ns,
OperationContext context
[pure virtual]
 

Determine if a read of the schema is allowed in the given namespace.

Parameters:
env A reference to a provider environment
ns The namespace the schema will be read from.
context 
Returns:
true if access is allowed. Otherwise false.

Implemented in OW_NAMESPACE::SimpleAuthorizer2.

virtual bool OW_NAMESPACE::Authorizer2IFC::doAllowWriteInstance const ServiceEnvironmentIFCRef env,
const String ns,
const CIMObjectPath instanceName,
EDynamicFlag  dynamic,
EWriteFlag  flag,
OperationContext context
[pure virtual]
 

Determine if a write of the given instance is allowed.

Parameters:
env A reference to a provider environment.
ns The namespace the instance will be written to.
instanceName The name of the instance that will be created/modified/deleted.
dynamic If E_DYNAMIC, then this instance is being written. through a provider. Otherwise it is being written to the static repository.
flag Indicates create/modify/delete operation.
context 
Returns:
true if access is allowed. Otherwise false.

virtual bool OW_NAMESPACE::Authorizer2IFC::doAllowWriteSchema const ServiceEnvironmentIFCRef env,
const String ns,
EWriteFlag  flag,
OperationContext context
[pure virtual]
 

Determine if a write of the schema in the given namespace is allowed.

Parameters:
env A reference to a provider environment
ns The namespace the schema write will take place in.
flag Indicates create/modify/delete operation
context 
Returns:
true if access is allowed. Otherwise false.

void OW_NAMESPACE::Authorizer2IFC::init ServiceEnvironmentIFCRef  )  [virtual]
 

Definition at line 43 of file OW_Authorizer2IFC.cpp.


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