Class PortletUtils

java.lang.Object
com.jalios.jcms.portlet.PortletUtils

public final class PortletUtils extends Object
Utility methods for portlet-level operations.
  • Field Details

    • PORTLET_EDIT_SETTINGS_JSP_PROP

      public static final String PORTLET_EDIT_SETTINGS_JSP_PROP
      Property prefix for custom settings JSPs in the portlet editor.
      See Also:
    • PORTLET_EDIT_SKIN_JSP_PROP

      public static final String PORTLET_EDIT_SKIN_JSP_PROP
      Property prefix for custom edit skin JSPs in the portlet editor.
      See Also:
  • Method Details

    • getPortletSettingsJsp

      public static String getPortletSettingsJsp(String portletType)
      Returns the custom settings JSP path configured for the given portlet type name, as defined by the property: jportal.portlet-edit.settings.<portletType>.settings-jsp
      Parameters:
      portletType - the simple class name of the portlet type (e.g. "PortletCarousel")
      Returns:
      the configured settings JSP path, or null if not defined
    • getPortletSkinJsp

      public static String getPortletSkinJsp(String portletType, String part)
      Returns the custom skin JSP path configured for the given portlet type name, as defined by the property: jportal.portlet-edit.skin.<part>.<portletType>.settings-jsp
      Parameters:
      portletType - the simple class name of the portlet type (e.g. "PortletCarousel")
      Returns:
      the configured settings JSP path, or null if not defined