public class LoginAPIImpl extends AbstractLoginApiImpl implements LoginAPI
| Constructor and Description |
|---|
LoginAPIImpl() |
putPlatformInCacheIfNecessarypublic APISession login(String userName, String password) throws LoginException
login in interface LoginAPILoginExceptionprotected APISession login(String userName, String password, Long tenantId) throws LoginException
LoginExceptionpublic APISession login(Map<String,Serializable> credentials) throws LoginException, UnknownUserException
login in interface LoginAPILoginExceptionUnknownUserExceptionprotected APISession loginInternal(String userName, String password, Long tenantId) throws Exception
Exceptionprotected APISession loginInternal(Long tenantId, Map<String,Serializable> credentials) throws Exception
Exceptionprotected org.bonitasoft.engine.platform.model.STenant getTenant(Long tenantId, PlatformServiceAccessor platformServiceAccessor) throws org.bonitasoft.engine.commons.exceptions.SBonitaException
org.bonitasoft.engine.commons.exceptions.SBonitaExceptionprotected void checkUsernameAndPassword(String userName, String password) throws LoginException
LoginExceptionprotected void checkCredentialsAreNotNullOrEmpty(Map<String,Serializable> credentials) throws LoginException
LoginExceptionprotected void checkThatWeCanLogin(String userName, org.bonitasoft.engine.platform.model.STenant sTenant, BonitaHomeServer bonitaHomeServer) throws LoginException
LoginExceptionprotected BonitaHomeServer getBonitaHomeServerInstance()
protected TenantServiceAccessor getTenantServiceAccessor(long tenantId)
public void logout(APISession session) throws LogoutException, SessionNotFoundException
logout in interface LoginAPILogoutExceptionSessionNotFoundExceptionCopyright © 2017 Bonitasoft S.A.. All rights reserved.