Massimiliano Assante 2018-02-13 13:46:38 +00:00
parent 22c499d771
commit 7637f9122d
1 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,7 @@ public class PortletViewController {
String appPerScopeURL = ApplicationProfileScopePerUrlReader.getScopePerUrl(clientURL); String appPerScopeURL = ApplicationProfileScopePerUrlReader.getScopePerUrl(clientURL);
_log.info("Catalogue for this Gateway is in this scope: " + appPerScopeURL); _log.info("Catalogue for this Gateway is in this scope: " + appPerScopeURL);
utils = factory.getUtilsPerScope(appPerScopeURL); utils = factory.getUtilsPerScope(appPerScopeURL);
_log.info("Here I instanciated factory.getUtilsPerScope with scope " + appPerScopeURL);
} catch (Exception e) { } catch (Exception e) {
_log.warn("Returning default catalogue for the context, could not find the catologue for this Gateway: " + clientURL); _log.warn("Returning default catalogue for the context, could not find the catologue for this Gateway: " + clientURL);
utils = factory.getUtilsPerScope(context); utils = factory.getUtilsPerScope(context);
@ -82,6 +83,7 @@ public class PortletViewController {
} }
else { else {
utils = factory.getUtilsPerScope(context); utils = factory.getUtilsPerScope(context);
_log.info("regular factory.getUtilsPerScope with context: " + context);
} }
Statistics stats = utils.getStatistics(); Statistics stats = utils.getStatistics();
model.addAttribute("itemsNo", convertToStringRepresentation(stats.getNumItems())); model.addAttribute("itemsNo", convertToStringRepresentation(stats.getNumItems()));