Class UILinkItemsUtils


  • public class UILinkItemsUtils
    extends java.lang.Object
    Utils to retrieve a collection of UILinkItem based on a prop prefix
    Since:
    jcms-10.0.7
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Set<UILinkItem> getLinkItems​(java.lang.Class dataClass, java.lang.Class stopClass, java.lang.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
      static java.util.Set<UILinkItem> getLinkItems​(java.lang.Class dataClass, java.lang.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
      static java.util.Set<UILinkItem> getLinkItems​(java.lang.String prefix, Workspace workspace, Member member, JcmsJspContext jcmsContext, Data data)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UILinkItemsUtils

        public UILinkItemsUtils()
    • Method Detail

      • getLinkItems

        public static java.util.Set<UILinkItem> getLinkItems​(java.lang.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 java.util.Set<UILinkItem> getLinkItems​(java.lang.Class dataClass,
                                                             java.lang.Class stopClass,
                                                             java.lang.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 java.util.Set<UILinkItem> getLinkItems​(java.lang.Class dataClass,
                                                             java.lang.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