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