Package framework.beans.security.entities

Examples of framework.beans.security.entities.ArmPanel


        //checkCommandAccessibility(COMMAND_HANDLE_ARM);
    List<ArmPanel> contracts = getArmList(armID);
        Set<String> res = new HashSet<String>();
        Iterator<ArmPanel> i = contracts.iterator();
        while(i.hasNext()) {
            ArmPanel j = i.next();
            res.add(j.getKey().getPanel());
        }       
        return res;
    }
View Full Code Here


    public void setPanelList(int armID, Set <String> panels) throws ClipsServerException  {
        checkCommandAccessibility(COMMAND_HANDLE_ARM);
       
        Iterator i = getArmList(armID).iterator();
        while(i.hasNext()) {
            ArmPanel armPanel = (ArmPanel) i.next();
            String panel = armPanel.getKey().getPanel();
            if(!panels.contains(panel)) {
                manager.remove(armPanel);
            } else {
                panels.remove(panel);
            }
        }       
       
        Iterator<String> newPS = panels.iterator();
        while(newPS.hasNext()) {
            ArmPanel panel = new ArmPanel();
            panel.setKey(new ArmPanelPK(newPS.next(), armID));
            manager.persist(panel);
        }
    }
View Full Code Here

    private void replaceArms(DirectoryEntity entityWhat, DirectoryEntity entityWith) {
        //ArmPanel, ArmRight
        List<ArmPanel> entityList = findEntityList(ArmPanel.class, "arm", entityWhat);
        for (int i = 0; i < entityList.size(); i++) {
            ArmPanel armPanel = entityList.get(i);
            armPanel.setArm((Arm) entityWith);
            manager.merge(armPanel);
        }
        List<ArmRight> entityList1 = findEntityList(ArmRight.class, "arm", entityWhat);
        for (int i = 0; i < entityList1.size(); i++) {
            ArmRight armRight = entityList1.get(i);
View Full Code Here

TOP

Related Classes of framework.beans.security.entities.ArmPanel

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.