Package org.libreplan.business.users.daos

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

Related Classes of org.libreplan.business.users.daos.IProfileDAO

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.