TrinityCore
Loading...
Searching...
No Matches
rbac::RBACPermission Class Reference

#include <RBAC.h>

Public Member Functions

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

Private Attributes

uint32 _id
 
std::string _name
 

‍id of the object


 
RBACPermissionContainer _perms
 

‍name of the object


 

Detailed Description

Definition at line 771 of file RBAC.h.

Constructor & Destructor Documentation

◆ RBACPermission() [1/3]

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

Definition at line 33 of file RBAC.cpp.

◆ RBACPermission() [2/3]

rbac::RBACPermission::RBACPermission ( RBACPermission const &  other)
default

◆ RBACPermission() [3/3]

rbac::RBACPermission::RBACPermission ( RBACPermission &&  other)
defaultnoexcept

◆ ~RBACPermission()

rbac::RBACPermission::~RBACPermission ( )
default

Member Function Documentation

◆ AddLinkedPermission()

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

Adds a new linked Permission.

Definition at line 789 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 784 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 787 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 782 of file RBAC.h.

+ Here is the caller graph for this function:

◆ operator=() [1/2]

RBACPermission & rbac::RBACPermission::operator= ( RBACPermission &&  right)
defaultnoexcept

◆ operator=() [2/2]

RBACPermission & rbac::RBACPermission::operator= ( RBACPermission const &  right)
default

◆ RemoveLinkedPermission()

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

Removes a linked Permission.

Definition at line 791 of file RBAC.h.

Member Data Documentation

◆ _id

uint32 rbac::RBACPermission::_id
private

Definition at line 794 of file RBAC.h.

◆ _name

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

‍id of the object

Definition at line 795 of file RBAC.h.

◆ _perms

RBACPermissionContainer rbac::RBACPermission::_perms
private

‍name of the object

Definition at line 796 of file RBAC.h.


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