Class WorkflowBreadcrumbs


  • public class WorkflowBreadcrumbs
    extends java.lang.Object
    Builds the breadcrumbs of the workflow edition pages : the ancestors of the current page, each one linking back to its own page. The admin layout displays them between the feature title and the page title.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PANE_ACTIONS
      Pane of the workflow page listing the actions
      static java.lang.String PANE_STATES
      Pane of the workflow page listing the states
    • Constructor Summary

      Constructors 
      Constructor Description
      WorkflowBreadcrumbs​(java.util.Locale locale)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      WorkflowBreadcrumbs action​(fr.paris.lutece.plugins.workflowcore.business.action.Action action)
      Adds a link to the action page
      java.util.List<fr.paris.lutece.portal.web.admin.BreadcrumbItem> getItems()
      Returns the items of the breadcrumbs
      WorkflowBreadcrumbs reflexiveTasks​(fr.paris.lutece.plugins.workflowcore.business.state.State state)
      Adds a link to the page of the automatic tasks of a state
      WorkflowBreadcrumbs state​(fr.paris.lutece.plugins.workflowcore.business.state.State state)
      Adds a link to the state page
      WorkflowBreadcrumbs workflow​(fr.paris.lutece.plugins.workflowcore.business.workflow.Workflow workflow, java.lang.String strPane)
      Adds a link to the workflow page
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PANE_STATES

        public static final java.lang.String PANE_STATES
        Pane of the workflow page listing the states
        See Also:
        Constant Field Values
      • PANE_ACTIONS

        public static final java.lang.String PANE_ACTIONS
        Pane of the workflow page listing the actions
        See Also:
        Constant Field Values
    • Constructor Detail

      • WorkflowBreadcrumbs

        public WorkflowBreadcrumbs​(java.util.Locale locale)
        Constructor
        Parameters:
        locale - the locale of the labels
    • Method Detail

      • workflow

        public WorkflowBreadcrumbs workflow​(fr.paris.lutece.plugins.workflowcore.business.workflow.Workflow workflow,
                                            java.lang.String strPane)
        Adds a link to the workflow page
        Parameters:
        workflow - the workflow, ignored if null
        strPane - the pane of the workflow page to open
        Returns:
        this breadcrumbs
      • state

        public WorkflowBreadcrumbs state​(fr.paris.lutece.plugins.workflowcore.business.state.State state)
        Adds a link to the state page
        Parameters:
        state - the state, ignored if null
        Returns:
        this breadcrumbs
      • reflexiveTasks

        public WorkflowBreadcrumbs reflexiveTasks​(fr.paris.lutece.plugins.workflowcore.business.state.State state)
        Adds a link to the page of the automatic tasks of a state
        Parameters:
        state - the state, ignored if null
        Returns:
        this breadcrumbs
      • action

        public WorkflowBreadcrumbs action​(fr.paris.lutece.plugins.workflowcore.business.action.Action action)
        Adds a link to the action page
        Parameters:
        action - the action, ignored if null
        Returns:
        this breadcrumbs
      • getItems

        public java.util.List<fr.paris.lutece.portal.web.admin.BreadcrumbItem> getItems()
        Returns the items of the breadcrumbs
        Returns:
        the items, from the closest to the feature to the closest to the current page