Author: hoang_to
Date: 2010-05-10 04:22:32 -0400 (Mon, 10 May 2010)
New Revision: 3023
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/navigation/PageNavigationUtils.java
Log:
Add comment on Java code
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/navigation/PageNavigationUtils.java
===================================================================
---
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/navigation/PageNavigationUtils.java 2010-05-10
07:11:39 UTC (rev 3022)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/navigation/PageNavigationUtils.java 2010-05-10
08:22:32 UTC (rev 3023)
@@ -57,8 +57,18 @@
}
}
- // Minh Hoang TO
- //TODO: Rewrite this method with a better algorithm by spliting the uri
+ /**
+ * This method returns a pair of PageNode, one is the PageNode specified by the uri,
+ * another is its parent. Value return is 2-element array
+ *
+ * 1. The element indexed 1 is the page node specified by the uri
+ *
+ * 2. The element indexed 0 is its parent
+ *
+ * @param node
+ * @param uri
+ * @return
+ */
public static PageNode[] searchPageNodesByUri(PageNode node, String uri)
{
if (node.getUri().equals(uri))