Class 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 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()  
      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)  
      org.bonitasoft.engine.session.APISession login​(java.util.Map<java.lang.String,​java.io.Serializable> credentials)  
      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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LoginAPIImpl

        public LoginAPIImpl()
    • 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:
        login in interface org.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:
        login in interface org.bonitasoft.engine.api.LoginAPI
        Throws:
        org.bonitasoft.engine.platform.LoginException
        org.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
      • 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
      • 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