#include <Iconf.h>
Public Member Functions | |
User_t () | |
User_t (const Xml::XmlNode &it) | |
virtual | ~User_t () |
void | FromXml (const Xml::XmlNode &it) |
const std::string | ToString (const std::string &name="") const |
bool | IsSet () const |
const std::string & | GetLogin () const |
void | SetLogin (const std::string &login) |
const std::string & | GetAuth () const |
void | SetAuth (const std::string &auth) |
const std::string & | GetName () const |
void | SetName (const std::string &name) |
const std::string & | GetGroups () const |
void | SetGroups (const std::string &groups) |
bool | LoginIsSet () const |
bool | AuthIsSet () const |
bool | NameIsSet () const |
bool | GroupsIsSet () const |
Private Attributes | |
std::string | _attribute_login |
std::string | _attribute_auth |
std::string | _attribute_name |
std::string | _attribute_groups |
bool | _attribute_login_is_set |
bool | _attribute_auth_is_set |
bool | _attribute_name_is_set |
bool | _attribute_groups_is_set |
Definition at line 69 of file Iconf.h.
AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::User_t::User_t | ( | ) |
Definition at line 332 of file Iconf.cpp.
00333 : _attribute_login_is_set(false) 00334 , _attribute_auth_is_set(false) 00335 , _attribute_name_is_set(false) 00336 , _attribute_groups_is_set(false) 00337 { 00338 }
AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::User_t::User_t | ( | const Xml::XmlNode & | it | ) |
Definition at line 342 of file Iconf.cpp.
References FromXml().
00343 : _attribute_login_is_set(false) 00344 , _attribute_auth_is_set(false) 00345 , _attribute_name_is_set(false) 00346 , _attribute_groups_is_set(false) 00347 { 00348 FromXml(it); 00349 }
virtual AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::User_t::~User_t | ( | ) | [inline, virtual] |
void AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::User_t::FromXml | ( | const Xml::XmlNode & | it | ) |
Definition at line 353 of file Iconf.cpp.
References SetAuth(), SetGroups(), SetLogin(), and SetName().
Referenced by AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::FromXml(), and User_t().
00354 { 00355 SetLogin(it.GetProperty("login")); 00356 SetAuth(it.GetProperty("auth")); 00357 SetName(it.GetProperty("name")); 00358 SetGroups(it.GetProperty("groups")); 00359 }
const std::string AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::User_t::ToString | ( | const std::string & | name = "" |
) | const |
Definition at line 363 of file Iconf.cpp.
References GetAuth(), GetGroups(), GetLogin(), and GetName().
Referenced by AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::ToString().
00364 { 00365 std::string r; 00366 if (!name.empty()) 00367 r += "<" + name; 00368 r += " login='" + GetLogin() + "'"; 00369 r += " auth='" + GetAuth() + "'"; 00370 r += " name='" + GetName() + "'"; 00371 r += " groups='" + GetGroups() + "'"; 00372 r += ">"; 00373 if (!name.empty()) 00374 r += "</" + name + ">"; 00375 return r; 00376 }
bool AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::User_t::IsSet | ( | ) | const |
Definition at line 380 of file Iconf.cpp.
References AuthIsSet(), GroupsIsSet(), LoginIsSet(), and NameIsSet().
Referenced by AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::UserIsSet().
00381 { 00382 return LoginIsSet() || AuthIsSet() || NameIsSet() || GroupsIsSet(); 00383 }
const std::string & AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::User_t::GetLogin | ( | ) | const |
Definition at line 387 of file Iconf.cpp.
References _attribute_login.
Referenced by ToString().
00388 { 00389 return _attribute_login; 00390 }
void AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::User_t::SetLogin | ( | const std::string & | login | ) |
Definition at line 393 of file Iconf.cpp.
References _attribute_login, and _attribute_login_is_set.
Referenced by FromXml().
00394 { 00395 _attribute_login = login; 00396 _attribute_login_is_set = true; 00397 }
const std::string & AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::User_t::GetAuth | ( | ) | const |
Definition at line 401 of file Iconf.cpp.
References _attribute_auth.
Referenced by ToString().
00402 { 00403 return _attribute_auth; 00404 }
void AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::User_t::SetAuth | ( | const std::string & | auth | ) |
Definition at line 407 of file Iconf.cpp.
References _attribute_auth, and _attribute_auth_is_set.
Referenced by FromXml().
00408 { 00409 _attribute_auth = auth; 00410 _attribute_auth_is_set = true; 00411 }
const std::string & AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::User_t::GetName | ( | ) | const |
Definition at line 415 of file Iconf.cpp.
References _attribute_name.
Referenced by ToString().
00416 { 00417 return _attribute_name; 00418 }
void AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::User_t::SetName | ( | const std::string & | name | ) |
Definition at line 421 of file Iconf.cpp.
References _attribute_name, and _attribute_name_is_set.
Referenced by FromXml().
00422 { 00423 _attribute_name = name; 00424 _attribute_name_is_set = true; 00425 }
const std::string & AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::User_t::GetGroups | ( | ) | const |
Definition at line 429 of file Iconf.cpp.
References _attribute_groups.
Referenced by ToString().
00430 { 00431 return _attribute_groups; 00432 }
void AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::User_t::SetGroups | ( | const std::string & | groups | ) |
Definition at line 435 of file Iconf.cpp.
References _attribute_groups, and _attribute_groups_is_set.
Referenced by FromXml().
00436 { 00437 _attribute_groups = groups; 00438 _attribute_groups_is_set = true; 00439 }
bool AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::User_t::LoginIsSet | ( | ) | const [inline] |
Definition at line 91 of file Iconf.h.
References _attribute_login_is_set.
Referenced by IsSet().
00091 { return _attribute_login_is_set; }
bool AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::User_t::AuthIsSet | ( | ) | const [inline] |
Definition at line 92 of file Iconf.h.
References _attribute_auth_is_set.
Referenced by IsSet().
00092 { return _attribute_auth_is_set; }
bool AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::User_t::NameIsSet | ( | ) | const [inline] |
Definition at line 93 of file Iconf.h.
References _attribute_name_is_set.
Referenced by IsSet().
00093 { return _attribute_name_is_set; }
bool AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::User_t::GroupsIsSet | ( | ) | const [inline] |
Definition at line 94 of file Iconf.h.
References _attribute_groups_is_set.
Referenced by IsSet().
00094 { return _attribute_groups_is_set; }
std::string AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::User_t::_attribute_login [private] |
std::string AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::User_t::_attribute_auth [private] |
std::string AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::User_t::_attribute_name [private] |
std::string AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::User_t::_attribute_groups [private] |