Class ProfileHelperController
- java.lang.Object
-
- org.craftercms.social.controllers.rest.v3.comments.ProfileHelperController
-
@Controller @RequestMapping("/api/3/profile") public class ProfileHelperController extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
AVATAR
protected org.craftercms.profile.api.services.ProfileService
profileService
-
Constructor Summary
Constructors Constructor Description ProfileHelperController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getProfileAvatar(javax.servlet.http.HttpServletResponse response, String profileId, javax.servlet.http.HttpServletRequest request)
org.craftercms.profile.api.Profile
getProfileAvatar(org.springframework.web.multipart.MultipartHttpServletRequest request, javax.servlet.http.HttpServletResponse response, String profileId)
-
-
-
Field Detail
-
AVATAR
public static final String AVATAR
- See Also:
- Constant Field Values
-
profileService
@Autowired protected org.craftercms.profile.api.services.ProfileService profileService
-
-
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
-
-