Examples of validatePostsPerPage()


Examples of net.pterodactylus.sone.core.Preferences.validatePostsPerPage()

        fieldErrors.add("insertion-delay");
      } else {
        preferences.setInsertionDelay(insertionDelay);
      }
      Integer postsPerPage = Numbers.safeParseInteger(request.getHttpRequest().getPartAsStringFailsafe("posts-per-page", 4), null);
      if (!preferences.validatePostsPerPage(postsPerPage)) {
        fieldErrors.add("posts-per-page");
      } else {
        preferences.setPostsPerPage(postsPerPage);
      }
      Integer imagesPerPage = Numbers.safeParseInteger(request.getHttpRequest().getPartAsStringFailsafe("images-per-page", 4), null);
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.