Class BackgroundProcessTopbarHandler

    • Constructor Detail

      • BackgroundProcessTopbarHandler

        public BackgroundProcessTopbarHandler()
    • Method Detail

      • init

        protected void init()
        Description copied from class: JcmsFormHandler
        Method to implement if you need to initialize your handler from parameter received, prior to all security validation.

        You must absolutely not perform any action which modify data or site configuration.

        Therefore it is strongly recommend NOT TO implement this method, or use very wisely.

        Overrides:
        init in class BackgroundProcessHandler
        Since:
        jcms-10.0.8
      • getTopbarProcessList

        public static java.util.List<BackgroundProcessInfo> getTopbarProcessList​(Member loggedMember)
        Return process visible by loggedMember with BackgroundProcess.Scope.USER.

        Only process that started before a delay are returned.

        Parameters:
        loggedMember - the loggedMember
        Returns:
        a process info list
        Since:
        jcms-10.0.8
      • getTopbarProcessCount

        public static long getTopbarProcessCount​(Member loggedMember)
        Parameters:
        loggedMember - the loggedMember
        Returns:
        count of process to display in topbar
        Since:
        jcms-10.0.8
        See Also:
        getTopbarProcessList(Member)
      • showMenu

        public boolean showMenu()
        Returns:
        true if there are pending process
        Since:
        jcms-10.0.8
      • getListGroupDataAttribute

        public java.lang.String getListGroupDataAttribute()
        Adds currently process count.
        Returns:
        attributes on the main topbar list-group item
        Since:
        jcms-10.0.8