Interface HvlAuthzAuthorityOperationRestService
- All Known Implementing Classes:
HvlAuthzAuthorityRestController
@Validated
@HvlPrivateFeignRestService
@FeignClient(name="authorityPrivateRestService",
path="${hvl.oauth.authz.service.authority.path:/authorities}",
url="${hvl.oauth.authz.service.authority.url:${hvl.oauth.authz.service.url}}")
public interface HvlAuthzAuthorityOperationRestService
A restful service which provides specific operational methods for authority.
-
Method Summary
Modifier and TypeMethodDescriptiontr.com.havelsan.javarch.service.data.HvlResponse
<Void> deleteByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Delete authority by uuid.tr.com.havelsan.javarch.service.data.HvlResponse
<HvlOAuthAuthorityModel> save
(@NotNull @Valid HvlOAuthAuthorityModel authorityModel) Saves authority.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> update
(@NotNull @Valid HvlOAuthAuthorityModel authorityModel) Update hvl response.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> updateProfileGroups
(@NotNull @Valid HvlOAuthAuthorityProfileGroupPersistModel authAuthorityProfileGroupPersistModel) Update profile groups hvl response.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> updateTags
(@NotNull @Valid HvlOAuthAuthorityTagPersistModel authorityTagPersistModel) Update tag to authority.
-
Method Details
-
save
@PostMapping(consumes="application/json", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthAuthorityModel> save(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthAuthorityModel authorityModel) Saves authority.- Parameters:
authorityModel
- the authority model- Returns:
- the hvl response
-
update
@Validated(tr.com.havelsan.javarch.data.commons.validation.HvlConstraintGroups.ModifyingOperation.class) @PutMapping(consumes="application/json", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<Void> update(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthAuthorityModel authorityModel) Update hvl response.- Parameters:
authorityModel
- the authority model- Returns:
- the hvl response
-
deleteByUuid
@DeleteMapping(path="/by-uuid/{uuid}", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<Void> deleteByUuid(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid) Delete authority by uuid.- Parameters:
uuid
- the uuid- Returns:
- hvl response
-
updateTags
@PutMapping(path="/tags", consumes="application/json", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<Void> updateTags(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthAuthorityTagPersistModel authorityTagPersistModel) Update tag to authority.- Parameters:
authorityTagPersistModel
- the authority tag persist model- Returns:
- the hvl response
-
updateProfileGroups
@PutMapping(path="/profile-groups", consumes="application/json", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<Void> updateProfileGroups(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthAuthorityProfileGroupPersistModel authAuthorityProfileGroupPersistModel) Update profile groups hvl response.- Parameters:
authAuthorityProfileGroupPersistModel
- the auth authority profile group persist model- Returns:
- the hvl response
-