Class ProfileHelperController


  • @Controller
    @RequestMapping("/api/3/profile")
    public class ProfileHelperController
    extends Object
    • Field Detail

      • profileService

        @Autowired
        protected org.craftercms.profile.api.services.ProfileService profileService
    • Constructor Detail

      • ProfileHelperController

        public ProfileHelperController()
    • Method Detail

      • getProfileAvatar

        @RequestMapping(value="/avatar/{profileId}",
                        method=POST)
        @ResponseBody
        public org.craftercms.profile.api.Profile getProfileAvatar​(org.springframework.web.multipart.MultipartHttpServletRequest request,
                                                                   javax.servlet.http.HttpServletResponse response,
                                                                   @PathVariable("profileId")
                                                                   String profileId)
                                                            throws IOException,
                                                                   org.craftercms.profile.api.exceptions.ProfileException
        Throws:
        IOException
        org.craftercms.profile.api.exceptions.ProfileException
      • getProfileAvatar

        @RequestMapping(value="/avatar/{profileId}",
                        method=GET)
        public void getProfileAvatar​(javax.servlet.http.HttpServletResponse response,
                                     @PathVariable("profileId")
                                     String profileId,
                                     javax.servlet.http.HttpServletRequest request)
                              throws IOException,
                                     SocialException
        Throws:
        IOException
        SocialException