Package au.edu.qut.yawl.admintool.model

Examples of au.edu.qut.yawl.admintool.model.HumanResource


        _model.addRole("Manager");
        _model.addRole("Worker");
        _model.addRole("Buyer");
        _model.addRole("Earner");
        HumanResource fredRes = new HumanResource("fred");
        fredRes.setDescription("A description about Fred");
        fredRes.setGivenName("Fred");
        fredRes.setIsAdministrator(true);
        fredRes.setIsOfResSerPosType("Resource");
        fredRes.setPassword("password");
        fredRes.setSurname("Jones");
        _model.addResource(fredRes);

        HumanResource peteRes = new HumanResource("Pete");
        peteRes.setDescription("A description about Pete");
        peteRes.setGivenName("Pete");
        peteRes.setIsAdministrator(true);
        peteRes.setIsOfResSerPosType("Resource");
        peteRes.setPassword("password");
        peteRes.setSurname("Hubbert");
        _model.addResource(peteRes);

        _model.addHresPerformsRole("fred", "Manager");
    }
View Full Code Here


            logger.info("Restoring Users");
            Query query = pmgr.createQuery("from au.edu.qut.yawl.admintool.model.Resource" +
                    " where IsOfResourceType = 'Human'");

            for (Iterator it = query.iterate(); it.hasNext();) {
                HumanResource user = (HumanResource) it.next();
                logger.debug("Restoring user '" + user.getRsrcID() + "'");
                UserList.getInstance().addUser(
                        user.getRsrcID(),
                        user.getPassword(),
                        user.getIsAdministrator());
            }

            //Lachlan: later we delete these loaded services and reload them anew
            //this seems kind of redundant, don't you think?
            logger.info("Restoring Services");
View Full Code Here

TOP

Related Classes of au.edu.qut.yawl.admintool.model.HumanResource

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.