Class ProfileHelperController
java.lang.Object
org.craftercms.social.controllers.rest.v3.comments.ProfileHelperController
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected org.craftercms.profile.api.services.ProfileService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetProfileAvatar(javax.servlet.http.HttpServletResponse response, String profileId, javax.servlet.http.HttpServletRequest request) org.craftercms.profile.api.ProfilegetProfileAvatar(org.springframework.web.multipart.MultipartHttpServletRequest request, javax.servlet.http.HttpServletResponse response, String profileId)
-
Field Details
-
AVATAR
- See Also:
-
profileService
@Autowired protected org.craftercms.profile.api.services.ProfileService profileService
-
-
Constructor Details
-
ProfileHelperController
public ProfileHelperController()
-
-
Method Details
-
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:
IOExceptionorg.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:
IOExceptionSocialException
-