Package com.liferay.faces.util.product

Examples of com.liferay.faces.util.product.ProductMap


  public void sessionDestroyed(HttpSessionEvent httpSessionEvent) {

    if (firstInstance) {

      // Determine which JSF implementation is being used (Mojarra/MyFaces).
      ProductMap productMap = ProductMap.getInstance();
      Product jsf = productMap.get(ProductConstants.JSF);
      boolean mojarraAbleToCleanup = true;

      if (jsf.getTitle().equals(ProductConstants.MOJARRA) && (jsf.getMajorVersion() == 2) &&
          (jsf.getMinorVersion() == 1)) {

        if (jsf.getRevisionVersion() < 18) {
          mojarraAbleToCleanup = false;

          boolean logWarning = true;
          Product iceFaces = productMap.get(ProductConstants.ICEFACES);

          if (iceFaces.isDetected()) {

            if ((iceFaces.getMajorVersion() == 2) ||
                ((iceFaces.getMajorVersion() == 3) && (iceFaces.getMinorVersion() <= 2))) {
View Full Code Here


  public String getDependencyInfo() {

    if (dependencyInfo == null) {
      StringBuilder buf = new StringBuilder();
      ProductMap productMap = ProductMap.getInstance();
      buf.append("Liferay Faces ");

      Product liferayFacesAlloy = productMap.get(ProductConstants.LIFERAY_FACES_ALLOY);
      String version = liferayFacesAlloy.getVersion();
      int pos = version.indexOf(StringPool.SPACE);

      if (pos > 0) {
        version = version.substring(0, pos);
      }

      buf.append(version);
      buf.append(" + ");
      buf.append(productMap.get(ProductConstants.JSF));
      dependencyInfo = buf.toString();
    }

    return dependencyInfo;
  }
View Full Code Here

TOP

Related Classes of com.liferay.faces.util.product.ProductMap

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.