Ejemplo n.º 1
0
 public boolean isRenderedTableEndVot() {
   eventId = getEventId();
   if ((nominatingSessionBean.isStartedNominating(eventId) == false)
       && (votingSessionBean.isStartedVoting(eventId) == true)
       && (isAnyoneNominated() == true)) {
     return true;
   } else {
     return false;
   }
 }
Ejemplo n.º 2
0
 public boolean isRenderEndVoting() {
   eventId = getEventId();
   String login =
       FacesContext.getCurrentInstance().getExternalContext().getUserPrincipal().getName();
   if ((nominatingSessionBean.isStartedNominating(eventId) == false)
       && (votingSessionBean.isStartedVoting(eventId) == true)
       && (isAnyoneNominated() == true)
       && !votingSessionBean.isComToEndVoting(eventId, login)) {
     return true;
   } else {
     return false;
   }
 }