Examples of Skill


Examples of org.apache.struts2.showcase.model.Skill

   * This method is called to allow the action to prepare itself.
   *
   * @throws Exception thrown if a system level exception occurs.
   */
  public void prepare() throws Exception {
    Skill preFetched = (Skill) fetch(getSkillName(), getCurrentSkill());
    if (preFetched != null) {
      setCurrentSkill(preFetched);
    }
  }
View Full Code Here

Examples of org.apache.struts2.showcase.model.Skill

  public Employee setSkills(Employee employee, List<String> skillNames) {
    if (employee != null && skillNames != null) {
      employee.setOtherSkills(new ArrayList());
      for (int i = 0, j = skillNames.size(); i < j; i++) {
        Skill skill = (Skill) skillDao.get(skillNames.get(i));
        employee.getOtherSkills().add(skill);
      }
    }
    return employee;
  }
View Full Code Here

Examples of org.apache.struts2.showcase.model.Skill

     * creating new objects as necessary
     *
     */
    public JsfEmployeeAction() {
        Employee e = new Employee();
        e.setMainSkill(new Skill());
        setCurrentEmployee(e);
    }
View Full Code Here

Examples of org.apache.struts2.showcase.model.Skill

     * Converting the Skill object list into a map
     */
    public Map<String, String> getAvailableSkills() {
        Map<String, String> map = new HashMap<String, String>();
        for (Object val : skillDao.findAll()) {
            Skill skill = (Skill) val;
            map.put(skill.getDescription(), skill.getName());
        }
        return map;
    }
View Full Code Here

Examples of org.apache.struts2.showcase.model.Skill

        if (skills != null) {
            for (Object val : skills) {
                if (val instanceof Skill) {
                    list.add(((Skill) val).getDescription());
                } else {
                    Skill skill = skillDao.getSkill((String) val);
                    list.add(skill.getDescription());
                }
            }
        }
        return list;
    }
View Full Code Here

Examples of org.apache.struts2.showcase.model.Skill

     * This method is called to allow the action to prepare itself.
     *
     * @throws Exception thrown if a system level exception occurs.
     */
    public void prepare() throws Exception {
        Skill preFetched = (Skill) fetch(getSkillName(), getCurrentSkill());
        if (preFetched != null) {
            setCurrentSkill(preFetched);
        }
    }
View Full Code Here

Examples of org.apache.struts2.showcase.model.Skill

    public Employee setSkills(Employee employee, List skillNames) {
        if (employee!= null && skillNames != null) {
            employee.setOtherSkills(new ArrayList());
            for (int i = 0, j = skillNames.size(); i < j; i++) {
                Skill skill = (Skill) skillDao.get((String) skillNames.get(i));
                employee.getOtherSkills().add(skill);
            }
        }
        return employee;
    }
View Full Code Here

Examples of org.beangle.model.example.Skill

    System.out.println(gs);
    Method a = Skill.class.getMethod("getId");
    System.out.println(a.getReturnType());

    List<Skill> skills = CollectUtils.newArrayList();
    skills.add(new Skill());
    process(skills);
  }
View Full Code Here

Examples of org.drools.planner.examples.nurserostering.domain.Skill

                skillList = new ArrayList<Skill>(skillElementList.size());
                skillMap = new HashMap<String, Skill>(skillElementList.size());
                long id = 0L;
                for (Element element : skillElementList) {
                    assertElementName(element, "Skill");
                    Skill skill = new Skill();
                    skill.setId(id);
                    skill.setCode(element.getText());
                    skillList.add(skill);
                    if (skillMap.containsKey(skill.getCode())) {
                        throw new IllegalArgumentException("There are 2 skills with the same code ("
                                + skill.getCode() + ").");
                    }
                    skillMap.put(skill.getCode(), skill);
                    id++;
                }
            }
            nurseRoster.setSkillList(skillList);
        }
View Full Code Here

Examples of org.drools.planner.examples.nurserostering.domain.Skill

                    for (Element skillElement : skillElementList) {
                        assertElementName(skillElement, "Skill");
                        ShiftTypeSkillRequirement shiftTypeSkillRequirement = new ShiftTypeSkillRequirement();
                        shiftTypeSkillRequirement.setId(shiftTypeSkillRequirementId);
                        shiftTypeSkillRequirement.setShiftType(shiftType);
                        Skill skill = skillMap.get(skillElement.getText());
                        if (skill == null) {
                            throw new IllegalArgumentException("The skill (" + skillElement.getText()
                                    + ") of shiftType (" + shiftType.getCode() + ") does not exist.");
                        }
                        shiftTypeSkillRequirement.setSkill(skill);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.