Examples of IProfileDAO


Examples of org.libreplan.business.users.daos.IProfileDAO

    }

    @AssertTrue(message="profile name is already being used by another profile")
    public boolean isUniqueLoginNameConstraint() {

        IProfileDAO dao = Registry.getProfileDAO();

        if (isNewObject()) {
            return !dao.existsByProfileNameAnotherTransaction(profileName);
        } else {
            try {
                Profile p = dao.findByProfileNameAnotherTransaction(profileName);
                return p.getId().equals(getId());
            } catch (InstanceNotFoundException e) {
                return true;
            }
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.