Package org.encuestame.utils.enums

Examples of org.encuestame.utils.enums.Status


            @RequestParam(value = "type", required = false) String type,
            HttpServletRequest request,
            HttpServletResponse response) throws JsonGenerationException,
            JsonMappingException, IOException {
            final String ip = EnMeUtils.getIP(request, EnMePlaceHolderConfigurer.getBooleanProperty("application.proxyPass"));
            final Status status = getFrontService().registerVote(id, TypeSearchResult.getTypeSearchResult(type), ip);
            if (status.equals(Status.SUCCESS)) {
                setSuccesResponse();
            } else {
                setFailedResponse();
            }
            return returnData();
View Full Code Here


            final TypeSearchResult searchResult,
             final String ipAddress) {

        //FIXME: need a restrictions to avoid repeated votes

        Status status = Status.SUCCESS;
        final Long INCREASE_VOTES = 1L;
        final String userVote = getUserPrincipalUsername();
        log.debug("registerVote: "+userVote);
        final Hit hit = new Hit();
        hit.setHitCategory(HitCategory.VOTE);
View Full Code Here

   * Remove scheduled items.
   */
  public void remove(){
    // 1. Remove all scheduled with status published and counter attempts equals CONSTANT
    //final String attemptProperty = EnMePlaceHolderConfigurer.getProperty("");
    final Status status = Status.SUCCESS;
    final List<Schedule> removeList = getScheduled()
        .retrieveFailedScheduledItems(5, status);
    if (removeList.size() > 0){
      getTpollService().removeScheduledItems(status, 5);
    }
View Full Code Here

TOP

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

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.