Class UILinkItemsUtils

java.lang.Object
com.jalios.jcms.uicomponent.linkitems.UILinkItemsUtils

public class UILinkItemsUtils extends Object
Utils to retrieve a collection of UILinkItem based on a prop prefix
Since:
jcms-10.0.7
  • Constructor Details

    • UILinkItemsUtils

      public UILinkItemsUtils()
  • Method Details

    • getLinkItems

      public static Set<UILinkItem> getLinkItems(String prefix, Workspace workspace, Member member, JcmsJspContext jcmsContext, Data data)
      Parameters:
      prefix - the property prefix
      workspace - the context Workspace
      member - the logged Member
      jcmsContext - the JcmsJspContext
      data - the target Data
      Returns:
      a set of UILinkItem that accepts to be displayed depending on context
      Since:
      jcms-10.0.7
    • getLinkItems

      public static Set<UILinkItem> getLinkItems(Class dataClass, Class stopClass, String prefix, Workspace workspace, Member member, JcmsJspContext jcmsContext, Data data)
      Returns a set of UILinkItem by searching for the given dataClass and prefix, and searching for this class superclass links The stop class is available to stop the
      Parameters:
      dataClass - the data class to add the data class as a suffix of given prefix
      stopClass - the class to stop the recursion (When reaching this class by recursion using superclass, the property won't be searched on this one)
      prefix - the property prefix
      workspace - the context Workspace
      member - the logged Member
      jcmsContext - the JcmsJspContext
      data - the target Data
      Returns:
      a set of UILinkItem that accepts to be displayed depending on context
      Since:
      jcms-10.0.7
    • getLinkItems

      public static Set<UILinkItem> getLinkItems(Class dataClass, String prefix, Workspace workspace, Member member, JcmsJspContext jcmsContext, Data data)
      Returns a set of UILinkItem by searching for the given dataClass and prefix, and searching for this class superclass links The stop class is available to stop the
      Parameters:
      dataClass - the data class to add the data class as a suffix of given prefix
      prefix - the property prefix
      workspace - the context Workspace
      member - the logged Member
      jcmsContext - the JcmsJspContext
      data - the target Data
      Returns:
      a set of UILinkItem that accepts to be displayed depending on context
      Since:
      jcms-10.0.7