![]() |
|
|
Bdb packages | Design docs | Source docs | Guidelines | Recent releases |
|
Main Page Modules Namespace List Class Hierarchy Alphabetical List Compound List File List Compound Members File Members /BdbAccess/BdbAuthTest.cc File Reference
#include <string.h>
#include <assert.h>
#include <iostream.h>
#include "BdbUtil/Bdb.hh"
#include "BdbAccess/BdbAuth.hh"
#include "BdbAccess/BdbAuthItr.hh"
#include "BdbApplication/BdbDomain.hh"
Go to the source code of this file.
Functions
BdbDomain::Domains get_domain () BdbDomain::AuthLevels get_authLevel () char * get_user () char * get_group () d_Boolean get_boolean () int print_strings (BdbAuthItr *itr) void print_status (d_Boolean) void test_check (BdbAuth *) void test_init_domain (BdbAuth *) void test_delete_domain (BdbAuth *) void test_create_user (BdbAuth *) void test_delete_user (BdbAuth *) void test_create_group (BdbAuth *) void test_delete_group (BdbAuth *) void test_include_user (BdbAuth *) void test_exclude_user (BdbAuth *) void test_set_system_manager (BdbAuth *) void test_set_group_manager (BdbAuth *) void test_list_users () void test_list_group_members () void test_list_groups () void test_list_user_membership () int main (int argc, char *argv[]) Variables
const char rcsid [] = "$Id: BdbAuthTest.cc,v 1.8 2001/03/23 22:35:29 gapon Exp $" Function Documentation
BdbDomain::AuthLevels get_authLevel ( ) [static]
Definition at line 204 of file BdbAuthTest.cc.
References cout, BdbDomainAuth::Group, BdbDomainAuth::System, and BdbDomainAuth::User.
Referenced by cmd_check(), cmd_create_user(), test_check(), and test_create_user().
d_Boolean get_boolean ( ) [static]
Definition at line 247 of file BdbAuthTest.cc.
References cout.
Referenced by cmd_set_group_manager(), cmd_set_system_manager(), test_set_group_manager(), and test_set_system_manager().
BdbDomain::Domains get_domain ( ) [static]
char * get_group ( ) [static]
Definition at line 233 of file BdbAuthTest.cc.
References cout.
Referenced by test_check(), test_create_group(), test_create_user(), test_delete_group(), test_exclude_user(), test_include_user(), test_list_group_members(), and test_set_group_manager().
char * get_user ( ) [static]
Definition at line 219 of file BdbAuthTest.cc.
References cout.
Referenced by test_create_user(), test_delete_user(), test_exclude_user(), test_include_user(), test_list_user_membership(), test_set_group_manager(), and test_set_system_manager().
int main ( int argc, char * argv[] )
main() - main function
Definition at line 82 of file BdbAuthTest.cc.
References BdbAuth::commit(), cout, BdbAuth::instance(), BdbAuth::startUpdate(), test_check(), test_create_group(), test_create_user(), test_delete_domain(), test_delete_group(), test_delete_user(), test_exclude_user(), test_include_user(), test_init_domain(), test_list_group_members(), test_list_groups(), test_list_user_membership(), test_list_users(), test_set_group_manager(), and test_set_system_manager().
void print_status ( d_Boolean ) [static]
Definition at line 261 of file BdbAuthTest.cc.
References cout.
Referenced by test_check(), test_create_group(), test_create_user(), test_delete_domain(), test_delete_group(), test_delete_user(), test_exclude_user(), test_include_user(), test_init_domain(), test_set_group_manager(), and test_set_system_manager().
int print_strings ( BdbAuthItr * itr ) [static]
Print all strings provided by an iterator and return the number of printed strings.
Definition at line 442 of file BdbAuthTest.cc.
References cout, BdbAuthItr::current(), BdbAuthItr::isValid(), and BdbAuthItr::next().
Referenced by test_list_group_members(), test_list_groups(), test_list_user_membership(), and test_list_users().
void test_check ( BdbAuth * ) [static]
Definition at line 274 of file BdbAuthTest.cc.
References authLevel, BdbDomainAuth::AuthLevels, cout, BdbDomainName::Domains, get_authLevel(), get_domain(), get_group(), BdbDomainAuth::Group, BdbAuth::isAuthorized(), and print_status().
Referenced by main().
void test_create_group ( BdbAuth * ) [static]
Definition at line 360 of file BdbAuthTest.cc.
References cout, BdbAuth::createGroup(), get_domain(), get_group(), and print_status().
Referenced by main().
void test_create_user ( BdbAuth * ) [static]
Definition at line 325 of file BdbAuthTest.cc.
References authLevel, BdbDomainAuth::AuthLevels, cout, BdbAuth::createUser(), BdbDomainName::Domains, get_authLevel(), get_domain(), get_group(), get_user(), BdbDomainAuth::Group, and print_status().
Referenced by main().
void test_delete_domain ( BdbAuth * ) [static]
Definition at line 312 of file BdbAuthTest.cc.
References cout, BdbAuth::deleteDomain(), get_domain(), and print_status().
Referenced by main().
void test_delete_group ( BdbAuth * ) [static]
Definition at line 373 of file BdbAuthTest.cc.
References cout, BdbAuth::deleteGroup(), get_domain(), get_group(), and print_status().
Referenced by main().
void test_delete_user ( BdbAuth * ) [static]
Definition at line 348 of file BdbAuthTest.cc.
References cout, BdbAuth::deleteUser(), get_domain(), get_user(), and print_status().
Referenced by main().
void test_exclude_user ( BdbAuth * ) [static]
Definition at line 399 of file BdbAuthTest.cc.
References cout, BdbAuth::excludeUser(), get_domain(), get_group(), get_user(), and print_status().
Referenced by main().
void test_include_user ( BdbAuth * ) [static]
Definition at line 385 of file BdbAuthTest.cc.
References cout, get_domain(), get_group(), get_user(), BdbAuth::includeUser(), and print_status().
Referenced by main().
void test_init_domain ( BdbAuth * ) [static]
Definition at line 296 of file BdbAuthTest.cc.
References cout, get_domain(), BdbAuth::initialize(), and print_status().
Referenced by main().
void test_list_group_members ( ) [static]
Definition at line 477 of file BdbAuthTest.cc.
References cout, BdbAuth::createUsersItr(), get_domain(), get_group(), BdbAuth::instance(), and print_strings().
Referenced by main().
void test_list_groups ( ) [static]
Definition at line 496 of file BdbAuthTest.cc.
References cout, BdbAuth::createGroupsItr(), get_domain(), BdbAuth::instance(), and print_strings().
Referenced by main().
void test_list_user_membership ( ) [static]
Definition at line 514 of file BdbAuthTest.cc.
References cout, BdbAuth::createGroupsItr(), get_domain(), get_user(), BdbAuth::instance(), and print_strings().
Referenced by main().
void test_list_users ( ) [static]
Definition at line 459 of file BdbAuthTest.cc.
References cout, BdbAuth::createUsersItr(), get_domain(), BdbAuth::instance(), and print_strings().
Referenced by main().
void test_set_group_manager ( BdbAuth * ) [static]
Definition at line 425 of file BdbAuthTest.cc.
References cout, get_boolean(), get_domain(), get_group(), get_user(), print_status(), and BdbAuth::setGroupManager().
Referenced by main().
void test_set_system_manager ( BdbAuth * ) [static]
Definition at line 412 of file BdbAuthTest.cc.
References cout, get_boolean(), get_domain(), get_user(), print_status(), and BdbAuth::setSystemManager().
Referenced by main().
Variable Documentation
const char rcsid[] = "$Id: BdbAuthTest.cc,v 1.8 2001/03/23 22:35:29 gapon Exp $" [static]
Definition at line 48 of file BdbAuthTest.cc.
BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us
Page Owner: Jacek Becla
Last Update: October 04, 2002