public class LoginAPIImpl extends AbstractLoginApiImpl implements org.bonitasoft.engine.api.LoginAPI
| Constructor and Description |
|---|
LoginAPIImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkCredentialsAreNotNullOrEmpty(java.util.Map<java.lang.String,java.io.Serializable> credentials) |
protected void |
checkThatWeCanLogin(java.lang.String userName,
STenant sTenant,
TechnicalUser technicalUser) |
protected void |
checkUsernameAndPassword(java.lang.String userName,
java.lang.String password) |
protected STenant |
getTenant(java.lang.Long tenantId,
PlatformServiceAccessor platformServiceAccessor) |
protected TenantServiceAccessor |
getTenantServiceAccessor(long tenantId) |
org.bonitasoft.engine.session.APISession |
login(java.util.Map<java.lang.String,java.io.Serializable> credentials) |
org.bonitasoft.engine.session.APISession |
login(java.lang.String userName,
java.lang.String password) |
protected org.bonitasoft.engine.session.APISession |
login(java.lang.String userName,
java.lang.String password,
java.lang.Long tenantId) |
protected org.bonitasoft.engine.session.APISession |
loginInternal(java.lang.Long tenantId,
java.util.Map<java.lang.String,java.io.Serializable> credentials) |
protected org.bonitasoft.engine.session.APISession |
loginInternal(java.lang.String userName,
java.lang.String password,
java.lang.Long tenantId) |
void |
logout(org.bonitasoft.engine.session.APISession session) |
putPlatformInCacheIfNecessarypublic org.bonitasoft.engine.session.APISession login(java.lang.String userName,
java.lang.String password)
throws org.bonitasoft.engine.platform.LoginException
login in interface org.bonitasoft.engine.api.LoginAPIorg.bonitasoft.engine.platform.LoginExceptionprotected org.bonitasoft.engine.session.APISession login(java.lang.String userName,
java.lang.String password,
java.lang.Long tenantId)
throws org.bonitasoft.engine.platform.LoginException
org.bonitasoft.engine.platform.LoginExceptionpublic org.bonitasoft.engine.session.APISession login(java.util.Map<java.lang.String,java.io.Serializable> credentials)
throws org.bonitasoft.engine.platform.LoginException,
org.bonitasoft.engine.platform.UnknownUserException
login in interface org.bonitasoft.engine.api.LoginAPIorg.bonitasoft.engine.platform.LoginExceptionorg.bonitasoft.engine.platform.UnknownUserExceptionprotected org.bonitasoft.engine.session.APISession loginInternal(java.lang.String userName,
java.lang.String password,
java.lang.Long tenantId)
throws java.lang.Exception
java.lang.Exceptionprotected org.bonitasoft.engine.session.APISession loginInternal(java.lang.Long tenantId,
java.util.Map<java.lang.String,java.io.Serializable> credentials)
throws java.lang.Exception
java.lang.Exceptionprotected STenant getTenant(java.lang.Long tenantId, PlatformServiceAccessor platformServiceAccessor) throws SBonitaException
SBonitaExceptionprotected void checkUsernameAndPassword(java.lang.String userName,
java.lang.String password)
throws org.bonitasoft.engine.platform.LoginException
org.bonitasoft.engine.platform.LoginExceptionprotected void checkCredentialsAreNotNullOrEmpty(java.util.Map<java.lang.String,java.io.Serializable> credentials)
throws org.bonitasoft.engine.platform.LoginException
org.bonitasoft.engine.platform.LoginExceptionprotected void checkThatWeCanLogin(java.lang.String userName,
STenant sTenant,
TechnicalUser technicalUser)
throws org.bonitasoft.engine.platform.LoginException
org.bonitasoft.engine.platform.LoginExceptionprotected TenantServiceAccessor getTenantServiceAccessor(long tenantId)
public void logout(org.bonitasoft.engine.session.APISession session)
throws org.bonitasoft.engine.platform.LogoutException,
org.bonitasoft.engine.session.SessionNotFoundException
logout in interface org.bonitasoft.engine.api.LoginAPIorg.bonitasoft.engine.platform.LogoutExceptionorg.bonitasoft.engine.session.SessionNotFoundException