Examples of EnMePollNotFoundException


Examples of org.encuestame.persistence.exception.EnMePollNotFoundException

      */
    public Poll getPollById(final Long pollId)
            throws EnMeNoResultsFoundException {
        final Poll poll = this.getPollDao().getPollById(pollId);
        if (poll == null) {
            throw new EnMePollNotFoundException("poll invalid with this id "
                    + pollId);
        }
        return poll;
    }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMePollNotFoundException

            pathVote = "poll/ " + isEmbedded + "banned";
        } else {
            // Item id is poll id
            if (itemId == null) {
                // Exception musst be removed.
                throw new EnMePollNotFoundException("poll id has not been found");
                // if answer id is null return the request
            } else if (responseId == null) {
                //poll = getPollService().getPollById(itemId);
                poll = getPollService().getPollByAnswerId(itemId, responseId, null);
                model.addAttribute("poll", ConvertDomainBean.convertPollDomainToBean(poll));
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMePollNotFoundException

     */
     public Poll getPollById(final Long pollId, final UserAccount account) throws EnMeNoResultsFoundException{
        final Poll poll = getPollDao().getPollById(pollId, account);
        if (poll == null) {
            log.error("poll invalid with this id "+pollId+ " and username:{"+account);
            throw new EnMePollNotFoundException("poll invalid with this id "+pollId+ " and username:{"+account);
        }
        return poll;
    }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMePollNotFoundException

         log.debug("getPollById pollId: "+pollId);
         log.debug("getPollById account: "+account);
         final Poll poll = this.getPollById(pollId, getUserAccount(account));
         if (poll == null) {
             log.error("poll invalid with this id "+pollId+ " and username:{"+account);
             throw new EnMePollNotFoundException("poll invalid with this id "+pollId+ " and username:{"+account);
         }
         return poll;
     }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMePollNotFoundException

     */
    public Poll getPollSlugById(final Long pollId, final String slug) throws EnMeNoResultsFoundException{
        final Poll poll = this.getPollDao().getPollById(pollId, slug, true);
        if (poll == null) {
            log.error("poll invalid with this id "+pollId+ " and slug:{"+slug);
            throw new EnMePollNotFoundException("poll invalid with this id "+pollId+ " and slug:{"+slug);
        }
        return poll;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.