Examples of EnMeSearchException


Examples of org.encuestame.persistence.exception.EnMeSearchException

                        periodValue);
                log.debug("Items by geo location " + itemsByLocation.size());
                jsonResponse.put("itemsByGeo", itemsByLocation);
            } else if (searchType.equals(TypeSearchResult.HASHTAG)) {
                if (tagName == null) {
                    throw new EnMeSearchException("search params required.");
                } else {

                    itemsByLocation = getLocationService()
                            .retreiveHashTagUsebyGeoLo(range, maxItem,
                                    typeValue, longitude, latitude, tagName,
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeSearchException

            HttpServletRequest request,
            HttpServletResponse response) throws JsonGenerationException, JsonMappingException, IOException {
            try {
                final Map<String, Object> jsonResponse = new HashMap<String, Object>();
                if (period == null ) {
                    throw new EnMeSearchException("search params required.");
                } else {
                    final  List<HomeBean> itemList = getFrontService().getFrontEndItems(period, start, maxResults, request);
                    jsonResponse.put("frontendItems", itemList);
                    setItemResponse(jsonResponse);
                   }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeSearchException

        HttpServletRequest request,
        HttpServletResponse response) throws JsonGenerationException, JsonMappingException, IOException {
        try {
            final Map<String, Object> jsonResponse = new HashMap<String, Object>();
            if (status == null ){
                throw new EnMeSearchException("search params required.");
            } else {
                List<ProfileRatedTopBean> itemList = getFrontService().getTopRatedProfile(status);
                if (start != null && end != null && start < end) {
                    if (end <= itemList.size()) {
                        itemList = itemList.subList(start, end);
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeSearchException

            throws EnMeSearchException {
        List<HashTagDetailStats> tagDetailStatsBySocial = new ArrayList<HashTagDetailStats>();
        List<ItemStatDetail> tpSocialSavePublishedDetail = new ArrayList<ItemStatDetail>();
        List<TweetPollSavedPublishedStatus> tpSavedPublished = new ArrayList<TweetPollSavedPublishedStatus>();
        if (period == null) {
            throw new EnMeSearchException("search params required.");
        } else {
            final List<TweetPoll> tpolls = getTweetPollsByHashTag(tagName, null, null, TypeSearchResult.HASHTAG,
                    period);
            for (TweetPoll tweetPoll : tpolls) {
                tpSavedPublished = getTweetPollDao()
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeSearchException

            final HttpServletRequest request) throws EnMeSearchException {
        List<HashTagDetailStats> tagDetailStatsBySocial = new ArrayList<HashTagDetailStats>();
        List<ItemStatDetail> tpSocialSavePublishedDetail = new ArrayList<ItemStatDetail>();
        List<TweetPollSavedPublishedStatus> tpSavedPublished = new ArrayList<TweetPollSavedPublishedStatus>();
        if (period == null) {
            throw new EnMeSearchException("search params required.");
        } else {
            // Retrieve all tweetpolls by period
            final List<TweetPoll> tpolls = getTweetPollsByHashTag(tagName,
                    null, null, TypeSearchResult.HASHTAG, period);
            for (TweetPoll tweetPoll : tpolls) {
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeSearchException

        List<ItemStatDetail> tpResultsBean = new ArrayList<ItemStatDetail>();
        List<TweetPollResult> tpollResults = new ArrayList<TweetPollResult>();
        List<TweetPollSwitch> tpollsSwitch = new ArrayList<TweetPollSwitch>();
        List<HashTagDetailStats> tagDetailStatsByVotes = new ArrayList<HashTagDetailStats>();
        if (period == null) {
            throw new EnMeSearchException("search params required.");
        } else {

            final List<TweetPoll> tpolls = getTweetPollsByHashTag(tagName, null, null, TypeSearchResult.HASHTAG, period);
            log.debug("Total Tweetpolls by hashtagName" + tpolls.size());
            for (TweetPoll tweetPoll : tpolls) {
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeSearchException

        List<ItemStatDetail> tpResultsBean = new ArrayList<ItemStatDetail>();
        List<TweetPollResult> tpollResults = new ArrayList<TweetPollResult>();
        List<TweetPollSwitch> tpollsSwitch = new ArrayList<TweetPollSwitch>();
        List<HashTagDetailStats> tagDetailStatsByVotes = new ArrayList<HashTagDetailStats>();
        if (period == null) {
            throw new EnMeSearchException("search params required.");
        } else {

            final List<TweetPoll> tpolls = getTweetPollsByHashTag(tagName, null, null, TypeSearchResult.HASHTAG, period);
            log.debug("Total Tweetpolls by hashtagName" + tpolls.size());
            for (TweetPoll tweetPoll : tpolls) {
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeSearchException

            throws EnMeSearchException, EnMeNoResultsFoundException {
        List<HashTagListGraphData> tagDetailStatsBySocial = new ArrayList<HashTagListGraphData>();
        List<ItemStatDetail> tpSocialSavePublishedDetail = new ArrayList<ItemStatDetail>();
        List<TweetPollSavedPublishedStatus> tpSavedPublished = new ArrayList<TweetPollSavedPublishedStatus>();
        if (period == null) {
            throw new EnMeSearchException("search params required.");
        } else {
            final List<TweetPoll> tpolls = getTweetPollsByHashTag(tagName, null, null, TypeSearchResult.HASHTAG, period);
            for (TweetPoll tweetPoll : tpolls) {
                final ItemStatDetail statDetail = new ItemStatDetail();
                tpSavedPublished = getTweetPollDao().getSocialLinksByTypeAndDateRange(tweetPoll, null, null, TypeSearchResult.TWEETPOLL);
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeSearchException

        List<ItemStatDetail> tpResultsBean = new ArrayList<ItemStatDetail>();
        List<TweetPollResult> tpollResults = new ArrayList<TweetPollResult>();
        List<TweetPollSwitch> tpollsSwitch = new ArrayList<TweetPollSwitch>();
        List<HashTagListGraphData> tagDetailStatsByVotes = new ArrayList<HashTagListGraphData>();
        if (period == null) {
            throw new EnMeSearchException("search params required.");
        } else {

            final List<TweetPoll> tpolls = getTweetPollsByHashTag(tagName, null, null, TypeSearchResult.HASHTAG, period);
            log.debug("Total Tweetpolls by hashtagName" + tpolls.size());
            for (TweetPoll tweetPoll : tpolls) {
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeSearchException

        }
        log.debug("Max Results: " + maxResults);
        log.debug("Period Results: " + period);
        final List<TweetPoll> items = new ArrayList<TweetPoll>();
        if (period == null) {
            throw new EnMeSearchException("search params required.");
        } else {
            final SearchPeriods periodSelected = SearchPeriods
                    .getPeriodString(period);
            if (periodSelected.equals(SearchPeriods.TWENTYFOURHOURS)) {
                items.addAll(getFrontEndDao().getTweetPollFrontEndLast24(start,
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.