Base Framework
Classes | Public Member Functions | List of all members
Group Class Reference

Group trustee. More...

#include <base/security/Group.h>

Inherits Object.

Classes

class  GroupException
 Group exception. More...
 

Public Member Functions

 Group () noexcept
 
 Group (unsigned long id)
 
 Group (const void *id)
 
 Group (const Group &copy) noexcept
 
Groupoperator= (const Group &assign) noexcept
 
 Group (const String &name)
 
bool operator== (const Group &compare) const noexcept
 
bool operator!= (const Group &compare) const noexcept
 
 Group (const User &user)
 
bool isValid () const noexcept
 
const void * getId () const noexcept
 
unsigned long getIntegralId () const noexcept
 
String getName () const
 
Array< StringgetMembers () const
 

Detailed Description

Group trustee.

A group trustee.

Version
1.2
Examples
testsuite/ls.cpp.

Constructor & Destructor Documentation

◆ Group() [1/6]

Group::Group ( )
inlinenoexcept

Initializes group as invalid.

◆ Group() [2/6]

Group::Group ( unsigned long  id)

Initializes the group by id.

Parameters
idThe identifier of the group.

◆ Group() [3/6]

Group::Group ( const void *  id)

Initializes the group by id.

Parameters
idThe identifier of the group.

◆ Group() [4/6]

Group::Group ( const Group copy)
noexcept

Initializes group from other group.

◆ Group() [5/6]

Group::Group ( const String name)

Initializes the group by name.

Parameters
nameThe name of the group.

◆ Group() [6/6]

Group::Group ( const User user)

Initializes group as the primary group of the specified user.

Member Function Documentation

◆ getId()

const void* Group::getId ( ) const
inlinenoexcept

Returns the id of the group.

◆ getIntegralId()

unsigned long Group::getIntegralId ( ) const
inlinenoexcept

Returns the integral id of the group.

◆ getMembers()

Array<String> Group::getMembers ( ) const

Returns the members of the group.

◆ getName()

String Group::getName ( ) const

Returns the name of the group.

Examples
testsuite/ls.cpp.

◆ isValid()

bool Group::isValid ( ) const
inlinenoexcept

Returns true if the group is initialized. This does not mean that the group exists.

◆ operator!=()

bool Group::operator!= ( const Group compare) const
inlinenoexcept

Returns false if the groups are not identical. The method returns false if both groups are invalid.

◆ operator=()

Group& Group::operator= ( const Group assign)
noexcept

Assignment of group by group.

◆ operator==()

bool Group::operator== ( const Group compare) const
noexcept

Returns true if the groups are identical. The method returns true if both users are invalid.