Package overit.geocall.base.rs2.usertype
Class UserTypeServiceV2
java.lang.Object
overit.geocall.base.rs2.usertype.UserTypeServiceV2
@RestController
@RequestMapping("/configurations/identity/r1/user-types")
@Validated
public class UserTypeServiceV2
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateUserType(@Valid NewUserType userType) getGrants(long id) getResourceAuthorizationPolicy(long id) getUserType(long id, Collection<String> fields) getUserTypes(@NotNull @Valid Page page, String order, Collection<String> fields, Collection<Long> ids, @Valid UserTypeFilter filter) org.springframework.http.ResponseEntity<Void> org.springframework.http.ResponseEntity<Void> putResourceAuthPolicy(long id, String policy) updateUserType(long id, @Valid UserType userType)
-
Constructor Details
-
UserTypeServiceV2
-
-
Method Details
-
getUserTypes
@GetMapping(produces="application/json") public PageResponse<UserTypeResponse> getUserTypes(@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 UserTypeFilter filter) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
createUserType
@PostMapping(consumes="application/json") @Valid public @Valid org.springframework.http.ResponseEntity<overit.geocall.rs.common.ResourceId<Long>> createUserType(@Valid @RequestBody @Valid NewUserType userType) throws DAValidateException - Throws:
DAValidateException
-
getUserType
@GetMapping(path="{id}", produces="application/json") public UserTypeResponse getUserType(@PathVariable("id") long id, @RequestParam(value="_fields",required=false,defaultValue="") Collection<String> fields) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
updateUserType
@PatchMapping(path="{id}", consumes="application/json") @Valid public @Valid org.springframework.http.ResponseEntity<Void> updateUserType(@PathVariable("id") long id, @Valid @RequestBody @Valid UserType userType) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
putGrants
@PutMapping(path="{id}/grants", consumes="application/json") public org.springframework.http.ResponseEntity<Void> putGrants(@PathVariable("id") long id, @NotNull @RequestBody @NotNull Set<@NotEmpty String> grants) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
getGrants
@GetMapping(path="{id}/grants", produces="application/json") public Set<String> getGrants(@PathVariable("id") long id) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
putResourceAuthPolicy
@PutMapping(path="{id}/api-authorization-policies", consumes="text/plain") public org.springframework.http.ResponseEntity<Void> putResourceAuthPolicy(@PathVariable("id") long id, @RequestBody String policy) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
getResourceAuthorizationPolicy
@GetMapping(path="{id}/api-authorization-policies", produces="text/plain") public String getResourceAuthorizationPolicy(@PathVariable("id") long id) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-