addUser(TestBase.ADMIN);
addUser(TestBase.TEST_ADMIN_USER, TestBase.TEST_ADMIN_USER_PASSWORD);
PFUserDO user = new PFUserDO();
user.setUsername(TestBase.TEST_FINANCE_USER);
user//
.addRight(new UserRightDO(UserRightId.FIBU_AUSGANGSRECHNUNGEN, UserRightValue.READWRITE)) //
.addRight(new UserRightDO(UserRightId.FIBU_EINGANGSRECHNUNGEN, UserRightValue.READWRITE)) //
.addRight(new UserRightDO(UserRightId.FIBU_EMPLOYEE, UserRightValue.READWRITE)) //
.addRight(new UserRightDO(UserRightId.FIBU_EMPLOYEE_SALARY, UserRightValue.READWRITE)) //
.addRight(new UserRightDO(UserRightId.FIBU_ACCOUNTS, UserRightValue.READWRITE)) //
.addRight(new UserRightDO(UserRightId.FIBU_COST_UNIT, UserRightValue.READWRITE)) //
.addRight(new UserRightDO(UserRightId.PM_ORDER_BOOK, UserRightValue.READWRITE)) //
.addRight(new UserRightDO(UserRightId.PM_PROJECT, UserRightValue.READWRITE)) //
.addRight(new UserRightDO(UserRightId.PM_HR_PLANNING, UserRightValue.READWRITE)); //
addUser(user);
user = new PFUserDO();
user.setUsername(TestBase.TEST_FULL_ACCESS_USER);
user//
.addRight(new UserRightDO(UserRightId.FIBU_AUSGANGSRECHNUNGEN, UserRightValue.READWRITE)) //
.addRight(new UserRightDO(UserRightId.FIBU_EINGANGSRECHNUNGEN, UserRightValue.READWRITE)) //
.addRight(new UserRightDO(UserRightId.FIBU_EMPLOYEE, UserRightValue.READWRITE)) //
.addRight(new UserRightDO(UserRightId.FIBU_EMPLOYEE_SALARY, UserRightValue.READWRITE)) //
.addRight(new UserRightDO(UserRightId.FIBU_ACCOUNTS, UserRightValue.READWRITE)) //
.addRight(new UserRightDO(UserRightId.FIBU_COST_UNIT, UserRightValue.READWRITE)) //
.addRight(new UserRightDO(UserRightId.PM_ORDER_BOOK, UserRightValue.READWRITE)) //
.addRight(new UserRightDO(UserRightId.PM_PROJECT, UserRightValue.READWRITE)) //
.addRight(new UserRightDO(UserRightId.PM_HR_PLANNING, UserRightValue.READWRITE)); //
userDao.createEncryptedPassword(user, TestBase.TEST_FULL_ACCESS_USER_PASSWORD);
addUser(user);
addUser(TestBase.TEST_USER, TestBase.TEST_USER_PASSWORD);
addUser(TestBase.TEST_USER2);
user = addUser(TestBase.TEST_DELETED_USER, TestBase.TEST_DELETED_USER_PASSWORD);
userDao.internalMarkAsDeleted(user);
addUser("user1");
addUser("user2");
addUser("user3");
addUser(TestBase.TEST_CONTROLLING_USER);
addUser(TestBase.TEST_MARKETING_USER);
addUser(TestBase.TEST_PROJECT_MANAGER_USER);
user = new PFUserDO();
user.setUsername(TestBase.TEST_PROJECT_ASSISTANT_USER);
user.addRight(new UserRightDO(UserRightId.PM_ORDER_BOOK, UserRightValue.PARTLYREADWRITE));
addUser(user);
}