#include <PermissionDB.h>
Public Member Functions | |
| OsStatus | store () |
| int | getRowCount () const |
| Count rows in table. | |
| UtlBoolean | insertRow (const Url &uri, const UtlString &permission) |
| UtlBoolean | insertRow (const UtlHashMap &nvPairs) |
| void | getPermissions (const Url &identity, ResultSet &rResultset) const |
| void | getIdentities (const UtlString &permission, ResultSet &rResultset) const |
| UtlBoolean | hasPermission (const Url &identity, const UtlString &permission) const |
| UtlBoolean | removeRow (const Url &identity, const UtlString &permission) |
| void | removeRows (const Url &identity) |
| void | removeAllRows () |
| void | getAllRows (ResultSet &rResultset) const |
| bool | isLoaded () |
Static Public Member Functions | |
| static PermissionDB * | getInstance (const UtlString &name="permission") |
| Singleton Accessor. | |
| static void | releaseInstance () |
| releaseInstance - cleans up the singleton (for use at exit) | |
Static Public Attributes | |
| static const UtlString | sType |
| static const UtlString | sXmlNamespace |
Protected Member Functions | |
| OsStatus | load () |
| PermissionDB (const UtlString &name) | |
Protected Attributes | |
| dbDatabase * | m_pFastDB |
| UtlString | mDatabaseName |
| bool | mTableLoaded |
Static Protected Attributes | |
| static PermissionDB * | spInstance = NULL |
| static OsMutex | sLockMutex |
| static UtlString | gIdentityKey |
| static UtlString | gPermissionKey |
Private Member Functions | |
| virtual | ~PermissionDB () |
| Virtual Destructor. | |
| PermissionDB | ( | const UtlString & | name | ) | [protected] |
| ~PermissionDB | ( | ) | [private, virtual] |
Virtual Destructor.
| PermissionDB * getInstance | ( | const UtlString & | name = "permission" |
) | [static] |
Singleton Accessor.
| void releaseInstance | ( | ) | [static] |
releaseInstance - cleans up the singleton (for use at exit)
| OsStatus store | ( | ) |
| int getRowCount | ( | ) | const |
Count rows in table.
| UtlBoolean insertRow | ( | const Url & | uri, | |
| const UtlString & | permission | |||
| ) |
| UtlBoolean insertRow | ( | const UtlHashMap & | nvPairs | ) |
| UtlBoolean hasPermission | ( | const Url & | identity, | |
| const UtlString & | permission | |||
| ) | const |
| UtlBoolean removeRow | ( | const Url & | identity, | |
| const UtlString & | permission | |||
| ) |
| void removeRows | ( | const Url & | identity | ) |
| void removeAllRows | ( | ) |
| void getAllRows | ( | ResultSet & | rResultset | ) | const |
| bool isLoaded | ( | ) |
| OsStatus load | ( | ) | [protected] |
const UtlString sXmlNamespace [static] |
PermissionDB * spInstance = NULL [static, protected] |
OsMutex sLockMutex [static, protected] |
UtlString gIdentityKey [static, protected] |
UtlString gPermissionKey [static, protected] |
dbDatabase* m_pFastDB [protected] |
UtlString mDatabaseName [protected] |
bool mTableLoaded [protected] |