Go to the source code of this file.
|
PermissionsManager * | AllocatePermissionsManager (GrassrootsServer *grassroots_p, const char *database_s, const char *collection_s) |
|
void | FreePermissionsManager (PermissionsManager *manager_p) |
|
Permissions * | AllocatePermissions (AccessMode access) |
|
void | ClearPermissions (Permissions *permissions_p) |
|
void | FreePermissions (Permissions *permissions_p) |
|
PermissionsGroup * | AllocatePermissionsGroup (void) |
|
void | FreePermissionsGroup (PermissionsGroup *permissions_group_p) |
|
Permissions * | GetPermissionsFromJSON (const json_t *permissions_json_p, const GrassrootsServer *grassroots_p) |
|
PermissionsGroup * | GetPermissionsGroupFromJSON (const json_t *permissions_group_json_p, const GrassrootsServer *grassroots_p) |
|
PermissionsGroup * | GetPermissionsGroupFromChildJSON (const json_t *parent_json_p, const char *const key_s, const GrassrootsServer *grassroots_p) |
|
json_t * | GetPermissionsGroupAsJSON (const PermissionsGroup *permissions_group_p, const ViewFormat vf) |
|
bool | AddPermissionsGroupToJSON (const PermissionsGroup *permissions_group_p, json_t *json_p, const char *const key_s, const ViewFormat vf) |
|
json_t * | GetPermissionsAsJSON (const Permissions *permissions_p, const ViewFormat vf) |
|
bool | AddUserToPermissions (Permissions *permissions_p, User *user_p) |
|
bool | AddGroupToPermissions (Permissions *permissions_p, UserGroup *group_p) |
|
bool | CheckPermissionsManagerForUser (const PermissionsManager *const permissions_manager_p, const User *const user_p, const AccessMode mode) |
|
bool | CheckPermissionsGroupForUser (const PermissionsGroup *const permissions_manager_p, const User *const user_p, const AccessMode mode) |
|
bool | CheckPermissionsForUser (const Permissions *const permissions_p, const User *const user_p) |
|
bool | HasPermissionsSet (const Permissions *const permissions_p) |
|
bool | SetAccessModeFromString (AccessMode *ar_p, const char *const ar_s) |
|
const char * | GetAccessRightsAsString (const AccessMode ar) |
|
◆ AccessMode
Enumerator |
---|
AM_NONE | |
AM_READ | |
AM_WRITE | |
AM_DELETE | |
◆ AllocatePermissionsManager()
◆ FreePermissionsManager()
◆ AllocatePermissions()
◆ ClearPermissions()
◆ FreePermissions()
◆ AllocatePermissionsGroup()
◆ FreePermissionsGroup()
◆ GetPermissionsFromJSON()
◆ GetPermissionsGroupFromJSON()
◆ GetPermissionsGroupFromChildJSON()
◆ GetPermissionsGroupAsJSON()
◆ AddPermissionsGroupToJSON()
bool AddPermissionsGroupToJSON |
( |
const PermissionsGroup * |
permissions_group_p, |
|
|
json_t * |
json_p, |
|
|
const char *const |
key_s, |
|
|
const ViewFormat |
vf |
|
) |
| |
◆ GetPermissionsAsJSON()
◆ AddUserToPermissions()
◆ AddGroupToPermissions()
◆ CheckPermissionsManagerForUser()
- Parameters
-
permissions_manager_p | |
user_p | The User to check for. |
mode | The mode of access to be checked for the given User. |
- Returns
◆ CheckPermissionsGroupForUser()
◆ CheckPermissionsForUser()
bool CheckPermissionsForUser |
( |
const Permissions *const |
permissions_p, |
|
|
const User *const |
user_p |
|
) |
| |
◆ HasPermissionsSet()
bool HasPermissionsSet |
( |
const Permissions *const |
permissions_p | ) |
|
◆ SetAccessModeFromString()
bool SetAccessModeFromString |
( |
AccessMode * |
ar_p, |
|
|
const char *const |
ar_s |
|
) |
| |
◆ GetAccessRightsAsString()
const char* GetAccessRightsAsString |
( |
const AccessMode |
ar | ) |
|