Package com.abavilla.fpi.login.service
Class LoginSvc
java.lang.Object
com.abavilla.fpi.fw.service.AbsSvc<D,E>
com.abavilla.fpi.fw.service.AbsRepoSvc<LoginDto,Session,SessionRepo>
com.abavilla.fpi.login.service.LoginSvc
- All Implemented Interfaces:
com.abavilla.fpi.fw.service.ISvc
@ApplicationScoped
public class LoginSvc
extends com.abavilla.fpi.fw.service.AbsRepoSvc<LoginDto,Session,SessionRepo>
Service layer for creating and managing login sessions.
- Author:
- Vince Villamora
-
Field Summary
Fields inherited from class com.abavilla.fpi.fw.service.AbsRepoSvc
repo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<SessionDto>login(PasswordLoginDto login) Performs login, if existing session is detected, return currently established token.io.smallrye.mutiny.Uni<SessionDto>refreshToken(PasswordLoginDto login) Force to retrieve a new access token from authentication server.Methods inherited from class com.abavilla.fpi.fw.service.AbsSvc
delete, get, getByPage, list, mapToDto, mapToEntity, patch, patchEntityFromDto, save, update
-
Constructor Details
-
LoginSvc
public LoginSvc()
-
-
Method Details
-
login
Performs login, if existing session is detected, return currently established token.- Parameters:
login-LoginDtoObject containing credentials- Returns:
SessionDtoSession information
-
refreshToken
Force to retrieve a new access token from authentication server.- Parameters:
login- Login credentials- Returns:
SessionDtoobject
-