Examples of DepartmentWithSalaryTotal


Examples of be.c4j.demo.security.demo.model.dto.DepartmentWithSalaryTotal

        boolean allowed = permissionSalaryAll.verifyPermission();
        if (!allowed) {
            if (permissionSalaryManager.verifyPermission())  {
// TODO Check op parameter
                DepartmentWithSalaryTotal department = methodParameterCheckUtil.getAssignableParameter(invocationContext, DepartmentWithSalaryTotal.class);


                if (department.getId().equals(userPrincipal.getUserInfo(UserInfo.DEPARTMENT_ID))) {
                    allowed = true;
                }
            }
        }
        if (!allowed) {
View Full Code Here

Examples of be.c4j.demo.security.demo.model.dto.DepartmentWithSalaryTotal

    public List<DepartmentWithSalaryTotal> getAllDepartments() {
        Collection<Department> departmentList = data.getDepartmentList();
        List<DepartmentWithSalaryTotal> result = new ArrayList<DepartmentWithSalaryTotal>();
        for (Department department : departmentList) {
            List<Employee> employeeListForDepartment = data.getEmployeeListForDepartment(department.getId());
            result.add(new DepartmentWithSalaryTotal(department, calculateTotalSalary(employeeListForDepartment)));
        }
        return result;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.