This class represents a "Security Group" that contains entries for nSubject objects, and other nSecurityGroup objects.
More...
#include <nSecurityGroup.h>
This class represents a "Security Group" that contains entries for nSubject objects, and other nSecurityGroup objects.
The class can be used in conjunction with the nACLEntry (and any subclass of this object) in order to add nSecurityGroup objects into nACL objects for Nirvana Realm ACLs, Channel / Queue ACLs or Interface Via Lists.
com::pcbsys::nirvana::nAdminAPI::nSecurityGroup::nSecurityGroup |
( |
std::string |
name | ) |
|
Construct the nSecurityGroup with it's name.
- Parameters
-
name | the name of the group |
com::pcbsys::nirvana::nAdminAPI::nSecurityGroup::nSecurityGroup |
( |
std::string |
name, |
|
|
nSubject ** |
members, |
|
|
int |
numMembers |
|
) |
| |
Construct the nSecurityGroup with a name and members.
- Parameters
-
name | the name of the security group |
members | the initial members of the group |
numMembers | the number of members |
com::pcbsys::nirvana::nAdminAPI::nSecurityGroup::nSecurityGroup |
( |
fAclGroup * |
group | ) |
|
Constructor for nSecurity Group taking an fACLGroup representation of a group.
- Parameters
-
group | the fACLGroup to generate this SecurityGroup from. |
virtual void com::pcbsys::nirvana::nAdminAPI::nSecurityGroup::add |
( |
nSubject * |
member | ) |
|
|
virtual |
Add a member to the group.
- Parameters
-
virtual bool com::pcbsys::nirvana::nAdminAPI::nSecurityGroup::contains |
( |
nSubject * |
member | ) |
|
|
virtual |
Checks whether this nSecurityGroup contains a specific nSubject.
- Parameters
-
member | the member to check within this group and sub groups |
- Returns
- true if the member exists, else false
virtual bool com::pcbsys::nirvana::nAdminAPI::nSecurityGroup::contains |
( |
std::string |
member | ) |
|
|
virtual |
Checks whether this nSecurityGroup contains a specific member (could be another nSecurityGroup or an nSubject.
- Parameters
-
member | the member to check within this group and sub groups |
- Returns
- true if the member exists, else false
virtual std::list<nSubject*>* com::pcbsys::nirvana::nAdminAPI::nSecurityGroup::getMembers |
( |
| ) |
|
|
virtual |
Gets the members for the group.
- Returns
- list of the members subjects
virtual fAclGroup* com::pcbsys::nirvana::nAdminAPI::nSecurityGroup::getSubject |
( |
| ) |
|
|
virtual |
Gets the subject for the group.
- Returns
- the subject
virtual nSubject* com::pcbsys::nirvana::nAdminAPI::nSecurityGroup::lookup |
( |
nSubject * |
member | ) |
|
|
virtual |