Esempio n. 1
0
 /** Edit Use of Interview Guide */
 public void editGuide() {
   if (selectedInterviewEntity.getInUse() == true) {
     selectedInterviewEntity.setInUse(Boolean.FALSE);
   } else {
     selectedInterviewEntity.setInUse(Boolean.TRUE);
   }
   interviewEntityFacade.edit(selectedInterviewEntity);
 }
Esempio n. 2
0
 /** Create Guide Interview */
 public void createGuide() {
   try {
     interviewEntityFacade.createGuide(guideName, guideType);
   } catch (InterviewEntityNameException ex) {
     Logger.getLogger(GuideWebManagem.class.getName()).log(Level.SEVERE, null, ex);
     JSFUtil.addErrorMessage(ex.getMessage());
   }
 }
Esempio n. 3
0
 /** Create Interview Questions to a selected Interview Guide */
 public void createQuestionsForGuide() {
   try {
     InterviewQuestionEntity interviewQuestion =
         interviewQuestionFacade.createQuestionForGuide(
             questionName, selectedInterviewEntity, answerType);
     lstInterviewQuestionEntity =
         interviewQuestionFacade.getInterviewQuestionEntityByInterview(
             selectedInterviewEntity.getInterviewId());
     interviewEntityFacade.mergeQuestionsInGuide(selectedInterviewEntity, interviewQuestion);
   } catch (EJBException ex) {
     Logger.getLogger(ApplicationWebManagem.class.getName()).log(Level.SEVERE, null, ex);
   } catch (InterviewQuestionNameAlreadyExistsException
       | MustIntroduceInterviewQuestionException ex) {
     Logger.getLogger(GuideWebManagem.class.getName()).log(Level.SEVERE, null, ex);
     JSFUtil.addErrorMessage(ex.getMessage());
   }
 }
Esempio n. 4
0
 /** Remove a select Interview Guide */
 public void removeGuide() {
   interviewEntityFacade.remove(selectedInterviewEntity);
   FacesContext.getCurrentInstance()
       .addMessage(null, new FacesMessage("Interview Guide removed with sucess"));
 }
Esempio n. 5
0
 public List<InterviewEntity> getLstInterviewsInUse() {
   return interviewEntityFacade.findInterviewsInUse();
 }
Esempio n. 6
0
 public List<InterviewEntity> getLstInterviews() {
   return interviewEntityFacade.findAll();
 }