portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jf...@apache.org
Subject cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/tools/pamanager JetspeedDescriptorUtilities.java
Date Thu, 11 Mar 2004 19:22:09 GMT
jford       2004/03/11 11:22:09

  Modified:    portal/src/java/org/apache/jetspeed/tools/pamanager
                        JetspeedDescriptorUtilities.java
  Log:
  Added rules for portlet metadata
  
  Revision  Changes    Path
  1.2       +23 -1     jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/tools/pamanager/JetspeedDescriptorUtilities.java
  
  Index: JetspeedDescriptorUtilities.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/tools/pamanager/JetspeedDescriptorUtilities.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- JetspeedDescriptorUtilities.java	10 Mar 2004 01:40:48 -0000	1.1
  +++ JetspeedDescriptorUtilities.java	11 Mar 2004 19:22:08 -0000	1.2
  @@ -22,6 +22,7 @@
   import org.apache.commons.logging.LogFactory;
   import org.apache.jetspeed.om.common.portlet.MutablePortletApplication;
   import org.apache.jetspeed.tools.pamanager.rules.LocalizedFieldRule;
  +import org.apache.jetspeed.tools.pamanager.rules.PortletRule;
   
   /**
    * This class helps load Jetspeed descriptors
  @@ -68,6 +69,27 @@
               digester.addRule("portlet-app/subject", new LocalizedFieldRule());
               digester.addRule("portlet-app/type", new LocalizedFieldRule());
               digester.addRule("portlet-app/metadata", new LocalizedFieldRule());
  +            
  +            //	digester.addSetNext("portlet-app", "setMetadata");
  +            
  +			//digester.addRule("portlet-app/portlet", new PortletRule(app));
  +			digester.addRule("portlet-app/portlet/portlet-name", new PortletRule(app));
  +			digester.addRule("portlet-app/portlet/title", new LocalizedFieldRule());
  +			digester.addRule("portlet-app/portlet/contributor", new LocalizedFieldRule());
  +			digester.addRule("portlet-app/portlet/creator", new LocalizedFieldRule());
  +			digester.addRule("portlet-app/portlet/coverage", new LocalizedFieldRule());
  +			digester.addRule("portlet-app/portlet/description", new LocalizedFieldRule());
  +			digester.addRule("portlet-app/portlet/format", new LocalizedFieldRule());
  +			digester.addRule("portlet-app/portlet/identifier", new LocalizedFieldRule());
  +			digester.addRule("portlet-app/portlet/language", new LocalizedFieldRule());
  +			digester.addRule("portlet-app/portlet/publisher", new LocalizedFieldRule());
  +			digester.addRule("portlet-app/portlet/relation", new LocalizedFieldRule());
  +			digester.addRule("portlet-app/portlet/right", new LocalizedFieldRule());
  +			digester.addRule("portlet-app/portlet/source", new LocalizedFieldRule());
  +			digester.addRule("portlet-app/portlet/subject", new LocalizedFieldRule());
  +			digester.addRule("portlet-app/portlet/type", new LocalizedFieldRule());
  +			digester.addRule("portlet-app/portlet/metadata", new LocalizedFieldRule());
  +             
               
               digester.parse(reader);
               result = true;
  
  
  

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