public Collection<Commissioner> getAgreedCom() { if (isRenderedTableEndNom()) { return nominatingSessionBean.getComToEndNominating(getEventId()); } else if (isRenderedTableStarVot()) { return votingSessionBean.getComToStartVoting(getEventId()); } else if (isRenderedTableEndVot()) { return votingSessionBean.getComToEndVoting(getEventId()); } return null; }
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; } }
public boolean isRenderedTableEndVot() { eventId = getEventId(); if ((nominatingSessionBean.isStartedNominating(eventId) == false) && (votingSessionBean.isStartedVoting(eventId) == true) && (isAnyoneNominated() == true)) { return true; } else { return false; } }