public class LifecycleRefreshPathBuilder extends Object
| Constructor and Description | 
|---|
| LifecycleRefreshPathBuilder() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected static void | addElementRefreshPath(String path,
                                          String phase,
                                          List<String> initializePaths,
                                          List<String> applyModelPaths,
                                          List<String> finalizePaths)Adds the given path to the refresh path list for the given phase. | 
| protected static void | addElementRefreshPaths(String elementPath,
                                            List<String> initializePaths,
                                            List<String> applyModelPaths,
                                            List<String> finalizePaths,
                                            Set<String> visitedPaths)Retrieves the lifecycle element from the view index that has the given path, then adds its refresh
 paths to the given lists. | 
| protected static void | buildRefreshPathMappings(LifecycleElement lifecycleElement,
                                                ComponentPostMetadata componentPostMetadata)Builds the refresh paths for the given lifecycle element and sets onto the post metadata for storage. | 
| protected static void | processElementPath(String path,
                                    List<String> initializePaths,
                                    List<String> applyModelPaths,
                                    List<String> finalizePaths,
                                    Set<String> visitedPaths)Processes the element at the given path, and all its parents (given by properties within the path) adding
 their refresh paths to the lists being built. | 
| protected static void | processLifecycleElement(LifecycleElement element)Determines whether the given lifecycle element is capable of being refreshed, and if so invokes
  buildRefreshPathMappings(org.kuali.rice.krad.uif.util.LifecycleElement, org.kuali.rice.krad.uif.lifecycle.ComponentPostMetadata)to build the refresh paths. | 
| static void | processLifecycleElements()Iterates through each  LifecycleElementthat has been collected in
 the view index and invokes refresh path processing. | 
| protected static void | storePhasePathMapping(LifecycleElement lifecycleElement,
                                          ComponentPostMetadata componentPostMetadata)Store phase path mapping for component if there are any paths different from the final path. | 
public LifecycleRefreshPathBuilder()
public static void processLifecycleElements()
LifecycleElement that has been collected in
 the view index and invokes refresh path processing.protected static void processLifecycleElement(LifecycleElement element)
buildRefreshPathMappings(org.kuali.rice.krad.uif.util.LifecycleElement, org.kuali.rice.krad.uif.lifecycle.ComponentPostMetadata) to build the refresh paths.element - lifecycle element to build refresh paths for (if necessary)protected static void buildRefreshPathMappings(LifecycleElement lifecycleElement, ComponentPostMetadata componentPostMetadata)
For each lifecycle phase, a list of paths that the refresh lifecycle for the given should process is built. These are then stored on the component post metadata for retrieval on the refresh call
lifecycleElement - lifecycle element to build paths forcomponentPostMetadata - post metadata instance to store the pathsprotected static void storePhasePathMapping(LifecycleElement lifecycleElement, ComponentPostMetadata componentPostMetadata)
lifecycleElement - lifecycle element to store phase mapping forcomponentPostMetadata - post metadata instance to hold mappingprotected static void processElementPath(String path, List<String> initializePaths, List<String> applyModelPaths, List<String> finalizePaths, Set<String> visitedPaths)
path - path of the element to processinitializePaths - list of refresh paths for the intialize phaseapplyModelPaths - list of refresh paths for the apply model phasefinalizePaths - list of refresh paths for the finalize phasevisitedPaths - list of paths that have already been processedprotected static void addElementRefreshPaths(String elementPath, List<String> initializePaths, List<String> applyModelPaths, List<String> finalizePaths, Set<String> visitedPaths)
If the lifecycle element had a different path in one the phases, a call is made back to
 processElementPath(java.lang.String, java.util.List<java.lang.String>, java.util.List<java.lang.String>, java.util.List<java.lang.String>, java.util.Set<java.lang.String>) to process any new parents.
elementPath - path of the element to add paths forinitializePaths - list of refresh paths for the intialize phaseapplyModelPaths - list of refresh paths for the apply model phasefinalizePaths - list of refresh paths for the finalize phasevisitedPaths - list of paths that have already been processedprotected static void addElementRefreshPath(String path, String phase, List<String> initializePaths, List<String> applyModelPaths, List<String> finalizePaths)
path - path to addphase - phase for the list the path should be added toinitializePaths - list of refresh paths for the intialize phaseapplyModelPaths - list of refresh paths for the apply model phasefinalizePaths - list of refresh paths for the finalize phaseCopyright © 2005–2015 The Kuali Foundation. All rights reserved.