portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r537314 - in /portals/jetspeed-2/trunk: components/portal-site/src/java/org/apache/jetspeed/portalsite/impl/MenuOptionImpl.java jetspeed-api/src/java/org/apache/jetspeed/portalsite/MenuOption.java
Date Fri, 11 May 2007 23:08:37 GMT
Author: taylor
Date: Fri May 11 16:08:36 2007
New Revision: 537314

URL: http://svn.apache.org/viewvc?view=rev&rev=537314
Log:
https://issues.apache.org/jira/browse/JS2-721

Modified:
    portals/jetspeed-2/trunk/components/portal-site/src/java/org/apache/jetspeed/portalsite/impl/MenuOptionImpl.java
    portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/portalsite/MenuOption.java

Modified: portals/jetspeed-2/trunk/components/portal-site/src/java/org/apache/jetspeed/portalsite/impl/MenuOptionImpl.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/components/portal-site/src/java/org/apache/jetspeed/portalsite/impl/MenuOptionImpl.java?view=diff&rev=537314&r1=537313&r2=537314
==============================================================================
--- portals/jetspeed-2/trunk/components/portal-site/src/java/org/apache/jetspeed/portalsite/impl/MenuOptionImpl.java
(original)
+++ portals/jetspeed-2/trunk/components/portal-site/src/java/org/apache/jetspeed/portalsite/impl/MenuOptionImpl.java
Fri May 11 16:08:36 2007
@@ -147,6 +147,22 @@
     }
 
     /**
+     * getDefaultPage - get default page for a folder (if folder) of menu option
+     *
+     * @return url target
+     */
+    public String getDefaultPage()
+    {
+        // only link nodes support target
+        Node node = getNode();
+        if (node instanceof Folder)
+        {
+            return ((Folder)node).getDefaultPage();
+        }
+        return null;
+    }
+    
+    /**
      * isHidden - get hidden state of menu option
      *
      * @return hidden state

Modified: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/portalsite/MenuOption.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/portalsite/MenuOption.java?view=diff&rev=537314&r1=537313&r2=537314
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/portalsite/MenuOption.java
(original)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/portalsite/MenuOption.java
Fri May 11 16:08:36 2007
@@ -63,6 +63,13 @@
     String getTarget();
 
     /**
+     * getDefaultPage - get target for url of menu option
+     *
+     * @return url target
+     */
+    String getDefaultPage();
+    
+    /**
      * isHidden - get hidden state of menu option
      *
      * @return hidden state



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message