Package org.bonitasoft.engine.api.impl
Class LoginAPIImpl
- java.lang.Object
-
- org.bonitasoft.engine.api.impl.LoginAPIImpl
-
- All Implemented Interfaces:
org.bonitasoft.engine.api.LoginAPI
public class LoginAPIImpl extends java.lang.Object implements org.bonitasoft.engine.api.LoginAPI- Author:
- Matthieu Chaffotte, Zhang Bole
-
-
Constructor Summary
Constructors Constructor Description LoginAPIImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckCredentialsAreNotNullOrEmpty(java.util.Map<java.lang.String,java.io.Serializable> credentials)protected voidcheckThatWeCanLogin(java.lang.String userName, STenant sTenant, TechnicalUser technicalUser)protected voidcheckUsernameAndPassword(java.lang.String userName, java.lang.String password)protected STenantgetTenant(java.lang.Long tenantId, PlatformServiceAccessor platformServiceAccessor)protected TenantServiceAccessorgetTenantServiceAccessor()org.bonitasoft.engine.session.APISessionlogin(java.lang.String userName, java.lang.String password)protected org.bonitasoft.engine.session.APISessionlogin(java.lang.String userName, java.lang.String password, java.lang.Long tenantId)org.bonitasoft.engine.session.APISessionlogin(java.util.Map<java.lang.String,java.io.Serializable> credentials)protected org.bonitasoft.engine.session.APISessionloginInternal(java.lang.Long tenantId, java.util.Map<java.lang.String,java.io.Serializable> credentials)protected org.bonitasoft.engine.session.APISessionloginInternal(java.lang.String userName, java.lang.String password, java.lang.Long tenantId)voidlogout(org.bonitasoft.engine.session.APISession session)
-
-
-
Method Detail
-
login
public org.bonitasoft.engine.session.APISession login(java.lang.String userName, java.lang.String password) throws org.bonitasoft.engine.platform.LoginException- Specified by:
loginin interfaceorg.bonitasoft.engine.api.LoginAPI- Throws:
org.bonitasoft.engine.platform.LoginException
-
login
protected org.bonitasoft.engine.session.APISession login(java.lang.String userName, java.lang.String password, java.lang.Long tenantId) throws org.bonitasoft.engine.platform.LoginException- Throws:
org.bonitasoft.engine.platform.LoginException
-
login
public 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- Specified by:
loginin interfaceorg.bonitasoft.engine.api.LoginAPI- Throws:
org.bonitasoft.engine.platform.LoginExceptionorg.bonitasoft.engine.platform.UnknownUserException
-
loginInternal
protected org.bonitasoft.engine.session.APISession loginInternal(java.lang.String userName, java.lang.String password, java.lang.Long tenantId) throws java.lang.Exception- Throws:
java.lang.Exception
-
loginInternal
protected org.bonitasoft.engine.session.APISession loginInternal(java.lang.Long tenantId, java.util.Map<java.lang.String,java.io.Serializable> credentials) throws java.lang.Exception- Throws:
java.lang.Exception
-
getTenant
protected STenant getTenant(java.lang.Long tenantId, PlatformServiceAccessor platformServiceAccessor) throws SBonitaException
- Throws:
SBonitaException
-
checkUsernameAndPassword
protected void checkUsernameAndPassword(java.lang.String userName, java.lang.String password) throws org.bonitasoft.engine.platform.LoginException- Throws:
org.bonitasoft.engine.platform.LoginException
-
checkCredentialsAreNotNullOrEmpty
protected void checkCredentialsAreNotNullOrEmpty(java.util.Map<java.lang.String,java.io.Serializable> credentials) throws org.bonitasoft.engine.platform.LoginException- Throws:
org.bonitasoft.engine.platform.LoginException
-
checkThatWeCanLogin
protected void checkThatWeCanLogin(java.lang.String userName, STenant sTenant, TechnicalUser technicalUser) throws org.bonitasoft.engine.platform.LoginException- Throws:
org.bonitasoft.engine.platform.LoginException
-
getTenantServiceAccessor
protected TenantServiceAccessor getTenantServiceAccessor()
-
logout
public void logout(org.bonitasoft.engine.session.APISession session) throws org.bonitasoft.engine.platform.LogoutException, org.bonitasoft.engine.session.SessionNotFoundException- Specified by:
logoutin interfaceorg.bonitasoft.engine.api.LoginAPI- Throws:
org.bonitasoft.engine.platform.LogoutExceptionorg.bonitasoft.engine.session.SessionNotFoundException
-
-