Class AuthSessionController

  • All Implemented Interfaces:
    ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.DisableAuthSessionByDeviceIdEndpoint, ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.DisableAuthSessionByEmailEndpoint, ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.DisableAuthSessionByIdEndpoint, ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.DisableAuthSessionByIpEndpoint, ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.DisableAuthSessionByPhoneNumberEndpoint, ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.DisableAuthSessionByUsernameEndpoint, ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.FindAuthSessionByIdEndpoint, ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.FindAuthSessionsEndpoint, ru.foodtechlab.lib.auth.service.facade.authorizationSession.resources.AuthSessionResource

    @RestController
    @Component
    public class AuthSessionController
    extends Object
    implements ru.foodtechlab.lib.auth.service.facade.authorizationSession.resources.AuthSessionResource
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.rcore.rest.api.commons.response.OkApiResponse disableByDeviceId​(ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.DisableByDeviceIdRequest request)  
      com.rcore.rest.api.commons.response.OkApiResponse disableByEmail​(ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.DisableByEmailRequest request)  
      com.rcore.rest.api.commons.response.OkApiResponse disableById​(String id)  
      com.rcore.rest.api.commons.response.OkApiResponse disableByIp​(ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.DisableByIpRequest request)  
      com.rcore.rest.api.commons.response.OkApiResponse disableByPhoneNumber​(ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.DisableByPhoneRequest request)  
      com.rcore.rest.api.commons.response.OkApiResponse disableByUsername​(ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.DisableByUsernameRequest request)  
      com.rcore.rest.api.commons.response.SuccessApiResponse<com.rcore.rest.api.commons.response.SearchApiResponse<ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.responses.AuthorizationSessionResponse>> find​(ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.SearchAuthorizationSessionsWithFiltersRequest request)  
      com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.responses.AuthorizationSessionResponse> findById​(String id)  
    • Constructor Detail

      • AuthSessionController

        public AuthSessionController()
    • Method Detail

      • disableByDeviceId

        @PostMapping(value="/api/v1/auth-sessions/disable-by-device-id",
                     produces="application/json")
        public com.rcore.rest.api.commons.response.OkApiResponse disableByDeviceId​(@RequestBody
                                                                                   ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.DisableByDeviceIdRequest request)
        Specified by:
        disableByDeviceId in interface ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.DisableAuthSessionByDeviceIdEndpoint
      • disableByEmail

        @PostMapping(value="/api/v1/auth-sessions/disable-by-email",
                     produces="application/json")
        public com.rcore.rest.api.commons.response.OkApiResponse disableByEmail​(@RequestBody
                                                                                ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.DisableByEmailRequest request)
        Specified by:
        disableByEmail in interface ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.DisableAuthSessionByEmailEndpoint
      • disableById

        @PostMapping(value="/api/v1/auth-sessions/{id}/disable",
                     produces="application/json")
        public com.rcore.rest.api.commons.response.OkApiResponse disableById​(@PathVariable
                                                                             String id)
        Specified by:
        disableById in interface ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.DisableAuthSessionByIdEndpoint
      • disableByIp

        @PostMapping(value="/api/v1/auth-sessions/disable-by-ipv4",
                     produces="application/json")
        public com.rcore.rest.api.commons.response.OkApiResponse disableByIp​(@RequestBody
                                                                             ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.DisableByIpRequest request)
        Specified by:
        disableByIp in interface ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.DisableAuthSessionByIpEndpoint
      • disableByPhoneNumber

        @PostMapping(value="/api/v1/auth-sessions/disable-by-phone",
                     produces="application/json")
        public com.rcore.rest.api.commons.response.OkApiResponse disableByPhoneNumber​(@RequestBody
                                                                                      ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.DisableByPhoneRequest request)
        Specified by:
        disableByPhoneNumber in interface ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.DisableAuthSessionByPhoneNumberEndpoint
      • findById

        @GetMapping(value="/api/v1/auth-sessions/{id}",
                    produces="application/json")
        public com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.responses.AuthorizationSessionResponse> findById​(@PathVariable
                                                                                                                                                                                       String id)
        Specified by:
        findById in interface ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.FindAuthSessionByIdEndpoint
      • find

        @GetMapping(value="/api/v1/auth-sessions",
                    produces="application/json")
        public com.rcore.rest.api.commons.response.SuccessApiResponse<com.rcore.rest.api.commons.response.SearchApiResponse<ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.responses.AuthorizationSessionResponse>> find​(@ModelAttribute
                                                                                                                                                                                                                                          ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.SearchAuthorizationSessionsWithFiltersRequest request)
        Specified by:
        find in interface ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.FindAuthSessionsEndpoint
      • disableByUsername

        @PostMapping(value="/api/v1/auth-sessions/disable-by-username",
                     produces="application/json")
        public com.rcore.rest.api.commons.response.OkApiResponse disableByUsername​(ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.DisableByUsernameRequest request)
        Specified by:
        disableByUsername in interface ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.DisableAuthSessionByUsernameEndpoint