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
- Author:
- Matthieu Chaffotte, Zhang Bole
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckCredentialsAreNotNullOrEmpty(Map<String, Serializable> credentials) protected voidcheckUsernameAndPassword(String userName, String password) protected ServiceAccessororg.bonitasoft.engine.session.APISessionprotected org.bonitasoft.engine.session.APISessionorg.bonitasoft.engine.session.APISessionlogin(Map<String, Serializable> credentials) protected org.bonitasoft.engine.session.APISessionloginInternal(String userName, String password) protected org.bonitasoft.engine.session.APISessionloginInternal(Map<String, Serializable> credentials) voidlogout(org.bonitasoft.engine.session.APISession session)
-
Constructor Details
-
LoginAPIImpl
public LoginAPIImpl()
-
-
Method Details
-
login
public org.bonitasoft.engine.session.APISession login(String userName, 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(String userName, String password, Long tenantId) throws org.bonitasoft.engine.platform.LoginException - Throws:
org.bonitasoft.engine.platform.LoginException
-
login
public org.bonitasoft.engine.session.APISession login(Map<String, Serializable> credentials) throws org.bonitasoft.engine.platform.LoginException- Specified by:
loginin interfaceorg.bonitasoft.engine.api.LoginAPI- Throws:
org.bonitasoft.engine.platform.LoginException
-
loginInternal
protected org.bonitasoft.engine.session.APISession loginInternal(String userName, String password) throws Exception - Throws:
Exception
-
loginInternal
protected org.bonitasoft.engine.session.APISession loginInternal(Map<String, Serializable> credentials) throws Exception- Throws:
Exception
-
checkUsernameAndPassword
protected void checkUsernameAndPassword(String userName, String password) throws org.bonitasoft.engine.platform.LoginException - Throws:
org.bonitasoft.engine.platform.LoginException
-
checkCredentialsAreNotNullOrEmpty
protected void checkCredentialsAreNotNullOrEmpty(Map<String, Serializable> credentials) throws org.bonitasoft.engine.platform.LoginException- Throws:
org.bonitasoft.engine.platform.LoginException
-
getServiceAccessor
-
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
-