Class HvlAuthzSessionRestController
java.lang.Object
tr.com.havelsan.javarch.oauth.authz.starter.module.support.session.controller.HvlAuthzSessionRestController
- All Implemented Interfaces:
HvlAuthzSessionRestService
@RestController
@RequestMapping("${hvl.oauth.authz.service.session.controller-path:/session}")
@HvlActuatorService(name="hvlAuthzSessionRestService",
groupName="hvlAuthz")
public class HvlAuthzSessionRestController
extends Object
implements HvlAuthzSessionRestService
The class in which service endpoints are defined for session operations.
-
Constructor Summary
ConstructorDescriptionHvlAuthzSessionRestController
(HvlAuthzSessionService sessionService) Instantiates a new HvlAuthzSessionRestController. -
Method Summary
Modifier and TypeMethodDescriptiontr.com.havelsan.javarch.service.data.HvlResponse
<HvlOAuthSessionModel> fillWithAuthority
(@NotNull @Valid HvlOAuthProfileAcquiredRolePredicateModel profileAcquiredRolePredicateModel) The method fills session with acquired roles of profile.tr.com.havelsan.javarch.service.data.HvlResponse
<HvlOAuthUserInfoDataModel> getUserInfo
(@NotNull HvlOAuthUserInfoPredicateModel userInfoPredicateModel) Gets current user info.
-
Constructor Details
-
HvlAuthzSessionRestController
Instantiates a new HvlAuthzSessionRestController.- Parameters:
sessionService
- the session service
-
-
Method Details
-
fillWithAuthority
public tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthSessionModel> fillWithAuthority(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthProfileAcquiredRolePredicateModel profileAcquiredRolePredicateModel) throws HvlAuthzSessionServiceException The method fills session with acquired roles of profile.- Specified by:
fillWithAuthority
in interfaceHvlAuthzSessionRestService
- Parameters:
profileAcquiredRolePredicateModel
- the profile acquired role predicate model- Returns:
- the hvl response
- Throws:
HvlAuthzSessionServiceException
- the hvl session service exception
-
getUserInfo
public tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthUserInfoDataModel> getUserInfo(@NotNull @NotNull HvlOAuthUserInfoPredicateModel userInfoPredicateModel) Gets current user info.- Specified by:
getUserInfo
in interfaceHvlAuthzSessionRestService
- Parameters:
userInfoPredicateModel
- the user info predicate model- Returns:
- the hvl response
-