Class PlatformLoginServiceImpl
- java.lang.Object
-
- org.bonitasoft.engine.core.platform.login.impl.PlatformLoginServiceImpl
-
- All Implemented Interfaces:
PlatformLoginService
public class PlatformLoginServiceImpl extends java.lang.Object implements PlatformLoginService
- Author:
- Elias Ricken de Medeiros, Feng Hui, Matthieu Chaffotte
-
-
Constructor Summary
Constructors Constructor Description PlatformLoginServiceImpl(PlatformAuthenticationService platformAuthenticationService, PlatformSessionService platformSessionService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisValid(long sessionId)Verify if a session is validSPlatformSessionlogin(java.lang.String userName, java.lang.String password)login to the platform by userName and passwordvoidlogout(long sessionId)logout the platform by sessionId
-
-
-
Constructor Detail
-
PlatformLoginServiceImpl
public PlatformLoginServiceImpl(PlatformAuthenticationService platformAuthenticationService, PlatformSessionService platformSessionService)
-
-
Method Detail
-
login
public SPlatformSession login(java.lang.String userName, java.lang.String password) throws SPlatformLoginException, SInvalidPlatformCredentialsException
Description copied from interface:PlatformLoginServicelogin to the platform by userName and password- Specified by:
loginin interfacePlatformLoginService- Parameters:
userName- name of userpassword- password of user- Returns:
- an SPlatformSession object
- Throws:
SPlatformLoginExceptionSInvalidPlatformCredentialsException- See Also:
SPlatformSession
-
logout
public void logout(long sessionId) throws SSessionNotFoundExceptionDescription copied from interface:PlatformLoginServicelogout the platform by sessionId- Specified by:
logoutin interfacePlatformLoginService- Parameters:
sessionId- identifier of platform session- Throws:
SSessionNotFoundException
-
isValid
public boolean isValid(long sessionId)
Description copied from interface:PlatformLoginServiceVerify if a session is valid- Specified by:
isValidin interfacePlatformLoginService- Parameters:
sessionId- identifier of platform session- Returns:
- true if session is valid, false otherwise.
-
-