Changeset 372
- Timestamp:
- 04/13/06 14:01:01
- Files:
-
- trunk/calendar3/appcommon/src/org/bedework/appcommon/EventFormatter.java (modified) (4 diffs)
- trunk/calendar3/appcommon/src/org/bedework/appcommon/TimeView.java (modified) (2 diffs)
- trunk/calendar3/calFacade/src/org/bedework/calfacade/svc/BwPreferences.java (modified) (3 diffs)
- trunk/calendar3/calsvc/src/org/bedework/calsvc/CalSvc.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/calendar3/appcommon/src/org/bedework/appcommon/EventFormatter.java
r331 r372 81 81 82 82 private CalTimezones ctz; 83 84 private CalSvcI svci;83 84 //private CalSvcI svci; 85 85 86 86 /** The view currently in place. … … 98 98 99 99 private String xmlAccess; 100 100 101 101 /** Constructor 102 102 * … … 111 111 this.calInfo = calInfo; 112 112 this.ctz= ctz; 113 this.svci = svci;113 //this.svci = svci; 114 114 } 115 115 … … 206 206 return end; 207 207 } 208 208 209 209 public String getXmlAccess() { 210 210 try { trunk/calendar3/appcommon/src/org/bedework/appcommon/TimeView.java
r366 r372 100 100 protected boolean showData; 101 101 102 /* Fetched at initialisation102 /* Fetched when required 103 103 */ 104 104 protected Collection events; … … 148 148 this.showData = showData; 149 149 this.debug = debug; 150 151 /*152 events = cal.getEvents(null, null, CalFacadeUtil.getDateTime(firstDay.getDateDigits()),153 CalFacadeUtil.getDateTime(lastDay.getDateDigits()));154 */155 150 } 156 151 trunk/calendar3/calFacade/src/org/bedework/calfacade/svc/BwPreferences.java
r336 r372 88 88 */ 89 89 private String preferredEndType; 90 90 91 91 /** Value identifying an extra simple user mode - we just do stuff without 92 92 * asking 93 93 */ 94 94 public static final int extraSimpleMode = 0; 95 95 96 96 /** Value identifying a simple user mode - we hide some stuff but make 97 97 * fewer assumptions 98 98 */ 99 99 public static final int simpleMode = 1; 100 100 101 101 /** Value identifying an advanced user mode - reveal it in all its glory 102 102 */ … … 104 104 105 105 private int userMode; 106 106 107 107 /** Constructor 108 108 * … … 343 343 return getViews().iterator(); 344 344 } 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 }*/ 345 384 346 385 /* ==================================================================== trunk/calendar3/calsvc/src/org/bedework/calsvc/CalSvc.java
r369 r372 2073 2073 * This way we get too many. 2074 2074 */ 2075 if (!is PublicAdmin()) {2075 if (!isGuest() && !isPublicAdmin()) { 2076 2076 deleted = getCal().getDeletedProxies(); 2077 2077 }
