|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.krad.uif.lifecycle.LifecycleRefreshPathBuilder
public class LifecycleRefreshPathBuilder
For components that can be refreshed, builds out the various paths the lifecycle needs to be run on when the component refresh process is run.
| Constructor Summary | |
|---|---|
LifecycleRefreshPathBuilder()
|
|
| Method Summary | |
|---|---|
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 LifecycleElement that 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LifecycleRefreshPathBuilder()
| Method Detail |
|---|
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 paths
protected static void storePhasePathMapping(LifecycleElement lifecycleElement,
ComponentPostMetadata componentPostMetadata)
lifecycleElement - lifecycle element to store phase mapping forcomponentPostMetadata - post metadata instance to hold mapping
protected 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 processed
protected 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 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 processed
protected 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 phase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||