Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
rbac::RBACPermission Class Reference

#include <RBAC.h>

Public Member Functions

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

Private Attributes

uint32 _id
std::string _name
RBACPermissionContainer _perms

Detailed Description

Definition at line 727 of file RBAC.h.

Constructor & Destructor Documentation

◆ RBACPermission()

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

Definition at line 730 of file RBAC.h.

References _id, _name, and _perms.

Member Function Documentation

◆ AddLinkedPermission()

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

Adds a new linked Permission.

Definition at line 741 of file RBAC.h.

References _perms.

Referenced by AccountMgr::LoadRBAC().

◆ GetId()

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

Gets the Id of the Object.

Definition at line 736 of file RBAC.h.

References _id.

Referenced by rbac_commandscript::HandleRBACListPermissionsCommand(), and rbac_commandscript::HandleRBACPermListCommand().

◆ GetLinkedPermissions()

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

Gets the Permissions linked to this permission.

Definition at line 739 of file RBAC.h.

References _perms.

Referenced by rbac::RBACData::ExpandPermissions(), and rbac_commandscript::HandleRBACListPermissionsCommand().

◆ GetName()

◆ RemoveLinkedPermission()

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

Removes a linked Permission.

Definition at line 743 of file RBAC.h.

References _perms.

Member Data Documentation

◆ _id

uint32 rbac::RBACPermission::_id
private

Definition at line 746 of file RBAC.h.

Referenced by GetId(), and RBACPermission().

◆ _name

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

id of the object

Definition at line 747 of file RBAC.h.

Referenced by GetName(), and RBACPermission().

◆ _perms

RBACPermissionContainer rbac::RBACPermission::_perms
private

name of the object

Definition at line 748 of file RBAC.h.

Referenced by AddLinkedPermission(), GetLinkedPermissions(), RBACPermission(), and RemoveLinkedPermission().


The documentation for this class was generated from the following file:
  • src/server/game/Accounts/RBAC.h