Package org.encuestame.utils.enums

Examples of org.encuestame.utils.enums.SearchPeriods


    public Long getTotalVotesByTweetPollIdAndDateRange(final Long tweetPollId, final String period) {
        Long totalvotes = 0L;
        final TweetPoll tpoll = this.getTweetPollById(tweetPollId);
        final List<TweetPollSwitch> tpSwitchAnswers = this
                .getListAnswersByTweetPollAndDateRange(tpoll);
        final SearchPeriods searchPeriods = SearchPeriods.getPeriodString(period);
        for (TweetPollSwitch tweetPollSwitch : tpSwitchAnswers) {
            totalvotes += this.getTotalTweetPollResultByTweetPollSwitch(tweetPollSwitch, searchPeriods);
            log.info("Total Votes: " + totalvotes);
        }
        return totalvotes;
View Full Code Here


    @SuppressWarnings("unchecked")
    public List advancedSearch(final Boolean isPublished,
            final Boolean isComplete, final Boolean favourites,
            final Boolean scheduled, final Account user, final Integer start,
            final Integer max, final Integer period, final String keyword) {
        final SearchPeriods searchPeriods = SearchPeriods
                .getPeriodString(period.toString());
        final DetachedCriteria criteria = DetachedCriteria
                .forClass(TweetPoll.class);
        criteria.createAlias("question", "question");
        criteria.add(Restrictions.like("question.question", keyword,
View Full Code Here

TOP

Related Classes of org.encuestame.utils.enums.SearchPeriods

Copyright © 2018 www.massapicom. 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.