portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/components/page-manager/src/java/org/apache/jetspeed/page/document CastorFileSystemDocumentHandler.java
Date Fri, 03 Sep 2004 19:40:56 GMT
weaver      2004/09/03 12:40:56

  Modified:    components/page-manager/src/java/org/apache/jetspeed/page/document
                        CastorFileSystemDocumentHandler.java
  Log:
  switched to NodeNotFoundException
  
  Revision  Changes    Path
  1.2       +3 -9      jakarta-jetspeed-2/components/page-manager/src/java/org/apache/jetspeed/page/document/CastorFileSystemDocumentHandler.java
  
  Index: CastorFileSystemDocumentHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/page-manager/src/java/org/apache/jetspeed/page/document/CastorFileSystemDocumentHandler.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CastorFileSystemDocumentHandler.java	3 Sep 2004 13:22:06 -0000	1.1
  +++ CastorFileSystemDocumentHandler.java	3 Sep 2004 19:40:56 -0000	1.2
  @@ -27,14 +27,8 @@
   import org.apache.jetspeed.cache.file.FileCache;
   import org.apache.jetspeed.cache.file.FileCacheEntry;
   import org.apache.jetspeed.cache.file.FileCacheEventListener;
  -import org.apache.jetspeed.om.folder.FolderNotFoundException;
   import org.apache.jetspeed.om.page.Document;
   import org.apache.jetspeed.page.PageNotFoundException;
  -import org.apache.jetspeed.page.document.DocumentException;
  -import org.apache.jetspeed.page.document.DocumentHandler;
  -import org.apache.jetspeed.page.document.DocumentNotFoundException;
  -import org.apache.jetspeed.page.document.FailedToDeleteDocumentException;
  -import org.apache.jetspeed.page.document.FailedToUpdateDocumentException;
   import org.apache.xml.serialize.OutputFormat;
   import org.apache.xml.serialize.Serializer;
   import org.apache.xml.serialize.XMLSerializer;
  @@ -223,7 +217,7 @@
   
       }
   
  -    protected Object unmarshallDocument( Class clazz, String path, String extension ) throws
FolderNotFoundException,
  +    protected Object unmarshallDocument( Class clazz, String path, String extension ) throws
NodeNotFoundException,
               DocumentException
       {
           Document document = null;
  @@ -413,7 +407,7 @@
           if (entry.getDocument() instanceof Document && ((Document) entry.getDocument()).getId().endsWith(documentType))
           {
               Document document = (Document) entry.getDocument();
  -            Document freshDoc = getDocument(document.getId());
  +            Document freshDoc = getDocument(document.getId(), false);
               freshDoc.setParent(document.getParent());
               freshDoc.setPath(document.getPath());
               entry.setDocument(freshDoc);
  
  
  

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