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/commons/src/java/org/apache/jetspeed/tools/castor/om/common/portlet PortletDefinitionDescriptor.java
Date Tue, 05 Aug 2003 18:45:44 GMT
taylor      2003/08/05 11:45:44

  Modified:    commons/src/java/org/apache/jetspeed/tools/castor/om/common/portlet
                        PortletDefinitionDescriptor.java
  Log:
  added post processing to PortletDefinitionDescriptor to set preference values
  
  Revision  Changes    Path
  1.4       +10 -2     jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/tools/castor/om/common/portlet/PortletDefinitionDescriptor.java
  
  Index: PortletDefinitionDescriptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/tools/castor/om/common/portlet/PortletDefinitionDescriptor.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PortletDefinitionDescriptor.java	3 Aug 2003 14:54:18 -0000	1.3
  +++ PortletDefinitionDescriptor.java	5 Aug 2003 18:45:43 -0000	1.4
  @@ -55,10 +55,12 @@
   
   import java.util.Collection;
   import java.util.ArrayList;
  +import java.util.Iterator;
   
   import org.apache.jetspeed.om.common.portlet.PortletDefinitionImpl;
   import org.apache.jetspeed.om.common.preference.PreferenceSetImpl;
   import org.apache.jetspeed.tools.castor.om.common.LanguageSetDescriptor;
  +import org.apache.jetspeed.tools.castor.om.common.PreferenceDescriptor;
   import org.apache.jetspeed.tools.castor.om.common.PreferenceSetDescriptor;
   import org.apache.jetspeed.om.common.LanguageSetImpl;
   
  @@ -140,6 +142,12 @@
       public void postLoad(Object parameter) throws Exception
       {
           LanguageSetDescriptor language = (LanguageSetDescriptor)this.getLanguageSet();
  -        language.postLoad(parameter);                    
  +        language.postLoad(parameter);
  +        Iterator prefs = getCastorPreferences().iterator();
  +        while (prefs.hasNext())
  +        {
  +            PreferenceDescriptor pd  = (PreferenceDescriptor)prefs.next();
  +            pd.setCastorValues(pd.getCastorValues());
  +        }
       }
   }
  
  
  

Mime
View raw message