OW_NAMESPACE::AccessMgr Class Reference

Inheritance diagram for OW_NAMESPACE::AccessMgr:

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

Collaboration graph
[legend]
List of all members.

Public Types

enum  {
  GETCLASS, GETINSTANCE, DELETECLASS, DELETEINSTANCE,
  CREATECLASS, CREATEINSTANCE, MODIFYCLASS, MODIFYINSTANCE,
  ENUMERATECLASSES, ENUMERATECLASSNAMES, ENUMERATEINSTANCES, ENUMERATEINSTANCENAMES,
  ASSOCIATORS, ASSOCIATORNAMES, REFERENCES, REFERENCENAMES,
  GETPROPERTY, SETPROPERTY, GETQUALIFIER, SETQUALIFIER,
  DELETEQUALIFIER, ENUMERATEQUALIFIERS, CREATENAMESPACE, DELETENAMESPACE,
  ENUMERATENAMESPACE, INVOKEMETHOD
}

Public Member Functions

 AccessMgr (const RepositoryIFCRef &pServer)
void checkAccess (int op, const String &ns, OperationContext &context)
 checkAccess will check that access is granted through the ACL.
void setEnv (const ServiceEnvironmentIFCRef &env)

Static Public Attributes

static const String COMPONENT_NAME

Private Member Functions

String getMethodType (int op)

Private Attributes

RepositoryIFCRef m_pServer
ServiceEnvironmentIFCRef m_env

Detailed Description

Definition at line 58 of file OW_SimpleAuthorizer.cpp.


Member Enumeration Documentation

anonymous enum
 

Enumerator:
GETCLASS 
GETINSTANCE 
DELETECLASS 
DELETEINSTANCE 
CREATECLASS 
CREATEINSTANCE 
MODIFYCLASS 
MODIFYINSTANCE 
ENUMERATECLASSES 
ENUMERATECLASSNAMES 
ENUMERATEINSTANCES 
ENUMERATEINSTANCENAMES 
ASSOCIATORS 
ASSOCIATORNAMES 
REFERENCES 
REFERENCENAMES 
GETPROPERTY 
SETPROPERTY 
GETQUALIFIER 
SETQUALIFIER 
DELETEQUALIFIER 
ENUMERATEQUALIFIERS 
CREATENAMESPACE 
DELETENAMESPACE 
ENUMERATENAMESPACE 
INVOKEMETHOD 

Definition at line 62 of file OW_SimpleAuthorizer.cpp.


Constructor & Destructor Documentation

OW_NAMESPACE::AccessMgr::AccessMgr const RepositoryIFCRef pServer  ) 
 

Definition at line 114 of file OW_SimpleAuthorizer.cpp.


Member Function Documentation

void OW_NAMESPACE::AccessMgr::checkAccess int  op,
const String ns,
OperationContext context
 

checkAccess will check that access is granted through the ACL.

If Access is not granted, an CIMException will be thrown.

Parameters:
op The operation that access is being checked for.
ns The name space that access is being check on.
context The context from which the ACL info for the user request will be retrieved.

Definition at line 176 of file OW_SimpleAuthorizer.cpp.

References context, OW_NAMESPACE::OperationContext::getStringDataWithDefault(), OW_NAMESPACE::OperationContext::getUserInfo(), and OW_NAMESPACE::UserInfo::m_internal.

String OW_NAMESPACE::AccessMgr::getMethodType int  op  )  [private]
 

Definition at line 120 of file OW_SimpleAuthorizer.cpp.

References ASSOCIATORNAMES, ASSOCIATORS, CREATECLASS, CREATEINSTANCE, CREATENAMESPACE, DELETECLASS, DELETEINSTANCE, DELETENAMESPACE, DELETEQUALIFIER, ENUMERATECLASSES, ENUMERATECLASSNAMES, ENUMERATEINSTANCENAMES, ENUMERATEINSTANCES, ENUMERATENAMESPACE, ENUMERATEQUALIFIERS, GETCLASS, GETINSTANCE, GETPROPERTY, GETQUALIFIER, INVOKEMETHOD, MODIFYCLASS, MODIFYINSTANCE, OW_ASSERT, REFERENCENAMES, REFERENCES, SETPROPERTY, and SETQUALIFIER.

void OW_NAMESPACE::AccessMgr::setEnv const ServiceEnvironmentIFCRef env  )  [inline]
 

Definition at line 102 of file OW_SimpleAuthorizer.cpp.

References env, and m_env.


Member Data Documentation

const String OW_NAMESPACE::AccessMgr::COMPONENT_NAME [static]
 

Definition at line 61 of file OW_SimpleAuthorizer.cpp.

ServiceEnvironmentIFCRef OW_NAMESPACE::AccessMgr::m_env [private]
 

Definition at line 107 of file OW_SimpleAuthorizer.cpp.

Referenced by setEnv().

RepositoryIFCRef OW_NAMESPACE::AccessMgr::m_pServer [private]
 

Definition at line 106 of file OW_SimpleAuthorizer.cpp.


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