Class TopbarManager

    • Field Detail

      • TOPBAR_HANDLER_REQUEST_ATTR

        public static final java.lang.String TOPBAR_HANDLER_REQUEST_ATTR
        See Also:
        Constant Field Values
      • TOPBAR_APPLICATION_MEMBERPREFS_KEY

        public static final java.lang.String TOPBAR_APPLICATION_MEMBERPREFS_KEY
        See Also:
        Constant Field Values
      • TOPBAR_APPLICATION_PROP_PREFIX

        public static final java.lang.String TOPBAR_APPLICATION_PROP_PREFIX
        See Also:
        Constant Field Values
      • TOPBAR_ITEM_PREFIX_PROP

        public static final java.lang.String TOPBAR_ITEM_PREFIX_PROP
        See Also:
        Constant Field Values
      • ORDER_PROP_SUFFIX

        public static final java.lang.String ORDER_PROP_SUFFIX
        See Also:
        Constant Field Values
      • WRAP_LOGO_WITH_H1

        public static final java.lang.String WRAP_LOGO_WITH_H1
        See Also:
        Constant Field Values
      • ALWAYS_WRAP_LOGO_WITH_H1

        public static final java.lang.String ALWAYS_WRAP_LOGO_WITH_H1
        See Also:
        Constant Field Values
      • TOPBAR_SEARCH_ITEM_PROP_PREFIX

        public static final java.lang.String TOPBAR_SEARCH_ITEM_PROP_PREFIX
        See Also:
        Constant Field Values
      • ACL_CAN_USE_PUBLISH_MENU

        public static final java.lang.String ACL_CAN_USE_PUBLISH_MENU
        See Also:
        Constant Field Values
    • Method Detail

      • propertiesChange

        public void propertiesChange​(JProperties properties)
        Description copied from interface: JPropertiesListener
        Invoked after properties have been modified in JCMS and save on disk.

        You cannot alter the value received in parameters.

        Note that properties parameter may be null, a limited set of site properties, or all site properties.

        To check that a property has been modified, reload the "current" property instead using channel.getProperties or channel.getProperty.

        Specified by:
        propertiesChange in interface JPropertiesListener
        Parameters:
        properties - the properties which have been submitted to change
      • wrapLogoWithH1

        public boolean wrapLogoWithH1()
        Returns:
        true if logo should be wrapped in some cases with an H1
        Since:
        10.0.5
      • alwaysWrapLogoWithH1

        public boolean alwaysWrapLogoWithH1()
        Returns:
        true if logo should be always be wrapped in some cases with an H1 (Depends on alwaysWrapLogoWithH1()
        Since:
        10.0.5
      • getSortedTopbarItemSet

        public java.util.Set<TopbarItem> getSortedTopbarItemSet​(java.lang.String lang)
        Parameters:
        lang - the language
        Returns:
        the set of TopbarItem, ordered by index
      • getTopbarSearchItemSet

        public java.util.Set<TopbarSearchItem> getTopbarSearchItemSet()
      • getFavoriteApplicationSet

        public java.util.Set<TopbarApplicationItem> getFavoriteApplicationSet​(Member mbr,
                                                                              java.lang.String lang)
        Deprecated.
        since jcms-10.0.3. Use ApplicationManager instead
        Parameters:
        mbr - the Member
        lang - the language
        Returns:
        the set of TopbarApplicationItem the user can read, ordered by his preferences
      • getUnorderedFavoriteApplicationList

        public java.util.List<TopbarApplicationItem> getUnorderedFavoriteApplicationList​(Member mbr)
        Deprecated.
        since jcms-10.0.3. Use ApplicationManager instead
        Parameters:
        mbr - the member
        Returns:
        the set of TopbarApplicationItem the user can read, ordered by his preferences
      • getGlobalApplicationSet

        public java.util.Set<TopbarApplicationItem> getGlobalApplicationSet​(Member mbr,
                                                                            java.lang.String lang)
        Deprecated.
        since jcms-10.0.3. Use ApplicationManager instead
        Parameters:
        mbr - the Member
        lang - the language
        Returns:
        the set of TopbarApplicationItem the user can read, ordered by his preferences
      • getApplicationsFromPreferencesMap

        protected java.util.Map<java.lang.String,​java.lang.String[]> getApplicationsFromPreferencesMap​(java.lang.String preference)
                                                                                                      throws com.fasterxml.jackson.core.JsonParseException,
                                                                                                             com.fasterxml.jackson.databind.JsonMappingException,
                                                                                                             java.io.IOException
        Deprecated.
        since jcms-10.0.3. Use ApplicationManager instead
        Throws:
        com.fasterxml.jackson.core.JsonParseException
        com.fasterxml.jackson.databind.JsonMappingException
        java.io.IOException
      • canUsePublishMenu

        public boolean canUsePublishMenu​(Member mbr)
        Returns true if the given member can use the Publish menu.
        Parameters:
        mbr - the member
        Returns:
        true if the given member can use the Publish menu.
        Since:
        jcms-10.0.3