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/rules LocalizedFieldRule.java
Date Thu, 11 Mar 2004 19:21:06 GMT
jford       2004/03/11 11:21:06

  Modified:    portal/src/java/org/apache/jetspeed/tools/pamanager/rules
                        LocalizedFieldRule.java
  Log:
  Use metadata createLocalizedField method
  
  Revision  Changes    Path
  1.3       +17 -6     jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/tools/pamanager/rules/LocalizedFieldRule.java
  
  Index: LocalizedFieldRule.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/tools/pamanager/rules/LocalizedFieldRule.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- LocalizedFieldRule.java	10 Mar 2004 17:13:59 -0000	1.2
  +++ LocalizedFieldRule.java	11 Mar 2004 19:21:06 -0000	1.3
  @@ -1,8 +1,17 @@
   /*
  - * Created on Mar 9, 2004
  - *
  - * To change the template for this generated file go to
  - * Window>Preferences>Java>Code Generation>Code and Comments
  + * Copyright 2004 The 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.tools.pamanager.rules;
   
  @@ -38,7 +47,9 @@
           if (digester.getLogger().isDebugEnabled())
               digester.getLogger().debug("Setting localized field " + name);
           
  -        LocalizedField child = new LocalizedFieldImpl();
  +        GenericMetadata metadata = (GenericMetadata)digester.peek();
  +        
  +        LocalizedField child = metadata.createLocalizedField(); 
   
           if(name.equals("metadata"))
           {
  
  
  

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