portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r354375 - in /portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets: PortletInfo.java selector/PortletIterator.java selector/PortletSelector.java
Date Tue, 06 Dec 2005 08:57:06 GMT
Author: taylor
Date: Tue Dec  6 00:57:05 2005
New Revision: 354375

URL: http://svn.apache.org/viewcvs?rev=354375&view=rev
Log:
moving out inner class PortletInfo to promote reuse

Added:
    portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/PortletInfo.java
Modified:
    portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/selector/PortletIterator.java
    portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/selector/PortletSelector.java

Added: portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/PortletInfo.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/PortletInfo.java?rev=354375&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/PortletInfo.java
(added)
+++ portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/PortletInfo.java
Tue Dec  6 00:57:05 2005
@@ -0,0 +1,60 @@
+/* Copyright 2004 Apache Software Foundation
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+package org.apache.jetspeed.portlets;
+
+/**
+ * Portlet Info
+ * 
+ * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
+ * @version $Id: $
+ */
+public class PortletInfo 
+{
+    /**
+     * 
+     */
+    String name;
+    String displayName;
+    String description;
+    
+    public PortletInfo(String name, String displayName, String description)
+    {
+        this.name = name;
+        this.displayName = displayName;
+        this.description = description;
+    }
+    /**
+     * @return Returns the description.
+     */
+    public String getDescription()
+    {
+        return description;
+    }
+    /**
+     * @return Returns the displayName.
+     */
+    public String getDisplayName()
+    {
+        return displayName;
+    }
+    /**
+     * @return Returns the name.
+     */
+    public String getName()
+    {
+        return name;
+    }
+}
\ No newline at end of file

Modified: portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/selector/PortletIterator.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/selector/PortletIterator.java?rev=354375&r1=354374&r2=354375&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/selector/PortletIterator.java
(original)
+++ portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/selector/PortletIterator.java
Tue Dec  6 00:57:05 2005
@@ -17,7 +17,7 @@
 
 import java.util.List;
 
-import org.apache.jetspeed.portlets.selector.PortletSelector.PortletInfo;
+import org.apache.jetspeed.portlets.PortletInfo;
 import org.apache.portals.gems.browser.DatabaseBrowserIterator;
 
 

Modified: portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/selector/PortletSelector.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/selector/PortletSelector.java?rev=354375&r1=354374&r2=354375&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/selector/PortletSelector.java
(original)
+++ portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/selector/PortletSelector.java
Tue Dec  6 00:57:05 2005
@@ -37,6 +37,7 @@
 import org.apache.jetspeed.om.common.SecuredResource;
 import org.apache.jetspeed.om.common.portlet.MutablePortletApplication;
 import org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite;
+import org.apache.jetspeed.portlets.PortletInfo;
 import org.apache.jetspeed.portlets.pam.PortletApplicationResources;
 import org.apache.jetspeed.request.RequestContext;
 import org.apache.jetspeed.search.ParsedObject;
@@ -192,41 +193,6 @@
         }        
     }
       
-    public class PortletInfo 
-    {
-        private String name;
-        private String displayName;
-        private String description;
-        
-        public PortletInfo(String name, String displayName, String description)
-        {
-            this.name = name;
-            this.displayName = displayName;
-            this.description = description;
-        }
-        /**
-         * @return Returns the description.
-         */
-        public String getDescription()
-        {
-            return description;
-        }
-        /**
-         * @return Returns the displayName.
-         */
-        public String getDisplayName()
-        {
-            return displayName;
-        }
-        /**
-         * @return Returns the name.
-         */
-        public String getName()
-        {
-            return name;
-        }
-    }
-
     public int find(BrowserIterator iterator, String searchString, String searchColumn)
     {
         int index = 0;



---------------------------------------------------------------------
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