Package ch.entwine.weblounge.kernel.runtime

Examples of ch.entwine.weblounge.kernel.runtime.RuntimeInformationProvider


      User user = securityService.getUser();
      Language language = LanguageUtils.getPreferredLanguage(request, site);

      for (Map.Entry<String, RuntimeInformationProvider> entry : runtimeInfoProviders.entrySet()) {
        String component = entry.getKey();
        RuntimeInformationProvider provider = entry.getValue();
        String runtimeInformation = provider.getRuntimeInformation(site, user, language, environment);
        if (StringUtils.isNotBlank(runtimeInformation)) {
          if (StringUtils.isNotBlank(component))
            xml.append("<").append(component).append(">");
          xml.append(runtimeInformation);
          if (StringUtils.isNotBlank(component))
View Full Code Here


    if (sites != null) {
      Site site = getSite(request);
      User user = securityService.getExtendedUser();
      Language language = LanguageUtils.getPreferredLanguage(request, site);
      RuntimeInformationProvider provider = runtimeInfoProviders.get(component);
      if (provider == null)
        throw new WebApplicationException(Status.NOT_FOUND);

      String runtimeInformation = provider.getRuntimeInformation(site, user, language, environment);
      if (StringUtils.isNotBlank(runtimeInformation)) {
        xml.append("<").append(component).append(">");
        xml.append(runtimeInformation);
        xml.append("</").append(component).append(">");
      } else {
View Full Code Here

TOP

Related Classes of ch.entwine.weblounge.kernel.runtime.RuntimeInformationProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.