Package overit.geocall.base.rs2.profile
Class UserProfileService
java.lang.Object
overit.geocall.base.rs2.profile.UserProfileService
@RestController
@RequestMapping("/configurations/identity/r1/user-profiles")
@Validated
public class UserProfileService
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionUserProfileService(M2Mapper mapper, UserProfileHandlerService userProfileHandlerService) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<overit.geocall.rs.common.ResourceId<Long>> createProfile(UserProfile userProfile) getProfile(long profileId, Collection<String> fields) getProfiles(@NotNull @Valid Page page, String order, Collection<String> fields, Collection<Long> ids, @Valid UserProfile filter) getProfileState(long profileId) org.springframework.http.ResponseEntity<Void> updateProfile(long profileId, @Valid UserProfile userProfile) org.springframework.http.ResponseEntity<Void> updateProfileState(long profileId, String json)
-
Constructor Details
-
UserProfileService
-
-
Method Details
-
getProfiles
@GetMapping(produces="application/json") public PageResponse<UserProfileResponse> getProfiles(@RequestParam("_page") @NotNull @Valid @NotNull @Valid Page page, @RequestParam(value="_order",required=false,defaultValue="") String order, @RequestParam(value="_fields",required=false,defaultValue="") Collection<String> fields, @RequestParam(value="ids",required=false,defaultValue="") Collection<Long> ids, @Valid @Valid UserProfile filter) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
createProfile
@PostMapping(consumes="application/json") public org.springframework.http.ResponseEntity<overit.geocall.rs.common.ResourceId<Long>> createProfile(@RequestBody UserProfile userProfile) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getProfile
@GetMapping(path="/{profileId}", produces="application/json") public UserProfileResponse getProfile(@PathVariable("profileId") long profileId, @RequestParam(value="_fields",required=false,defaultValue="") Collection<String> fields) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
updateProfile
@PatchMapping(path="/{profileId}", consumes="application/json") public org.springframework.http.ResponseEntity<Void> updateProfile(@PathVariable("profileId") long profileId, @Valid @RequestBody @Valid UserProfile userProfile) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
getProfileState
@GetMapping(path="{profileId}/content", produces="application/json") public String getProfileState(@PathVariable("profileId") long profileId) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
updateProfileState
@PutMapping(path="{profileId}/content", consumes="application/json") public org.springframework.http.ResponseEntity<Void> updateProfileState(@PathVariable("profileId") long profileId, @RequestBody(required=false) String json) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-