weaver      2004/08/24 07:16:49

  Modified:    jetspeed-api/src/java/org/apache/jetspeed/om/folder
                        ChildNode.java Folder.java
  Added:       jetspeed-api/src/java/org/apache/jetspeed/om/folder
                        FolderMetaData.java
  Log:
  Added the begins of folder meta data support.  I used Dublin Core schema for basic 
metadata like.  Metadata is marshaled/unmarshalled
  using JDom and metadata is accessed via XPath queries.  We may want to look into 
switching over to castor given that castor has the
  namespace support we require.
  
  Revision  Changes    Path
  1.2       +5 -2      
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/om/folder/ChildNode.java
  
  Index: ChildNode.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/om/folder/ChildNode.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ChildNode.java    15 Jul 2004 22:52:37 -0000      1.1
  +++ ChildNode.java    24 Aug 2004 14:16:48 -0000      1.2
  @@ -15,6 +15,8 @@
    */
   package org.apache.jetspeed.om.folder;
   
  +import java.io.IOException;
  +
   /**
    * <p>
    * ChildNode
  @@ -36,8 +38,9 @@
        *
        * @return The parent folder for this node or <code>null</code> if this 
        * node is the root folder of a system.
  +     * @throws IOException
        */
  -    Folder getParent();
  +    Folder getParent() throws IOException;
       
       void setParent(Folder parent);
   }
  
  
  
  1.4       +6 -2      
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/om/folder/Folder.java
  
  Index: Folder.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/om/folder/Folder.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Folder.java       21 Jul 2004 13:38:21 -0000      1.3
  +++ Folder.java       24 Aug 2004 14:16:48 -0000      1.4
  @@ -15,6 +15,8 @@
    */
   package org.apache.jetspeed.om.folder;
   
  +import java.io.IOException;
  +
   import org.apache.jetspeed.om.common.SecuredResource;
   import org.apache.jetspeed.om.page.Page;
   import org.apache.jetspeed.om.page.PageSet;
  @@ -51,7 +53,7 @@
       
       void setDefaultTheme(String defaultTheme);
       
  -    FolderSet getFolders();
  +    FolderSet getFolders() throws IOException;
       
       void setFolders(FolderSet folders);
       
  @@ -80,4 +82,6 @@
   .     * @throws PageNotFoundException if the Page requested could not be found.
        */
       Page getPage(String name) throws PageNotFoundException;
  +    
  +    FolderMetaData getMetaData();
   }
  
  
  
  1.1                  
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/om/folder/FolderMetaData.java
  
  Index: FolderMetaData.java
  ===================================================================
  /*
   * Copyright 2000-2001,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.om.folder;
  
  import java.util.Locale;
  
  /**
   * <p>
   * FolderMetaData
   * </p>
   * <p>
   *
   * </p>
   * @author <a href="mailto:[EMAIL PROTECTED]">Scott T. Weaver</a>
   * @version $Id: FolderMetaData.java,v 1.1 2004/08/24 14:16:48 weaver Exp $
   *
   */
  public interface FolderMetaData
  {
      String getTitle();
      
      String getTitle(Locale locale);
  
  }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to