empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doeb...@apache.org
Subject svn commit: r1448948 - /empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/pages/Page.java
Date Fri, 22 Feb 2013 09:02:00 GMT
Author: doebele
Date: Fri Feb 22 09:02:00 2013
New Revision: 1448948

URL: http://svn.apache.org/r1448948
Log:
EMPIREDB-175 
rename misleading method name redirectTo() to navigateTo()

Modified:
    empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/pages/Page.java

Modified: empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/pages/Page.java
URL: http://svn.apache.org/viewvc/empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/pages/Page.java?rev=1448948&r1=1448947&r2=1448948&view=diff
==============================================================================
--- empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/pages/Page.java (original)
+++ empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/pages/Page.java Fri
Feb 22 09:02:00 2013
@@ -161,7 +161,7 @@ public abstract class Page implements Se
                 return;
             // Oops, not redirected yet?
             if (getParentPage()!=null)
-                redirectTo(getParentOutcome(true)); 
+                navigateTo(getParentOutcome(true)); 
             // Done
             return;
         }
@@ -286,7 +286,7 @@ public abstract class Page implements Se
             return false;
         }
         // redirect
-        redirectTo(parentPage.getRedirect());
+        navigateTo(parentPage.getRedirect());
         return true;
     }
 
@@ -328,7 +328,11 @@ public abstract class Page implements Se
         return b.toString();
     }
 
-    protected void redirectTo(PageOutcome outcome)
+    /**
+     * navigates to the desired page. Depending on the page outcome provided this is either
a forward or a redirect.
+     * @param outcome the destination page to navigate to
+     */
+    protected void navigateTo(PageOutcome outcome)
     {
         if (log.isDebugEnabled())
             log.debug("Redirecting from page {} to page {}.", getPageName(), outcome.toString());



Mime
View raw message