Performed reload from service

This commit is contained in:
Francesco Mangiacrapa 2023-02-21 11:00:26 +01:00
parent a596e180e5
commit 3efdb92d2a
2 changed files with 27 additions and 15 deletions

View File

@ -63,6 +63,7 @@
@ -149,6 +150,7 @@
@ -235,6 +237,7 @@
@ -321,6 +324,7 @@
@ -363,6 +367,7 @@
@ -381,9 +386,7 @@
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
<dependent-module archiveName="geoportal-data-common-2.0.3-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/geoportal-data-common/geoportal-data-common">
<dependency-type>uses</dependency-type>
</dependent-module>
@ -534,6 +537,7 @@
@ -620,6 +624,7 @@
@ -706,6 +711,7 @@

View File

@ -561,8 +561,14 @@ public class GeoportalDataEntryServiceImpl extends RemoteServiceServlet implemen
ResultSetPaginatedData searchedData = new ResultSetPaginatedData();
Integer totalProjectForProfile = SessionUtil.getTotalDocumentForProfileID(getThreadLocalRequest(),
//If reloadFromService = true, loads the document from the service
Integer totalProjectForProfile = null;
//Loading total documents from the session
if(!reloadFromService) {
totalProjectForProfile = SessionUtil.getTotalDocumentForProfileID(getThreadLocalRequest(),
theProfileID);
}
if (totalProjectForProfile == null) {
totalProjectForProfile = client.getTotalDocument(theProfileID);