diff --git a/src/fr/devinsy/statoolinfos/core/Service.java b/src/fr/devinsy/statoolinfos/core/Service.java index 8c321ef..9d92ca6 100644 --- a/src/fr/devinsy/statoolinfos/core/Service.java +++ b/src/fr/devinsy/statoolinfos/core/Service.java @@ -488,6 +488,26 @@ public class Service extends PathPropertyList return result; } + /** + * Gets the registration load. + * + * @return the registration load + */ + public String getRegistrationLoad() + { + String result; + + result = get("service.registration.load"); + + if (result == null) + { + result = "open"; + } + + // + return result; + } + /** * Gets the service install type. * @@ -808,6 +828,36 @@ public class Service extends PathPropertyList return result; } + /** + * Checks if is registration load full. + * + * @return true, if is registration load full + */ + public boolean isRegistrationLoadFull() + { + boolean result; + + result = StringUtils.containsIgnoreCase(get("service.registration.load"), "full"); + + // + return result; + } + + /** + * Checks if is registration load open. + * + * @return true, if is registration load open + */ + public boolean isRegistrationLoadOpen() + { + boolean result; + + result = StringUtils.containsIgnoreCase(get("service.registration.load"), "open"); + + // + return result; + } + /** * Checks if is registration member. * diff --git a/src/fr/devinsy/statoolinfos/htmlize/ServiceListView.java b/src/fr/devinsy/statoolinfos/htmlize/ServiceListView.java index ad729a2..e180132 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/ServiceListView.java +++ b/src/fr/devinsy/statoolinfos/htmlize/ServiceListView.java @@ -138,6 +138,11 @@ public class ServiceListView data.setAttribute("serviceListLine", index, "serviceListLineRegistrationClientImg", "class", ""); data.getIdData("serviceListLine", index, "serviceListLineRegistrationClientImg").getAttribute("class").setMode(DisplayMode.REPLACE); } + if (service.isRegistrationLoadFull()) + { + data.setAttribute("serviceListLine", index, "serviceListLineRegistrationLoadImg", "class", ""); + data.getIdData("serviceListLine", index, "serviceListLineRegistrationLoadImg").getAttribute("class").setMode(DisplayMode.REPLACE); + } // data.setEscapedContent("softwareName", StringUtils.defaultIfBlank(service.getSoftwareName(), "n/a")); diff --git a/src/fr/devinsy/statoolinfos/htmlize/ServicePage.java b/src/fr/devinsy/statoolinfos/htmlize/ServicePage.java index c2abd53..10a9d5a 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/ServicePage.java +++ b/src/fr/devinsy/statoolinfos/htmlize/ServicePage.java @@ -193,6 +193,11 @@ public class ServicePage data.setAttribute("registrationClientImg", "class", ""); data.getIdData("registrationClientImg").getAttribute("class").setMode(DisplayMode.REPLACE); } + if (service.isRegistrationLoadFull()) + { + data.setAttribute("registrationLoadImg", "class", ""); + data.getIdData("registrationLoadImg").getAttribute("class").setMode(DisplayMode.REPLACE); + } // data.setEscapedContent("softwareName", StringUtils.defaultIfBlank(service.getSoftwareName(), "n/a")); diff --git a/src/fr/devinsy/statoolinfos/htmlize/service.xhtml b/src/fr/devinsy/statoolinfos/htmlize/service.xhtml index bafd74b..cb56ecf 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/service.xhtml +++ b/src/fr/devinsy/statoolinfos/htmlize/service.xhtml @@ -30,6 +30,7 @@ +