public class UserAndRolesFakeData extends UsersAndRoles
dbHelper, logger, PROP_FILE, trace| Constructor and Description |
|---|
UserAndRolesFakeData()
Instantiates a new user and roles fake data.
|
UserAndRolesFakeData(java.lang.String host,
java.lang.String database,
java.lang.String driver,
java.lang.String user,
java.lang.String password)
Instantiates a new user and roles fake data.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
The main method.
|
void |
populateFakeDashboards(int numRows)
Populate fake dashboards.
|
void |
populateFakeData(int numRows)
Populate fake data.
|
void |
populateFakeDataRole()
Populate fake data role.
|
void |
populateFakeDataUser()
Populate fake data user.
|
void |
populateFakeRoleMemberships()
(Standalone) populate the role membership table with some arbitrary values for testing.
|
void |
populateFakeRoles()
Create a set of fake role information and put it into the database for testing.
|
void |
populateFakeUsers(int numUsers)
Create a set of fake users and put it into the database for testing.
|
addDashboard, addDashboard, addGroupDashboard, addSlideShow, addSlideShow, addUser, addUserRole, addUserRolePrivate, attemptAutoLogin, buildRoleHierarchy, checkForColumn, connect, connect, createDatabase, createTables, deleteDashboard, deleteDashboard, deleteRoleDashboards, deleteSlideShow, deleteUser, disconnect, dropDatabase, dropTables, getAllRoles, getAllRolesTable, getAllTables, getAllUsers, getAllUsersInfo, getAllUsersRoles, getDashboard, getDashboardTree, getGroupDashboard, getGroupDashboardTree, getRoleId, getRoleRoot, getRolesByTable, getRolesByUser, getRoleTables, getRoleTree, getSlideShow, getSlideShowTree, getTablesByRole, getTablesByUser, getTablesTree, getUIO, getUserDashboardTree, getUserInfo, getUserInfo, getUserRoles, getUsersByRole, getUsersByTable, getUserTables, getVersion, printTable, saveSlides, setRoleRoot, updateDashboard, updateRoleRelation, updateRoleRoot, updateRoleTree, updateSlideShow, updateTableRelation, updateTables, updateUser, updateUserPreferences, updateUserRelation, useConsoleLoggerpublic UserAndRolesFakeData(java.lang.String host,
java.lang.String database,
java.lang.String driver,
java.lang.String user,
java.lang.String password)
throws java.lang.Exception
host - the hostdatabase - the databasedriver - the driveruser - the userpassword - the passwordjava.lang.Exception - the exceptionpublic UserAndRolesFakeData()
public void populateFakeRoles()
public void populateFakeUsers(int numUsers)
numUsers - the num userspublic void populateFakeRoleMemberships()
throws java.lang.Exception
java.lang.Exception - the exceptionpublic void populateFakeData(int numRows)
throws java.lang.Exception
numRows - the num rowsjava.lang.Exception - the exceptionpublic void populateFakeDataRole()
throws java.lang.Exception
java.lang.Exception - the exceptionpublic void populateFakeDataUser()
throws java.lang.Exception
java.lang.Exception - the exceptionpublic void populateFakeDashboards(int numRows)
throws java.lang.Exception
numRows - the num rowsjava.lang.Exception - the exceptionpublic static void main(java.lang.String[] args)
args - the arguments