drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
regex_policy::PolicyItem Class Reference
Collaboration diagram for regex_policy::PolicyItem:
[legend]

Public Member Functions

 PolicyItem (const std::string &u, const std::string &obj, const std::string &act)
bool userMatches (std::string &str)
bool objectMatches (std::string &object_id)
bool isRestricted () const
const std::string & getUser () const
const std::string & getObject () const
const char * getAction () const

Private Attributes

const std::string user
const std::string object
const boost::regex user_re
const boost::regex object_re
PolicyAction action

Detailed Description

Definition at line 64 of file regex_policy/policy.h.

Constructor & Destructor Documentation

◆ PolicyItem()

regex_policy::PolicyItem::PolicyItem ( const std::string & u,
const std::string & obj,
const std::string & act )
inline

Definition at line 72 of file regex_policy/policy.h.

Member Function Documentation

◆ getAction()

const char * regex_policy::PolicyItem::getAction ( ) const
inline

Definition at line 102 of file regex_policy/policy.h.

◆ getObject()

const std::string & regex_policy::PolicyItem::getObject ( ) const
inline

Definition at line 98 of file regex_policy/policy.h.

◆ getUser()

const std::string & regex_policy::PolicyItem::getUser ( ) const
inline

Definition at line 94 of file regex_policy/policy.h.

◆ isRestricted()

bool regex_policy::PolicyItem::isRestricted ( ) const
inline

Definition at line 159 of file regex_policy/policy.h.

◆ objectMatches()

bool regex_policy::PolicyItem::objectMatches ( std::string & object_id)
inline

Definition at line 154 of file regex_policy/policy.h.

◆ userMatches()

bool regex_policy::PolicyItem::userMatches ( std::string & str)
inline

Definition at line 149 of file regex_policy/policy.h.

Member Data Documentation

◆ action

PolicyAction regex_policy::PolicyItem::action
private

Definition at line 70 of file regex_policy/policy.h.

◆ object

const std::string regex_policy::PolicyItem::object
private

Definition at line 67 of file regex_policy/policy.h.

◆ object_re

const boost::regex regex_policy::PolicyItem::object_re
private

Definition at line 69 of file regex_policy/policy.h.

◆ user

const std::string regex_policy::PolicyItem::user
private

Definition at line 66 of file regex_policy/policy.h.

◆ user_re

const boost::regex regex_policy::PolicyItem::user_re
private

Definition at line 68 of file regex_policy/policy.h.


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