dmlite::StackInstance Class Reference
#include <dmlite.h>
List of all members.
Detailed Description
We need to have something that allows one plugin stack to access another plugin stack, so this represents a instantiation of each plugin stack. It also keeps common state: user credentials, security context, and run-time parameters (see set)
- Note:
- Assume a StackInstance (and every instantiated interface under it) is NOT thread-safe. This means, a StackInstance must be used by only one thread at the same time.
Constructor & Destructor Documentation
dmlite::StackInstance::~StackInstance |
( |
|
) |
|
Member Function Documentation
bool dmlite::StackInstance::contains |
( |
const std::string & |
key |
) |
throw () |
Checks if the stack instance contains a value associated with the given key.
void dmlite::StackInstance::erase |
( |
const std::string & |
key |
) |
|
Erase a key,value pair from.
- Parameters:
-
| key | The key of the pair to be erased. |
void dmlite::StackInstance::eraseAll |
( |
void |
|
) |
throw () |
Erase all the values set previously.
boost::any dmlite::StackInstance::get |
( |
const std::string & |
key |
) |
const |
Get a value associated to a key. This can be used to pass advanced parameters to and from the plugins.
- Parameters:
-
Authn* dmlite::StackInstance::getAuthn |
( |
|
) |
|
Get the UsersDb interface.
Catalog* dmlite::StackInstance::getCatalog |
( |
|
) |
|
INode* dmlite::StackInstance::getINode |
( |
|
) |
|
IODriver* dmlite::StackInstance::getIODriver |
( |
|
) |
|
PoolDriver* dmlite::StackInstance::getPoolDriver |
( |
const std::string & |
poolType |
) |
|
const SecurityContext* dmlite::StackInstance::getSecurityContext |
( |
void |
|
) |
const throw () |
Return the security context.
bool dmlite::StackInstance::isTherePoolManager |
( |
|
) |
throw () |
void dmlite::StackInstance::set |
( |
const std::string & |
key, |
|
|
const boost::any & |
value | |
|
) |
| | |
Set a key-value pair associated with this context. This can be used to pass advanced parameters to and from the plugins.
- Parameters:
-
| key | The key. |
| value | The value. |
void dmlite::StackInstance::setSecurityContext |
( |
const SecurityContext & |
ctx |
) |
|
Set the security context.
void dmlite::StackInstance::setSecurityContextImpl_ |
( |
void |
|
) |
[private] |
Set the security credentials.
Member Data Documentation
The documentation for this class was generated from the following file: