Class ViewLifecyclePhaseBuilderBase

java.lang.Object
org.kuali.rice.krad.uif.lifecycle.ViewLifecyclePhaseBuilderBase
All Implemented Interfaces:
ViewLifecyclePhaseBuilder

public class ViewLifecyclePhaseBuilderBase extends Object implements ViewLifecyclePhaseBuilder
Default phase builder implementation.
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Constructor Details

    • ViewLifecyclePhaseBuilderBase

      public ViewLifecyclePhaseBuilderBase()
  • Method Details

    • buildPhase

      public ViewLifecyclePhase buildPhase(View view, String viewPhase, List<String> refreshPaths)
      Creates a lifecycle phase instance for the given view.
      Specified by:
      buildPhase in interface ViewLifecyclePhaseBuilder
      Parameters:
      view - view instance the phase should be built for
      viewPhase - View phase to build an instance for
      Returns:
      pre-process phase instance
      See Also:
    • buildPhase

      public ViewLifecyclePhase buildPhase(String viewPhase, LifecycleElement element, Component parent, String parentPath, List<String> refreshPaths)
      Creates a lifecycle phase instance for a specific component in the current lifecycle.
      Specified by:
      buildPhase in interface ViewLifecyclePhaseBuilder
      Parameters:
      viewPhase - view phase to build an instance for
      element - lifecycle element to build an instance for
      parent - parent component
      parentPath - path relative to the parent component referring to the lifecycle element
      Returns:
      phase instance
    • finishBuildPhase

      protected ViewLifecyclePhase finishBuildPhase(ViewLifecyclePhase phase)
      Determines if the previous phases have been run for the given element and if not backs up until it finds the first phase we need to run.
      Parameters:
      phase - phase being requested
      Returns:
      phase that should be run
    • getPreviousViewPhase

      protected static String getPreviousViewPhase(ViewLifecyclePhase phase)
      Return the previous view phase, for automatic phase spawning.
      Returns:
      phase view phase
    • getPhaseInstance

      protected ViewLifecyclePhase getPhaseInstance(String viewPhase)
      Build a phase instance for processing the given view phase.
      Parameters:
      viewPhase - name of the view phase to return
      Returns:
      phase instance
    • buildPreProcessPhase

      protected ViewLifecyclePhase buildPreProcessPhase()
      Creates an instance of the PreProcessElementPhase phase with configured tasks.
      Returns:
      view lifecycle phase instance
    • buildInitializePhase

      protected ViewLifecyclePhase buildInitializePhase()
      Creates an instance of the InitializeComponentPhase phase with configured tasks.
      Returns:
      view lifecycle phase instance
    • buildApplyModelPhase

      protected ViewLifecyclePhase buildApplyModelPhase()
      Creates an instance of the ApplyModelComponentPhase phase with configured tasks.
      Returns:
      view lifecycle phase instance
    • buildFinalizePhase

      protected ViewLifecyclePhase buildFinalizePhase()
      Creates an instance of the FinalizeComponentPhase phase with configured tasks.
      Returns:
      view lifecycle phase instance
    • buildRenderPhase

      protected ViewLifecyclePhase buildRenderPhase()
      Creates an instance of the RenderComponentPhase phase with configured tasks.
      Returns:
      view lifecycle phase instance