Examples of DuplicateDepartmentException


Examples of be.c4j.demo.security.demo.exception.DuplicateDepartmentException

    @DemoPermissionCheck(DemoPermission.DEPARTMENT_CREATE)
    public void createDepartment(String departmentName) {
        Department departmentByName = data.getDepartmentByName(departmentName);
        if (departmentByName != null) {
            throw new DuplicateDepartmentException();
        }
        Department department = new Department();
        department.setName(departmentName);
        data.createDepartment(department);
    }
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.