git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/catalogue-badge-portlet@163212 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
22c499d771
commit
7637f9122d
|
@ -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()));
|
||||
|
|
Loading…
Reference in New Issue