Changeset 372

Show
Ignore:
Timestamp:
04/13/06 14:01:01
Author:
douglm
Message:

Fix bug which broke public calendars client
More freebusy

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/calendar3/appcommon/src/org/bedework/appcommon/EventFormatter.java

    r331 r372  
    8181 
    8282  private CalTimezones ctz; 
    83    
    84   private CalSvcI svci; 
     83 
     84  //private CalSvcI svci; 
    8585 
    8686  /** The view currently in place. 
     
    9898 
    9999  private String xmlAccess; 
    100    
     100 
    101101  /** Constructor 
    102102   * 
     
    111111    this.calInfo = calInfo; 
    112112    this.ctz= ctz; 
    113     this.svci = svci; 
     113    //this.svci = svci; 
    114114  } 
    115115 
     
    206206    return end; 
    207207  } 
    208    
     208 
    209209  public String getXmlAccess() { 
    210210    try { 
  • trunk/calendar3/appcommon/src/org/bedework/appcommon/TimeView.java

    r366 r372  
    100100  protected boolean showData; 
    101101 
    102   /* Fetched at initialisation 
     102  /* Fetched when required 
    103103   */ 
    104104  protected Collection events; 
     
    148148    this.showData = showData; 
    149149    this.debug = debug; 
    150  
    151     /* 
    152     events = cal.getEvents(null, null, CalFacadeUtil.getDateTime(firstDay.getDateDigits()), 
    153                       CalFacadeUtil.getDateTime(lastDay.getDateDigits())); 
    154                       */ 
    155150  } 
    156151 
  • trunk/calendar3/calFacade/src/org/bedework/calfacade/svc/BwPreferences.java

    r336 r372  
    8888   */ 
    8989  private String preferredEndType; 
    90    
     90 
    9191  /** Value identifying an extra simple user mode - we just do stuff without 
    9292   * asking 
    9393   */ 
    9494  public static final int extraSimpleMode = 0; 
    95    
     95 
    9696  /** Value identifying a simple user mode - we hide some stuff but make 
    9797   * fewer assumptions 
    9898   */ 
    9999  public static final int simpleMode = 1; 
    100    
     100 
    101101  /** Value identifying an advanced user mode - reveal it in all its glory 
    102102   */ 
     
    104104 
    105105  private int userMode; 
    106    
     106 
    107107  /** Constructor 
    108108   * 
     
    343343    return getViews().iterator(); 
    344344  } 
     345 
     346  /** Turn a String time value e.g. 1030 into a numeric minutes value and set 
     347   * the numeric value in the prefeences. 
     348   * 
     349   * <p>Ignores anything after the first four characters which must all be digits. 
     350   * 
     351   * @param val  String time value 
     352   */ 
     353  public void setWorkdayStart(String val) throws CalFacadeException{ 
     354    boolean badval = false; 
     355    int minutes = 0; 
     356 
     357    try { 
     358      int hours = Integer.parseInt(val.substring(0, 2)); 
     359      minutes = Integer.parseInt(val.substring(2, 4)); 
     360      if ((hours < 0) || (hours > 24)) { 
     361        badval = true; 
     362      } else if ((minutes < 0) || (minutes > 59)) { 
     363        badval = true; 
     364      } else { 
     365        minutes *= (hours * 60); 
     366      } 
     367    } catch (Throwable t) { 
     368      badval = true; 
     369    } 
     370 
     371    if (badval) { 
     372      throw new CalFacadeException("org.bedework.prefs.badvalue", val); 
     373    } 
     374 
     375    setWorkdayStart(minutes); 
     376  } 
     377 
     378  /** 
     379   * @return int work day start 
     380   * / 
     381  public int getWorkdayStart() { 
     382    return workdayStart; 
     383  }*/ 
    345384 
    346385  /* ==================================================================== 
  • trunk/calendar3/calsvc/src/org/bedework/calsvc/CalSvc.java

    r369 r372  
    20732073     * This way we get too many. 
    20742074     */ 
    2075     if (!isPublicAdmin()) { 
     2075    if (!isGuest() && !isPublicAdmin()) { 
    20762076      deleted = getCal().getDeletedProxies(); 
    20772077    }