Package org.opencustomer.db.dao.system

Examples of org.opencustomer.db.dao.system.RightDAO


        for (int i = 0; i < form.getRights().length; i++)
        {
            // f�ge die neuen Rechte hinzu
            try
            {
                RightVO right = new RightDAO().getById(new Integer(form.getRights()[i]));
                role.getRights().add(right);
                if (log.isDebugEnabled())
                    log.debug("added right: " + right);
            }
            catch (HibernateException e)
            {
                log.error("could not load role for id: " + form.getRights()[i], e);
            }
        }
       
        // f�ge alle fehlenden Lese-Rechte hinzu
        HashSet<RightVO> missingRights = new HashSet<RightVO>();
        for(RightVO right : role.getRights()) {
            if(RightVO.Type.WRITE.equals(right.getType())) {
                RightVO readRight = new RightDAO().getReadRightForRightGroup(right.getRightGroup());
                if(!role.getRights().contains(readRight)) {
                    missingRights.add(readRight);
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.opencustomer.db.dao.system.RightDAO

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.