com::pcbsys::nirvana::nAdminAPI::nServiceACLEntry Class Reference

Allows the ability to programmatically allow or deny access to a service. More...

#include <nServiceACLEntry.h>

Inheritance diagram for com::pcbsys::nirvana::nAdminAPI::nServiceACLEntry:
com::pcbsys::nirvana::nAdminAPI::nACLEntry

Public Member Functions

virtual bool canConnect ()
 Can the subject connect to the service. More...
 
 nServiceACLEntry (const std::string &name, const std::string &host)
 Creates a new nServiceACLEntry for the name/ supplied. More...
 
 nServiceACLEntry (const std::string &subject, BitArray *pBitset)
 Creates a new nServiceACLEntry for the name/ supplied. More...
 
 nServiceACLEntry (nSecurityGroup *grp, BitArray *pBitset)
 Creates a new nServiceACLEntry for the security group supplied. More...
 
virtual void setConnect (bool val)
 Allow or deny the subject to connect to the service. More...
 
- Public Member Functions inherited from com::pcbsys::nirvana::nAdminAPI::nACLEntry
virtual bool canList ()
 Can this subject list the contents of an ACL. More...
 
virtual bool canModify ()
 Can this subject modify acl entries in a secure object. More...
 
void copyBitArray (BitArray *pArray)
 Replace the bit array representing the ACL with *pArray. More...
 
BitArray * getBitSet ()
 Creates a new nACLEntry with the subject being name@host. More...
 
virtual const std::string & getHost ()
 Returns the host's name as a string. More...
 
virtual const std::string & getName ()
 Returns the name of the ACLEntry. More...
 
std::string getSubject ()
 This method returns the completed subject User@Host. More...
 
virtual bool hasFullPrivileges ()
 Does this subject have full privileges for the secure object. More...
 
virtual bool lessThan (nACLEntry *pItem)
 Used to compares this Object with another to determine sorting position. More...
 
virtual bool lessThan (longlong aLong)
 Required as part of the SortedObject interface. More...
 
 nACLEntry (const std::string &name, const std::string &host)
 Creates a new nACLEntry with the subject being name@host. More...
 
 nACLEntry (const std::string &subject, BitArray *pBitset=NULL)
 Creates a new nACLEntry with the subject being name@host. More...
 
virtual void setFullPrivileges (bool val)
 Sets the subject to have full privileges for this secure object allowing the subject complete control over the secure object. More...
 
virtual void setList (bool val)
 Changes the current setting for this user to allow/disallow ACL listing. More...
 
virtual void setModify (bool val)
 Changes the current setting for this subject to allow/disallow modifying ACL. More...
 

Detailed Description

Allows the ability to programmatically allow or deny access to a service.

See Also
nACLEntry

Constructor & Destructor Documentation

com::pcbsys::nirvana::nAdminAPI::nServiceACLEntry::nServiceACLEntry ( const std::string &  name,
const std::string &  host 
)

Creates a new nServiceACLEntry for the name/ supplied.

By default this subject has NO privileges and they must be set.

Parameters
nameName for the subject
hostHost name for the subject
Exceptions
nAdminIllegalArgumentExceptionif an invalid or null argument is passed
See Also
nACLEntry
com::pcbsys::nirvana::nAdminAPI::nServiceACLEntry::nServiceACLEntry ( const std::string &  subject,
BitArray *  pBitset 
)

Creates a new nServiceACLEntry for the name/ supplied.

By default this subject has NO privileges and they must be set.

Parameters
subjectName for the subject
*pBitseta BitArray indicating the privileges associated with this ACL
Exceptions
nAdminIllegalArgumentExceptionif an invalid or null argument is passed
See Also
nACLEntry
com::pcbsys::nirvana::nAdminAPI::nServiceACLEntry::nServiceACLEntry ( nSecurityGroup grp,
BitArray *  pBitset 
)

Creates a new nServiceACLEntry for the security group supplied.

By default this subject has NO privileges and they must be set.

Parameters
*grpThe security group to create the ACL for
*pBitseta BitArray indicating the privileges associated with this ACL
Exceptions
nAdminIllegalArgumentExceptionif an invalid or null argument is passed
See Also
nACLEntry

Member Function Documentation

virtual bool com::pcbsys::nirvana::nAdminAPI::nServiceACLEntry::canConnect ( )
virtual

Can the subject connect to the service.

Returns
current state
virtual void com::pcbsys::nirvana::nAdminAPI::nServiceACLEntry::setConnect ( bool  val)
virtual

Allow or deny the subject to connect to the service.

Parameters
valboolean value