public class LoginAPIImpl extends AbstractLoginApiImpl implements LoginAPI
| Constructor and Description |
|---|
LoginAPIImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkCredentialsAreNotNullOrEmpty(Map<String,Serializable> credentials) |
protected void |
checkThatWeCanLogin(String userName,
org.bonitasoft.engine.platform.model.STenant sTenant,
BonitaHomeServer bonitaHomeServer) |
protected void |
checkUsernameAndPassword(String userName,
String password) |
protected BonitaHomeServer |
getBonitaHomeServerInstance() |
protected org.bonitasoft.engine.platform.model.STenant |
getTenant(Long tenantId,
PlatformServiceAccessor platformServiceAccessor) |
protected TenantServiceAccessor |
getTenantServiceAccessor(long tenantId) |
APISession |
login(Map<String,Serializable> credentials) |
APISession |
login(String userName,
String password) |
protected APISession |
login(String userName,
String password,
Long tenantId) |
protected APISession |
loginInternal(Long tenantId,
Map<String,Serializable> credentials) |
protected APISession |
loginInternal(String userName,
String password,
Long tenantId) |
void |
logout(APISession session) |
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
login in interface LoginAPILoginExceptionprotected 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 © 2015 Bonitasoft S.A.. All rights reserved.