Package org.encuestame.persistence.exception

Examples of org.encuestame.persistence.exception.EnMeSearchException


            maxResults = this.MAX_RESULTS;
        }
        log.debug("Max Results " + maxResults);
        final List<Survey> items = new ArrayList<Survey>();
        if (period == null) {
            throw new EnMeSearchException("search params required.");
        } else {
            final SearchPeriods periodSelected = SearchPeriods
                    .getPeriodString(period);
            if (periodSelected.equals(SearchPeriods.TWENTYFOURHOURS)) {
                items.addAll(getFrontEndDao().getSurveyFrontEndLast24(start,
View Full Code Here


        log.debug("searchItemsByPoll maxResults " + maxResults);
        //avoid null values
        maxResults = maxResults == null ? this.MAX_RESULTS : maxResults;
        final List<Poll> items = new ArrayList<Poll>();
        if (period == null) {
            throw new EnMeSearchException("search params required");
        } else {
            final SearchPeriods periodSelected = SearchPeriods
                    .getPeriodString(period);
            if (periodSelected.equals(SearchPeriods.TWENTYFOURHOURS)) {
                items.addAll(getFrontEndDao().getPollFrontEndLast24(start,
View Full Code Here

        totalBy = getTotalPollPublished(user, status);
      } else if (typeSearch.equals(TypeSearchResult.SURVEY)){
        // TODO: Create method to retrieve survey by user
        totalBy = 1L;
      } else {
        throw new EnMeSearchException("Type search parameter not valid: ");
      }
      return totalBy;
    }
View Full Code Here

TOP

Related Classes of org.encuestame.persistence.exception.EnMeSearchException

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.