コード例 #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);
 }
コード例 #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());
   }
 }
コード例 #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());
   }
 }
コード例 #4
0
 /** Remove a select Interview Guide */
 public void removeGuide() {
   interviewEntityFacade.remove(selectedInterviewEntity);
   FacesContext.getCurrentInstance()
       .addMessage(null, new FacesMessage("Interview Guide removed with sucess"));
 }
コード例 #5
0
 public List<InterviewEntity> getLstInterviewsInUse() {
   return interviewEntityFacade.findInterviewsInUse();
 }
コード例 #6
0
 public List<InterviewEntity> getLstInterviews() {
   return interviewEntityFacade.findAll();
 }