public void createPosition() {
    if (scripts == null || scripts.isEmpty()) {
      MetaUtils.setMsg("Please select at least a script", FacesMessage.SEVERITY_ERROR);
      return;
    }
    positionService.createNewPosition(
        title,
        selectedLocalizations,
        state,
        vacancies,
        closingDate,
        sla,
        contactPerson,
        company,
        selectedTechnicalAreas,
        description,
        scripts,
        selectedChannels);
    title = null;
    selectedLocalizations = null;
    state = null;
    vacancies = 1;
    closingDate = null;
    sla = 1;
    contactPerson = null;
    company = null;
    selectedTechnicalAreas = null;
    description = null;
    script = null;
    selectedChannels = null;
    scripts = null;

    MetaUtils.setMsg("Position created", FacesMessage.SEVERITY_INFO);
  }
 public void updatePosition() {
   if (scripts.size() == 0) {
     MetaUtils.setMsg("At least 1 script needed", FacesMessage.SEVERITY_ERROR);
     return;
   }
   position = positionService.updatePosition(position, scripts);
   MetaUtils.setMsg("Position updated", FacesMessage.SEVERITY_INFO);
 }
 public void onload() {
   position = positionService.findPositionById(posId);
   scripts = position.getScripts();
 }
 public List<IPosition> getOpenPositions() {
   return positionService.findOpenPosition();
 }