Package com.mossle.bpm.persistence.domain

Examples of com.mossle.bpm.persistence.domain.BpmConfUser


                + bpmConfNodeId;
    }

    @RequestMapping("bpm-conf-user-remove")
    public String remove(@RequestParam("id") Long id) {
        BpmConfUser bpmConfUser = bpmConfUserManager.get(id);
        Long bpmConfNodeId = bpmConfUser.getBpmConfNode().getId();

        if (bpmConfUser.getStatus() == 0) {
            bpmConfUser.setStatus(2);
            bpmConfUserManager.save(bpmConfUser);
        } else if (bpmConfUser.getStatus() == 1) {
            bpmConfUserManager.remove(bpmConfUser);
        } else if (bpmConfUser.getStatus() == 2) {
            bpmConfUser.setStatus(0);
            bpmConfUserManager.save(bpmConfUser);
        }

        return "redirect:/bpm/bpm-conf-user-list.do?bpmConfNodeId="
                + bpmConfNodeId;
View Full Code Here


        if (value == null) {
            return priority;
        }

        BpmConfUserManager bpmConfUserManager = getBpmConfUserManager();
        BpmConfUser bpmConfUser = bpmConfUserManager
                .findUnique(
                        "from BpmConfUser where value=? and type=? and priority=? and status=0 and bpmConfNode=?",
                        value, type, priority, bpmConfNode);

        if (bpmConfUser == null) {
            bpmConfUser = new BpmConfUser();
            bpmConfUser.setValue(value);
            bpmConfUser.setType(type);
            bpmConfUser.setStatus(0);
            bpmConfUser.setPriority(priority);
            bpmConfUser.setBpmConfNode(bpmConfNode);
            bpmConfUserManager.save(bpmConfUser);
        }

        return priority + 1;
    }
View Full Code Here

TOP

Related Classes of com.mossle.bpm.persistence.domain.BpmConfUser

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.