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 FileSystemFolderHandler.java
Date Thu, 09 Sep 2004 20:45:49 GMT
weaver      2004/09/09 13:45:49

  Modified:    components/page-manager/src/java/org/apache/jetspeed/page/document
                        FileSystemFolderHandler.java
  Log:
  Improved folder refresh logic
  
  Revision  Changes    Path
  1.2       +8 -2      jakarta-jetspeed-2/components/page-manager/src/java/org/apache/jetspeed/page/document/FileSystemFolderHandler.java
  
  Index: FileSystemFolderHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/page-manager/src/java/org/apache/jetspeed/page/document/FileSystemFolderHandler.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FileSystemFolderHandler.java	3 Sep 2004 13:22:06 -0000	1.1
  +++ FileSystemFolderHandler.java	9 Sep 2004 20:45:49 -0000	1.2
  @@ -348,13 +348,19 @@
           {
               Folder folder = (Folder) entry.getDocument();            
               entry.setDocument(getFolder(folder.getPath(), false));
  +            if(folder.getParent() != null)
  +            {
  +                FileCacheEntry parentEntry = (FileCacheEntry)fileCache.get(folder.getParent().getPath());
  +                refresh(parentEntry);                
  +            }
           }
           else if(entry.getDocument() instanceof Document)
           {
               Document doc = (Document) entry.getDocument();
               if(doc.getType().equals(FolderMetaData.DOCUMENT_TYPE))
               {
  -                addToCache(doc.getParent().getPath(), getFolder(doc.getParent().getPath(),
false));
  +                FileCacheEntry folderEntry = fileCache.get(doc.getParent().getPath());
  +                refresh(folderEntry);
               }
           }
   
  
  
  

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