Package be.c4j.demo.security.demo.exception

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

Related Classes of be.c4j.demo.security.demo.exception.DuplicateDepartmentException

Copyright © 2018 www.massapicom. 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.