Class LoginAPIImpl

java.lang.Object
org.bonitasoft.engine.api.impl.LoginAPIImpl
All Implemented Interfaces:
org.bonitasoft.engine.api.LoginAPI

public class LoginAPIImpl extends Object implements org.bonitasoft.engine.api.LoginAPI
Author:
Matthieu Chaffotte, Zhang Bole
  • 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:
      login in interface org.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:
      login in interface org.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

      protected ServiceAccessor getServiceAccessor()
    • logout

      public void logout(org.bonitasoft.engine.session.APISession session) throws org.bonitasoft.engine.platform.LogoutException, org.bonitasoft.engine.session.SessionNotFoundException
      Specified by:
      logout in interface org.bonitasoft.engine.api.LoginAPI
      Throws:
      org.bonitasoft.engine.platform.LogoutException
      org.bonitasoft.engine.session.SessionNotFoundException