(0104936)
|
hgbot
|
2018-06-05 11:46
|
|
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 2a6ce1c8555c23c10320fbc8fc9203af303310c2
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon Jun 04 16:24:41 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/2a6ce1c8555c23c10320fbc8fc9203af303310c2 [^]
Fixed issue 38694: Implement the possibility to avoid logins if the system is
overloaded
Two new properties could be added to Openbravo.properties
* mobileappslogin.allow → Allow/Forbid login from all applications
* mobileappslogin.maxLoad → Max system load until reject logins from
applications.
This new implementation could be ignore overriding method ignoreLoginController
in the implementation of a LoginHandler for the application.
The implementation starts working when the property mobileappslogin.maxLoad is
set and it is distinct of 0.00. If the system is overloaded, the login response
returns an error message, if not, it works as usual.
---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/mobile/core/login/MobileCoreLoginHandler.java
A src/org/openbravo/mobile/core/login/MobileCoreLoginController.java
A src/org/openbravo/mobile/core/login/MobileCoreLoginControllerInitializer.java
A src/org/openbravo/mobile/core/login/MobileCoreLoginControllerMBean.java
---
|
|