Package sino.entities

Examples of sino.entities.PostType


    public ModelAndView viewPosts(@PathVariable("type") String type,
            @RequestParam(value = "page", required = false, defaultValue = "0") int pageNumber,
            HttpServletRequest httpServletRequest) throws PostServiceException {
        ParamUtility.checkNotNegative(null, pageNumber, "pageNumber");

        PostType postType = PostType.fromName(type);

        ModelAndView mov = new ModelAndView(postType == PostType.ACHIEVEMENTS ? this.viewAchievementsView
                : this.viewNewsView);
        mov.addObject("posts", getPostService().getAllPostsSortByDate(postType, pageNumber,
                postType == PostType.ACHIEVEMENTS ? this.achievementsSize : this.newsSize));
View Full Code Here


    public ModelAndView viewPosts(@PathVariable("type") String type,
            @RequestParam(value = "page", required = false, defaultValue = "0") int pageNumber)
            throws PostServiceException {
        ParamUtility.checkNotNegative(null, pageNumber, "pageNumber");

        PostType postType = PostType.fromName(type);

        ModelAndView mov = new ModelAndView(postType == PostType.ACHIEVEMENTS ? this.viewAchievementsView
                : this.viewNewsView);
        mov.addObject("posts", getPostService().getAllPostsSortByDate(postType, pageNumber,
                postType == PostType.ACHIEVEMENTS ? this.achievementsSize : this.newsSize));
View Full Code Here

TOP

Related Classes of sino.entities.PostType

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.