Interface HvlSessionCloudRestService
- All Known Implementing Classes:
HvlSessionRestController
@HvlPublicFeignRestService
@FeignClient(name="${hvl.oauth.session.service.name:sessionRestService}",
path="${hvl.oauth.session.service.path:/}",
url="${hvl.oauth.session.service.url:${hvl.oauth.session.client.url}}")
@Validated
public interface HvlSessionCloudRestService
A restful service which provides specific methods for session cloud.
-
Method Summary
Modifier and TypeMethodDescriptiontr.com.havelsan.javarch.service.data.HvlResponse
<Void> begin
(@NotNull @Valid tr.com.havelsan.javarch.security.session.provider.model.HvlSecuritySession securitySession) Creates session on security block.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> Close session on security block belong to identifier.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> close
(@NotNull tr.com.havelsan.javarch.session.common.model.HvlSession session) Close session on security block belong to parameter session.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> closeAll()
Close all session on security.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> Close all session on security block belong to username.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> Close all session on security.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> closeAllIdentifiers
(@NotNull List<@NotBlank String> identifierList) Close all session on security block belong to parameter list of identifier.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> closeAllSessions
(@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.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 session on security block belong to parameter list of users.tr.com.havelsan.javarch.service.data.HvlResponse
<Void> closeByUser
(@NotBlank String identifier) Close session on security block belong to identifier.tr.com.havelsan.javarch.service.data.HvlResponse
<Long> Count by current user.tr.com.havelsan.javarch.service.data.HvlResponse
<Boolean> Exist identifier.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 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 session matching the query criteria.
-
Method Details
-
begin
@PostMapping(value="/begin", consumes="application/json", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<Void> begin(@NotNull @Valid @RequestBody @NotNull @Valid tr.com.havelsan.javarch.security.session.provider.model.HvlSecuritySession securitySession) throws tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionException Creates session on security block.- Parameters:
securitySession
- the session- Returns:
- the hvl response
- Throws:
tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionException
- the hvl cloud security session exception
-
close
@PostMapping(value="/close", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<Void> close(@NotBlank @RequestBody @NotBlank String identifier) throws tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionException Close session on security block belong to identifier.- Parameters:
identifier
- the identifier- Returns:
- the hvl response
- Throws:
tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionException
- the hvl cloud security session exception
-
close
@PostMapping(value="/close/session", consumes="application/json", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<Void> close(@NotNull @RequestBody @NotNull tr.com.havelsan.javarch.session.common.model.HvlSession session) throws tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionException Close session on security block belong to parameter session.- Parameters:
session
- the session- Returns:
- the hvl response
- Throws:
tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionException
- the hvl cloud security session exception
-
closeByUser
@PostMapping(value="/close/user", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<Void> closeByUser(@NotBlank @RequestBody @NotBlank String identifier) throws tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionException Close session on security block belong to identifier.- Parameters:
identifier
- the identifier- Returns:
- the hvl response
- Throws:
tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionException
- the hvl cloud security session exception
-
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 session on security.- 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 session on security.- Returns:
- the hvl response
- Throws:
tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionException
- the hvl cloud security session exception
-
closeAll
@GetMapping(value="/close-all/by-username/{username}", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<Void> closeAll(@NotBlank @PathVariable(name="username") @NotBlank String username) throws tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionException Close all session on security block belong to username.- Parameters:
username
- the username- 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 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
-
closeAllIdentifiers
@PostMapping(value="/close-all/identifiers", consumes="application/json", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<Void> closeAllIdentifiers(@NotNull @RequestBody @NotNull List<@NotBlank String> identifierList) throws tr.com.havelsan.javarch.security.session.cloud.provider.exception.HvlCloudSecuritySessionException Close all session on security block belong to parameter list of identifier.- Parameters:
identifierList
- the identifier 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 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
-
exist
@PostMapping(value="/exist", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<Boolean> exist(@NotBlank @RequestBody @NotBlank String identifier) Exist identifier.- Parameters:
identifier
- the identifier- Returns:
- the hvl response
-
countByCurrentUser
@GetMapping(value="/count/by-current-user", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<Long> countByCurrentUser()Count by current user.- Returns:
- the hvl response
-
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 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 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
-