Class HvlSystemSessionRestController
java.lang.Object
tr.com.havelsan.javarch.oauth.session.server.controller.HvlSystemSessionRestController
- All Implemented Interfaces:
HvlSystemSessionCloudRestService
,tr.com.havelsan.javarch.security.session.cloud.provider.HvlCloudSecuritySessionProviderRestService
@RestController
@RequestMapping("${hvl.oauth.system-session.service.controller-path:/system-session}")
@HvlActuatorService(name="hvlSystemSessionRestService",
groupName="hvlSystemSession")
public class HvlSystemSessionRestController
extends Object
implements HvlSystemSessionCloudRestService, tr.com.havelsan.javarch.security.session.cloud.provider.HvlCloudSecuritySessionProviderRestService
The class in which service endpoints are defined for session operations for system users.
-
Constructor Summary
ConstructorDescriptionHvlSystemSessionRestController
(HvlSystemSessionService systemSessionService) Instantiates a new HvlSystemSessionRestController. -
Method Summary
Modifier and TypeMethodDescriptiontr.com.havelsan.javarch.service.data.HvlResponse
<Void> closeAll()
Close all system session on security.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> Close all system session on security by user.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> closeAllSessions
(@NotNull List<@NotNull tr.com.havelsan.javarch.session.common.model.HvlSession> sessionList) Close all system session on security block belong to parameter list of sessions' identifier.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> closeAllSessionsByUser
(@NotNull List<@NotNull tr.com.havelsan.javarch.session.common.model.HvlSession> sessionList) Close all session on security block belong to parameter list of sessions' identifier with controlling current user.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> closeAllUsers
(@NotNull List<@NotBlank String> usernameList) Close all system session on security block belong to parameter list of users.tr.com.havelsan.javarch.service.data.HvlResponse
<tr.com.havelsan.javarch.security.session.provider.model.HvlSecuritySession> get()
tr.com.havelsan.javarch.service.data.HvlResponse
<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<tr.com.havelsan.javarch.session.common.model.HvlSession>> queryPage
(@NotNull HvlSessionQueryModel sessionQueryModel) Returns a page of system session matching the query criteria.tr.com.havelsan.javarch.service.data.HvlResponse
<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<tr.com.havelsan.javarch.session.common.model.HvlSession>> queryPageByUser
(@NotNull HvlSessionQueryModel sessionQueryModel) Returns a page of system session matching the query criteria.
-
Constructor Details
-
HvlSystemSessionRestController
Instantiates a new HvlSystemSessionRestController.- Parameters:
systemSessionService
- the system session service
-
-
Method Details
-
closeAll
@PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> closeAll() throws tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionExceptionClose all system session on security.- Specified by:
closeAll
in interfaceHvlSystemSessionCloudRestService
- Returns:
- the hvl response
- Throws:
tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionException
- the hvl cloud security session exception
-
closeAllByUser
public tr.com.havelsan.javarch.service.data.HvlResponse<Void> closeAllByUser() throws tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionExceptionClose all system session on security by user.- Specified by:
closeAllByUser
in interfaceHvlSystemSessionCloudRestService
- Returns:
- the hvl response
- Throws:
tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionException
- the hvl cloud security session exception
-
closeAllUsers
@PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> closeAllUsers(@NotNull @RequestBody @NotNull List<@NotBlank String> usernameList) throws tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionException Close all system session on security block belong to parameter list of users.- Specified by:
closeAllUsers
in interfaceHvlSystemSessionCloudRestService
- Parameters:
usernameList
- the username list- Returns:
- the hvl response
- Throws:
tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionException
- the hvl cloud security session exception
-
closeAllSessions
@PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> closeAllSessions(@NotNull @RequestBody @NotNull List<@NotNull tr.com.havelsan.javarch.session.common.model.HvlSession> sessionList) throws tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionException Close all system session on security block belong to parameter list of sessions' identifier.- Specified by:
closeAllSessions
in interfaceHvlSystemSessionCloudRestService
- Parameters:
sessionList
- the session list- Returns:
- the hvl response
- Throws:
tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionException
- the hvl cloud security session exception
-
closeAllSessionsByUser
public tr.com.havelsan.javarch.service.data.HvlResponse<Void> closeAllSessionsByUser(@NotNull @RequestBody @NotNull List<@NotNull tr.com.havelsan.javarch.session.common.model.HvlSession> sessionList) throws tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionException Close all session on security block belong to parameter list of sessions' identifier with controlling current user.- Specified by:
closeAllSessionsByUser
in interfaceHvlSystemSessionCloudRestService
- Parameters:
sessionList
- the session list- Returns:
- the hvl response
- Throws:
tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionException
- the hvl cloud security session exception
-
queryPage
@PreAuthorize("hasAuthority(\'keysis\')") public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<tr.com.havelsan.javarch.session.common.model.HvlSession>> queryPage(@NotNull @RequestBody @NotNull HvlSessionQueryModel sessionQueryModel) throws tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionException Returns a page of system session matching the query criteria.- Specified by:
queryPage
in interfaceHvlSystemSessionCloudRestService
- Parameters:
sessionQueryModel
- the session query model- Returns:
- the hvl response
- Throws:
tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionException
- the hvl cloud security session exception
-
queryPageByUser
public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<tr.com.havelsan.javarch.session.common.model.HvlSession>> queryPageByUser(@NotNull @RequestBody @NotNull HvlSessionQueryModel sessionQueryModel) throws tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionException Returns a page of system session matching the query criteria.- Specified by:
queryPageByUser
in interfaceHvlSystemSessionCloudRestService
- Parameters:
sessionQueryModel
- the session query model- Returns:
- the hvl response
- Throws:
tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionException
- the hvl cloud security session exception
-
get
public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.security.session.provider.model.HvlSecuritySession> get() throws tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionException- Specified by:
get
in interfacetr.com.havelsan.javarch.security.session.cloud.provider.HvlCloudSecuritySessionProviderRestService
- Throws:
tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionException
-