AJP13::net_alhem_1_0_server::Security::BasicAuthentication_t::User_t Class Reference

#include <Iconf.h>

List of all members.

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


Detailed Description

Definition at line 69 of file Iconf.h.


Constructor & Destructor Documentation

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]

Definition at line 74 of file Iconf.h.

00074 {}


Member Function Documentation

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; }


Member Data Documentation

Definition at line 97 of file Iconf.h.

Referenced by GetLogin(), and SetLogin().

Definition at line 98 of file Iconf.h.

Referenced by GetAuth(), and SetAuth().

Definition at line 99 of file Iconf.h.

Referenced by GetName(), and SetName().

Definition at line 100 of file Iconf.h.

Referenced by GetGroups(), and SetGroups().

Definition at line 101 of file Iconf.h.

Referenced by LoginIsSet(), and SetLogin().

Definition at line 102 of file Iconf.h.

Referenced by AuthIsSet(), and SetAuth().

Definition at line 103 of file Iconf.h.

Referenced by NameIsSet(), and SetName().

Definition at line 104 of file Iconf.h.

Referenced by GroupsIsSet(), and SetGroups().


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

Generated on Sun Oct 11 10:59:06 2009 for Xml Schema class generator by  doxygen 1.5.5