Class ProfileController


  • @Controller
    @RequestMapping("/profile")
    public class ProfileController
    extends Object
    MVC Controller for profile.
    Author:
    avasquez
    • Constructor Detail

      • ProfileController

        public ProfileController()
    • Method Detail

      • setProfileService

        public void setProfileService​(org.craftercms.profile.api.services.ProfileService profileService)
      • getProfileCount

        @RequestMapping(value="/count",
                        method=GET)
        @ResponseBody
        public long getProfileCount​(@RequestParam(value="tenantName",required=false)
                                    String tenantName,
                                    @RequestParam(value="query",required=false)
                                    String query,
                                    javax.servlet.http.HttpServletRequest request)
                             throws org.craftercms.profile.api.exceptions.ProfileException
        Throws:
        org.craftercms.profile.api.exceptions.ProfileException
      • getProfileList

        @RequestMapping(value="/find",
                        method=GET)
        @ResponseBody
        public List<org.craftercms.profile.api.Profile> getProfileList​(@RequestParam(value="tenantName",required=false)
                                                                       String tenantName,
                                                                       @RequestParam(value="query",required=false)
                                                                       String query,
                                                                       @RequestParam(value="sortBy",required=false)
                                                                       String sortBy,
                                                                       @RequestParam(value="sortOrder",required=false)
                                                                       org.craftercms.profile.api.SortOrder sortOrder,
                                                                       @RequestParam(value="start",required=false)
                                                                       Integer start,
                                                                       @RequestParam(value="count",required=false)
                                                                       Integer limit,
                                                                       javax.servlet.http.HttpServletRequest request)
                                                                throws org.craftercms.profile.api.exceptions.ProfileException
        Throws:
        org.craftercms.profile.api.exceptions.ProfileException
      • getProfile

        @RequestMapping(value="/{id}",
                        method=GET)
        @ResponseBody
        public org.craftercms.profile.api.Profile getProfile​(@PathVariable("id")
                                                             String id)
                                                      throws org.craftercms.profile.api.exceptions.ProfileException
        Throws:
        org.craftercms.profile.api.exceptions.ProfileException