Base Framework
|
#include <base/security/Trustee.h>
Inherits Object.
Classes | |
class | TrusteeException |
Trustee exception. More... | |
Public Types | |
enum | TrusteeType { UNSPECIFIED, USER, GROUP, CLASS, EVERYONE } |
Public Member Functions | |
Trustee () noexcept | |
Trustee (User user) noexcept | |
Trustee (Group group) noexcept | |
Trustee (TrusteeType type, const void *id) | |
Trustee (const Trustee ©) noexcept | |
Trustee & | operator= (const Trustee &assign) noexcept |
Trustee (const String &name) | |
bool | operator== (const Trustee &compare) const noexcept |
bool | operator!= (const Trustee &compare) const noexcept |
bool | isInitialized () const noexcept |
TrusteeType | getType () const |
bool | isMemberOf (const Trustee &trustee) const |
unsigned long | getIntegralId () const noexcept |
String | getName () const |
String | getFullName () const |
enum Trustee::TrusteeType |
|
noexcept |
Initializes trustee as invalid.
|
noexcept |
Initializes trustee from user.
|
noexcept |
Initializes trustee from group.
Trustee::Trustee | ( | TrusteeType | type, |
const void * | id | ||
) |
Initializes trustee by id. Raises OutOfDomain if the specified id is not supported by the platform.
|
noexcept |
Initializes trustee from other trustee.
Trustee::Trustee | ( | const String & | name | ) |
Initializes trustee by name.
String Trustee::getFullName | ( | ) | const |
Returns the full name of the trustee.
|
inlinenoexcept |
Returns the integral id.
String Trustee::getName | ( | ) | const |
Returns the short name of the trustee.
TrusteeType Trustee::getType | ( | ) | const |
Returns type of the trustee.
|
noexcept |
Returns true if the trustee is initialized. This does not mean that the trustee exists.
bool Trustee::isMemberOf | ( | const Trustee & | trustee | ) | const |
Returns true if the specified trustee is a member of this trustee (if a group) and otherwise returns false (also if trustee is currently INVALID). Raises TrusteeException if group could not be enumerated.
|
inlinenoexcept |
Returns false if the trustees are not identical. The method returns false if both trustees are invalid.
|
noexcept |
Returns true if the trustees are identical. The method returns true if both trustees are invalid.