Examples of EnMeNoResultsFoundException


Examples of org.encuestame.persistence.exception.EnMeNoResultsFoundException

        final Question question = tp.getQuestion();
        //create answer
        final QuestionAnswer questionAnswer = createQuestionAnswer(answerBean,
                question);
        if (questionAnswer == null) {
            throw new EnMeNoResultsFoundException("answer is missing");
        } else {
            //create tweet poll switch with tp and new answer.
            log.debug("createTweetPollQuestionAnswer: short url provider:{ "+questionAnswer.getProvider());
            final TweetPollSwitch tpSwitch = this.createTweetPollSwitch(tp, questionAnswer, request);
            return tpSwitch;
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeNoResultsFoundException

     * @see org.encuestame.core.service.imp.ITweetPollService#getTweetPollPublishedById(java.lang.Long)
     */
    public TweetPoll getTweetPollPublishedById(final Long tweetPollId) throws EnMeNoResultsFoundException{
        final TweetPoll tweetPoll = getTweetPollDao().getPublicTweetPollById(tweetPollId);
        if (tweetPoll == null) {
            throw new EnMeNoResultsFoundException("tweetpoll [" + tweetPollId
                    + "] is not published");
        }
        return tweetPoll;
    }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeNoResultsFoundException

    public List<TweetPollSavedPublishedStatus> retrieveTweetPollSavedPublished(
            final TweetPoll tweetPoll) throws EnMeNoResultsFoundException {
        final List<TweetPollSavedPublishedStatus> tpollSaved = getTweetPollDao()
                .getAllLinks(tweetPoll, null, null, TypeSearchResult.TWEETPOLL);
        if (tpollSaved.size() == 0) {
            throw new EnMeNoResultsFoundException("tweetpoll saved published["
                    + tweetPoll + "] not results found");
        }
        return tpollSaved;
    }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeNoResultsFoundException

     * @see org.encuestame.core.service.imp.ITweetPollService#getTweetPollSavedPublishedStatusById(java.lang.Long)
     */
    public TweetPollSavedPublishedStatus getTweetPollSavedPublishedStatusById(final Long id) throws EnMeNoResultsFoundException{
        final TweetPollSavedPublishedStatus statusBean = getTweetPollDao().getTweetPollPublishedStatusbyId(id);
        if (statusBean == null) {
            throw new EnMeNoResultsFoundException("TweetPollSavedPublishedStatus [" + id
                    + "] is missing");
        }
        return statusBean;
    }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeNoResultsFoundException

    private TweetPollFolder getTweetPollFolderByFolderId(final Long folderId) throws EnMeNoResultsFoundException{
        final TweetPollFolder folder = this.getTweetPollDao()
                .getTweetPollFolderByIdandUser(folderId,
                        getUserAccount(getUserPrincipalUsername()).getAccount());
        if (folder == null) {
            throw new EnMeNoResultsFoundException("tweetpoll folder not valid");
        }
        return folder;
    }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeNoResultsFoundException

     */
    public FolderBean updateTweetPollFolder(final Long folderId, final String folderName, final String username)
           throws EnMeNoResultsFoundException{
        final TweetPollFolder tweetPollFolder = this.getTweetPollFolder(folderId);
        if(tweetPollFolder == null) {
            throw new EnMeNoResultsFoundException("Tweet Poll Folder not found");
        }
        else{
            tweetPollFolder.setFolderName(folderName);
            getTweetPollDao().saveOrUpdate(tweetPollFolder);
        }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeNoResultsFoundException

    public void deleteTweetPollFolder(final Long folderId) throws EnMeNoResultsFoundException{
        final TweetPollFolder tweetPollfolder = this.getTweetPollFolder(folderId);
        if(tweetPollfolder != null) {
            getTweetPollDao().delete(tweetPollfolder);
        } else {
            throw new EnMeNoResultsFoundException("TweetPoll folder not found");
        }
    }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeNoResultsFoundException

         if (tpfolder != null) {
             final TweetPoll tpoll = this.getTweetPollById(tweetPollId);
             tpoll.setTweetPollFolder(tpfolder);
             getTweetPollDao().saveOrUpdate(tpoll);
         } else {
             throw new EnMeNoResultsFoundException("tweetPoll folder not found");
         }
    }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeNoResultsFoundException

     */
  @Override
  public QuestionBean getQuestionInfo(Long questionId) throws EnMeNoResultsFoundException {
    final Question question = getQuestionDao().retrieveQuestionById(questionId);
    if (question == null) {
      throw new EnMeNoResultsFoundException("question not found");
    }
    return ConvertDomainBean.convertQuestionsToBean(question);
  }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeNoResultsFoundException

     */
    public FolderBean updateSurveyFolder(final Long folderId, final String folderName, final String username)
                throws EnMeNoResultsFoundException{
        final SurveyFolder surveyPollFolder = this.getSurveyFolder(folderId);
        if(surveyPollFolder == null) {
            throw new EnMeNoResultsFoundException("Survey Poll Folder not found");
        }
        else{
            surveyPollFolder.setFolderName(folderName);
            getSurveyDaoImp().saveOrUpdate(surveyPollFolder);
        }
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.