1 package com.openedit.util; 2 3 import com.openedit.OpenEditException; 4 import com.openedit.page.Page; 5 import com.openedit.page.manage.PageManager; 6 7 public class PageZipUtil extends ZipUtil 8 { 9 protected PageManager pageManager; 10 public PageZipUtil (PageManager inPageManager) 11 { 12 setPageManager(inPageManager); 13 } 14 protected boolean isValidEntry ( String inPath) throws OpenEditException 15 { 16 if( exclude( inPath )) 17 { 18 return false; 19 } 20 Page page = getPageManager().getPage(inPath); 21 String temp = page.get("excludefromzips"); 23 boolean excludePage = Boolean.parseBoolean(temp); 24 if (excludePage == true) 25 { 26 return false; 27 } 28 return true; 29 } 30 public PageManager getPageManager() 31 { 32 return pageManager; 33 } 34 public void setPageManager(PageManager inPageManager) 35 { 36 pageManager = inPageManager; 37 } 38 39 } 40 | Popular Tags |