TrinityCore
rbac::RBACPermission Class Reference

#include <RBAC.h>

Public Member Functions

 RBACPermission (uint32 id=0, std::string const &name="")
 
std::string const & GetName () const
 Gets the Name of the Object. More...
 
uint32 GetId () const
 Gets the Id of the Object. More...
 
RBACPermissionContainer const & GetLinkedPermissions () const
 Gets the Permissions linked to this permission. More...
 
void AddLinkedPermission (uint32 id)
 Adds a new linked Permission. More...
 
void RemoveLinkedPermission (uint32 id)
 Removes a linked Permission. More...
 

Private Attributes

uint32 _id
 
std::string _name
 

‍id of the object

More...
 
RBACPermissionContainer _perms
 

‍name of the object

More...
 

Detailed Description

Definition at line 771 of file RBAC.h.

Constructor & Destructor Documentation

◆ RBACPermission()

rbac::RBACPermission::RBACPermission ( uint32  id = 0,
std::string const &  name = "" 
)
inline

Definition at line 774 of file RBAC.h.

Member Function Documentation

◆ AddLinkedPermission()

void rbac::RBACPermission::AddLinkedPermission ( uint32  id)
inline

Adds a new linked Permission.

Definition at line 785 of file RBAC.h.

+ Here is the caller graph for this function:

◆ GetId()

uint32 rbac::RBACPermission::GetId ( ) const
inline

Gets the Id of the Object.

Definition at line 780 of file RBAC.h.

+ Here is the caller graph for this function:

◆ GetLinkedPermissions()

RBACPermissionContainer const & rbac::RBACPermission::GetLinkedPermissions ( ) const
inline

Gets the Permissions linked to this permission.

Definition at line 783 of file RBAC.h.

+ Here is the caller graph for this function:

◆ GetName()

std::string const & rbac::RBACPermission::GetName ( ) const
inline

Gets the Name of the Object.

Definition at line 778 of file RBAC.h.

+ Here is the caller graph for this function:

◆ RemoveLinkedPermission()

void rbac::RBACPermission::RemoveLinkedPermission ( uint32  id)
inline

Removes a linked Permission.

Definition at line 787 of file RBAC.h.

Member Data Documentation

◆ _id

uint32 rbac::RBACPermission::_id
private

Definition at line 790 of file RBAC.h.

◆ _name

std::string rbac::RBACPermission::_name
private

‍id of the object

Definition at line 791 of file RBAC.h.

◆ _perms

RBACPermissionContainer rbac::RBACPermission::_perms
private

‍name of the object

Definition at line 792 of file RBAC.h.


The documentation for this class was generated from the following file: