Examples of EnMeTweetPollNotFoundException


Examples of org.encuestame.persistence.exception.EnMeTweetPollNotFoundException

        } else {
            tweetPoll = getTweetPollDao().getTweetPollById(tweetPollId);
        }
        if (tweetPoll == null) {
            log.error("tweet poll invalid with this id "+tweetPollId);
            throw new EnMeTweetPollNotFoundException("tweet poll invalid with this id "+tweetPollId);
        }
        return tweetPoll;
    }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeTweetPollNotFoundException

    public TweetPoll updateTweetPoll(final TweetPollBean tweetPollBean) throws EnMeNoResultsFoundException {
        log.debug("Updated tweetpoll with id :"+tweetPollBean.getId());
        final TweetPoll tweetPoll = getTweetPoll(tweetPollBean.getId(), getUserPrincipalUsername());
        Assert.notNull(tweetPoll);
        if (tweetPoll == null) {
            throw new EnMeTweetPollNotFoundException();
        }
        //TODO: disabled to create hashtag directly from own service.
        //final List<HashTag> newList = retrieveListOfHashTags(tweetPollBean.getHashTags());
        //log.debug("new list of hashtags size: "+newList.size());
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeTweetPollNotFoundException

        TweetPoll tweetPoll;
        try {
                tweetPoll = getTweetPollDao().getTweetPollByIdandSlugName(tweetPollId, slug);
            if (tweetPoll == null) {
                log.error("tweet poll invalid with this id "+tweetPollId);
                throw new EnMeTweetPollNotFoundException("tweet poll invalid with this id "+tweetPollId);
            }
        } catch (UnsupportedEncodingException e) {
            log.error(e);
            tweetPoll = null;
        }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeTweetPollNotFoundException

            final String username) throws EnMeNoResultsFoundException {
        List<TweetPoll> tweetPollsbyFolder = new ArrayList<TweetPoll>();
        final TweetPollFolder tweetPollFolder = getTweetPollDao()
                .getTweetPollFolderById(folderId);
        if (tweetPollFolder == null) {
            throw new EnMeTweetPollNotFoundException(
                    "Tweetpoll folder not found");

        } else {
            tweetPollsbyFolder = getTweetPollDao().retrieveTweetPollByFolder(
                    getUserAccountonSecurityContext().getUid(), folderId);
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.