Interface HvlSystemSessionCloudRestService
- All Known Implementing Classes:
HvlSystemSessionRestController
@HvlPublicFeignRestService
@FeignClient(name="${hvl.oauth.system.session.service.name:systemSessionRestService}",
path="${hvl.oauth.system.session.service.path:/system-session}",
url="${hvl.oauth.system.session.service.url:${hvl.oauth.system.session.client.url}}")
@Validated
public interface HvlSystemSessionCloudRestService
A restful service which provides specific methods for system session cloud.
-
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.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.
-
Method Details
-
closeAll
@GetMapping(value="/close-all", produces="application/json") 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.- Returns:
- the hvl response
- Throws:
tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionException
- the hvl cloud security session exception
-
closeAllUsers
@PostMapping(value="/close-all/users", consumes="application/json", produces="application/json") 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.- 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
@PostMapping(value="/close-all/sessions", consumes="application/json", produces="application/json") 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.- 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
@PostMapping(value="/close-all/sessions/user", consumes="application/json", produces="application/json") 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.- 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
-
closeAllByUser
@GetMapping(value="/close-all/user", produces="application/json") 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.- Returns:
- the hvl response
- Throws:
tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionException
- the hvl cloud security session exception
-
queryPage
@PostMapping(value="/page", consumes="application/json", produces="application/json") 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.- 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
@PostMapping(value="/page/user", consumes="application/json", produces="application/json") 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.- 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
-