Changeset 363

Show
Ignore:
Timestamp:
04/11/06 11:13:18
Author:
douglm
Message:

Recent updates weren't good for admin. Fixed

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/calendar3/calsvc/src/org/bedework/calsvc/CalSvc.java

    r361 r363  
    19871987  private Collection postProcess(Collection ceis, BwSubscription sub) 
    19881988          throws CalFacadeException { 
     1989    return postProcess(ceis, sub, null); 
     1990  } 
     1991 
     1992  private Collection postProcess(Collection ceis, HashMap sublookup) 
     1993          throws CalFacadeException { 
     1994    return postProcess(ceis, null, sublookup); 
     1995  } 
     1996 
     1997  private Collection postProcess(Collection ceis, 
     1998                                 BwSubscription sub, HashMap sublookup) 
     1999          throws CalFacadeException { 
    19892000    ArrayList al = new ArrayList(); 
     2001    Collection deleted = null; 
    19902002 
    19912003    /* XXX possibly not a great idea. We should probably retrieve the 
     
    19942006     * This way we get too many. 
    19952007     */ 
    1996     Collection deleted = getCal().getDeletedProxies(); 
     2008    if (!isPublicAdmin()) { 
     2009      deleted = getCal().getDeletedProxies(); 
     2010    } 
     2011 
     2012    //traceDeleted(deleted); 
    19972013 
    19982014    Iterator it = ceis.iterator(); 
     
    20012017      CoreEventInfo cei = (CoreEventInfo)it.next(); 
    20022018 
    2003       if (!isDeleted(deleted, cei)) { 
    2004         EventInfo ei = postProcess(cei, sub, null); 
    2005         al.add(ei); 
    2006       } 
    2007     } 
    2008  
    2009     return al; 
    2010   } 
    2011  
    2012   private Collection postProcess(Collection ceis, HashMap sublookup) 
    2013           throws CalFacadeException { 
    2014     ArrayList al = new ArrayList(); 
    2015  
    2016     /* XXX possibly not a great idea. We should probably retrieve the 
    2017      * deleted events at the same time as we retrieve the desired set. 
    2018      * 
    2019      * This way we get too many. 
    2020      */ 
    2021     Collection deleted = getCal().getDeletedProxies(); 
    2022  
    2023     //traceDeleted(deleted); 
    2024  
    2025     Iterator it = ceis.iterator(); 
    2026  
    2027     while (it.hasNext()) { 
    2028       CoreEventInfo cei = (CoreEventInfo)it.next(); 
    2029  
    20302019 //     if (!deleted.contains(cei)) { 
    20312020      if (!isDeleted(deleted, cei)) { 
    2032         EventInfo ei = postProcess(cei, null, sublookup); 
     2021        EventInfo ei = postProcess(cei, sub, sublookup); 
    20332022        al.add(ei); 
    20342023      }