portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed-2/services/registry/src/java/org/apache/jetspeed/om/portlet/impl ContentTypeSetImpl.java
Date Thu, 05 Feb 2004 02:15:35 GMT
taylor      2004/02/04 18:15:35

  Modified:    services/registry/src/java/org/apache/jetspeed/om/portlet/impl
                        ContentTypeSetImpl.java
  Log:
  implemented missing method supportsPortletMode(PortletMode mode) to fix broken build
  
  Revision  Changes    Path
  1.3       +18 -0     jakarta-jetspeed-2/services/registry/src/java/org/apache/jetspeed/om/portlet/impl/ContentTypeSetImpl.java
  
  Index: ContentTypeSetImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/services/registry/src/java/org/apache/jetspeed/om/portlet/impl/ContentTypeSetImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ContentTypeSetImpl.java	4 Feb 2004 21:17:50 -0000	1.2
  +++ ContentTypeSetImpl.java	5 Feb 2004 02:15:35 -0000	1.3
  @@ -57,6 +57,9 @@
   import java.util.ArrayList;
   import java.util.Collection;
   import java.util.Iterator;
  +
  +import javax.portlet.PortletMode;
  +
   import org.apache.jetspeed.om.common.portlet.ContentTypeSetComposite;
   import org.apache.pluto.om.portlet.ContentType;
   
  @@ -78,6 +81,21 @@
           innerCollection = collection;
       }
   
  +    public boolean supportsPortletMode(PortletMode mode)
  +    {
  +        Iterator itr = innerCollection.iterator();
  +        while (itr.hasNext())
  +        {
  +            ContentType p = (ContentType) itr.next();
  +            if (p.supportsPortletMode(mode))
  +            {
  +                return true;
  +            }
  +        }
  +        
  +        return false;
  +    }
  +    
       /**
        * @see org.apache.pluto.om.portlet.ContentTypeSet#get(java.lang.String)
        */
  
  
  

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


Mime
View raw message