Changeset 297
- Timestamp:
- 03/22/06 15:46:41
- Files:
-
- trunk/calendar3/appcommon/src/org/bedework/appcommon/FormattedEvents.java (modified) (2 diffs)
- trunk/calendar3/appcommon/src/org/bedework/appcommon/TimeView.java (modified) (11 diffs)
- trunk/calendar3/appcommon/src/org/bedework/appcommon/TimeViewDailyInfo.java (modified) (2 diffs)
- trunk/calendar3/appcommon/src/org/bedework/appcommon/TimeZonesParser.java (modified) (5 diffs)
- trunk/calendar3/bldfiles/buildwar.xml (modified) (1 diff)
- trunk/calendar3/caldav/src/edu/rpi/cct/uwcal/caldav/CaldavBWIntf.java (modified) (11 diffs)
- trunk/calendar3/calsvc/src/org/bedework/calsvc/CalSvc.java (modified) (5 diffs)
- trunk/calendar3/config/configs/democal.properties (modified) (1 diff)
- trunk/calendar3/deployment/dumprestore/shellscr/resources/log4j.xml (modified) (1 diff)
- trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl (modified) (1 diff)
- trunk/calendar3/dumprestore/properties/log4j.xml (modified) (1 diff)
- trunk/calendar3/dumprestore/src/org/bedework/dumprestore/restore/HibRestore.java (modified) (1 diff)
- trunk/calendar3/webclient/war/docs/alarmOptions.jsp (modified) (1 diff)
- trunk/calendar3/webclient/war/docs/editEvent.jsp (modified) (3 diffs)
- trunk/calendar3/webclient/war/docs/editLocation.jsp (modified) (1 diff)
- trunk/calendar3/webclient/war/docs/emailOptions.jsp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/calendar3/appcommon/src/org/bedework/appcommon/FormattedEvents.java
r128 r297 59 59 60 60 import java.util.AbstractCollection; 61 import java.util.ArrayList; 61 62 import java.util.Collection; 62 63 import java.util.Iterator; 63 import java.util.Vector;64 64 65 65 /** Object to provide a Collection of formatted BwEvent. … … 81 81 CalendarInfo calInfo, CalTimezones ctz) { 82 82 if (events == null) { 83 this.events = new Vector();83 this.events = new ArrayList(); 84 84 } else { 85 85 this.events = events; trunk/calendar3/appcommon/src/org/bedework/appcommon/TimeView.java
r273 r297 67 67 68 68 import java.io.Serializable; 69 import java.util.ArrayList; 69 70 import java.util.Collection; 70 71 import java.util.Date; 71 72 import java.util.Iterator; 72 73 import java.util.Locale; 73 import java.util.Vector;74 74 75 75 /** This class represents a view of the calendar from a startDate to an … … 271 271 */ 272 272 public Collection getDaysEvents(MyCalendarVO date) throws Throwable { 273 Vector v = new Vector();273 ArrayList al = new ArrayList(); 274 274 CalTimezones tzcache = cal.getTimezones(); 275 275 // Dur oneDay = new Dur(1, 0, 0, 0); … … 332 332 ": " + ev.getSummary()); 333 333 } 334 v.add(ei);335 } 336 } 337 338 return v;334 al.add(ei); 335 } 336 } 337 338 return al; 339 339 } 340 340 … … 426 426 GtpiData gtpi = new GtpiData(); 427 427 428 Vector months = new Vector();429 Vector weeks = new Vector();428 ArrayList months = new ArrayList(); 429 ArrayList weeks = new ArrayList(); 430 430 431 431 gtpi.first = getFirstDay(); … … 467 467 468 468 weekTvdi.setEntries(getOneWeekTvdi(gtpi)); 469 weeks.add Element(weekTvdi);469 weeks.add(weekTvdi); 470 470 471 471 if (getFirstDayOfWeek() == gtpi.currentDay.getDayOfWeek()) { … … 484 484 (TimeViewDailyInfo[])weeks.toArray(new TimeViewDailyInfo[ 485 485 weeks.size()])); 486 months.add Element(monthTvdi);486 months.add(monthTvdi); 487 487 488 488 if (gtpi.isLast) { … … 497 497 monthTvdi = new TimeViewDailyInfo(calInfo); 498 498 initTvdi(monthTvdi, gtpi); 499 weeks = new Vector();499 weeks = new ArrayList(); 500 500 } 501 501 } … … 547 547 */ 548 548 private TimeViewDailyInfo[] getOneWeekTvdi(GtpiData gtpi) throws Throwable { 549 Vector days = new Vector();549 ArrayList days = new ArrayList(); 550 550 TimeViewDailyInfo tvdi; 551 551 … … 562 562 tvdi.setFiller(true); 563 563 564 days.add Element(tvdi);564 days.add(tvdi); 565 565 dayNum++; 566 566 … … 610 610 tvdi.setLastDayOfWeek(calInfo.getLastDayOfWeek() == dayOfWeek); 611 611 612 days.add Element(tvdi);612 days.add(tvdi); 613 613 gtpi.isFirst = false; 614 614 … … 633 633 tvdi.setFiller(true); 634 634 635 days.add Element(tvdi);635 days.add(tvdi); 636 636 } 637 637 trunk/calendar3/appcommon/src/org/bedework/appcommon/TimeViewDailyInfo.java
r27 r297 58 58 59 59 import java.io.Serializable; 60 import java.util.ArrayList; 60 61 import java.util.Collection; 61 62 import java.util.Iterator; 62 import java.util.Vector; 63 63 64 import org.apache.log4j.Logger; 64 65 … … 557 558 if (eventFormatters == null) { 558 559 if (events == null) { 559 return new Vector();560 return new ArrayList(); 560 561 } 561 562 562 eventFormatters = new Vector();563 eventFormatters = new ArrayList(); 563 564 Iterator it = events.iterator(); 564 565 trunk/calendar3/appcommon/src/org/bedework/appcommon/TimeZonesParser.java
r18 r297 71 71 import java.io.InputStream; 72 72 import java.io.InputStreamReader; 73 import java.util.ArrayList; 73 74 import java.util.Collection; 74 75 import java.util.Iterator; 75 import java.util.Vector;76 76 77 77 import javax.xml.parsers.DocumentBuilder; … … 138 138 DirClass rootDir = parseTzDefs(new InputStreamReader(inStr)); 139 139 140 Vector v = new Vector();141 142 doDir( v, rootDir, "");143 144 return v;145 } 146 147 private String doDir( Vector v, DirClass dir, String indent) throws CalFacadeException {140 ArrayList al = new ArrayList(); 141 142 doDir(al, rootDir, ""); 143 144 return al; 145 } 146 147 private String doDir(ArrayList al, DirClass dir, String indent) throws CalFacadeException { 148 148 if (debug) { 149 149 trace(indent + "Dir: " + dir.cal.getName()); … … 152 152 Iterator dit = dir.dirs.iterator(); 153 153 while (dit.hasNext()) { 154 doDir( v, (DirClass)dit.next(), indent + " ");154 doDir(al, (DirClass)dit.next(), indent + " "); 155 155 } 156 156 … … 177 177 tzi.tzid = IcalUtil.getProperty(tzi.timezone, Property.TZID).getValue(); 178 178 179 v.add(tzi);179 al.add(tzi); 180 180 181 181 if (debug) { … … 190 190 BwCalendar cal; // The name will be set according to the dir/name 191 191 192 Collection dirs = new Vector();192 Collection dirs = new ArrayList(); 193 193 194 194 /* Collection of Calendar obects 195 195 */ 196 Collection tzs = new Vector();196 Collection tzs = new ArrayList(); 197 197 } 198 198 trunk/calendar3/bldfiles/buildwar.xml
r293 r297 386 386 <replace file="${app.dest.webinf}/jboss-web.xml"> 387 387 <replacetoken><![CDATA[<!-- Virtual host -->]]></replacetoken> 388 <replacevalue><![CDATA[<virtual-host>@VIRTUAL-HOST@</virtual-host> >388 <replacevalue><![CDATA[<virtual-host>@VIRTUAL-HOST@</virtual-host> 389 389 ]]> 390 390 </replacevalue> trunk/calendar3/caldav/src/edu/rpi/cct/uwcal/caldav/CaldavBWIntf.java
r293 r297 55 55 package edu.rpi.cct.uwcal.caldav; 56 56 57 import org.bedework.calenv.CalEnv;58 57 import org.bedework.calfacade.BwCalendar; 59 58 import org.bedework.calfacade.BwEvent; … … 89 88 import edu.rpi.cct.webdav.servlet.shared.WebdavTags; 90 89 91 import edu.rpi.sss.util.jsp.JspUtil;92 90 import edu.rpi.sss.util.xml.QName; 93 91 … … 97 95 import java.net.URI; 98 96 import java.net.URLDecoder; 97 import java.util.ArrayList; 99 98 import java.util.Collection; 100 99 import java.util.Enumeration; … … 102 101 import java.util.Iterator; 103 102 import java.util.Properties; 104 import java.util.Vector; 103 104 import javax.servlet.ServletContext; 105 105 import javax.servlet.http.HttpServletRequest; 106 import javax.servlet.http.HttpSession; 106 107 107 108 import org.w3c.dom.Element; … … 177 178 super.init(servlet, req, props, debug); 178 179 179 String contextRoot = JspUtil.getContext(req); 180 181 if ((contextRoot != null) && (contextRoot.startsWith("/"))) { 182 contextRoot = contextRoot.substring(1); 183 } 184 185 if ((contextRoot == null) || (contextRoot.length() == 0)) { 186 contextRoot = "root"; 187 } 188 189 try { 190 envPrefix = CalEnv.getProperty("org.bedework.envprefix." + contextRoot); 180 try { 181 HttpSession session = req.getSession(); 182 ServletContext sc = session.getServletContext(); 183 184 String appName = sc.getInitParameter("bwappname"); 185 186 if ((appName == null) || (appName.length() == 0)) { 187 appName = "unknown-app-name"; 188 } 189 190 envPrefix = "org.bedework.app." + appName + "."; 191 191 192 192 namespacePrefix = WebdavUtils.getUrlPrefix(req); … … 316 316 CaldavBwNode uwnode = getBwnode(node); 317 317 318 Vector v = new Vector();318 ArrayList al = new ArrayList(); 319 319 320 320 if (!uwnode.getCollection()) { 321 321 // Don't think we should have been called 322 return v.iterator();322 return al.iterator(); 323 323 } 324 324 … … 362 362 } 363 363 364 v.addElement(new CaldavCalNode(wi, svci, trans, debug));364 al.add(new CaldavCalNode(wi, svci, trans, debug)); 365 365 } else { 366 366 if (debug) { … … 370 370 CaldavComponentNode cnode = new CaldavComponentNode(wi, svci, trans, debug); 371 371 cnode.addEvent(ev); 372 v.addElement(cnode);373 } 374 } 375 376 return v.iterator();372 al.add(cnode); 373 } 374 } 375 376 return al.iterator(); 377 377 } catch (WebdavIntfException we) { 378 378 throw we; … … 713 713 String who; 714 714 715 Vector aces = new Vector();715 ArrayList aces = new ArrayList(); 716 716 } 717 717 … … 1065 1065 */ 1066 1066 1067 Collection evnodes = new Vector();1067 Collection evnodes = new ArrayList(); 1068 1068 HashMap evnodeMap = new HashMap(); 1069 1069 … … 1132 1132 1133 1133 Iterator it = freeBusy.getFreeBusy(svci, user).iterator(); 1134 Collection nodes = new Vector();1134 Collection nodes = new ArrayList(); 1135 1135 1136 1136 while (it.hasNext()) { trunk/calendar3/calsvc/src/org/bedework/calsvc/CalSvc.java
r293 r297 99 99 import edu.rpi.cct.uwcal.resources.Resources; 100 100 101 import java.util.ArrayList; 101 102 import java.util.Collection; 102 103 import java.util.HashMap; 103 104 import java.util.Iterator; 104 105 import java.util.TreeSet; 105 import java.util.Vector;106 106 107 107 import net.fortuna.ical4j.model.component.VTimeZone; … … 1006 1006 BwSubscription sub = BwSubscription.makeSubscription(cal); 1007 1007 1008 subs = new Vector();1008 subs = new ArrayList(); 1009 1009 subs.add(sub); 1010 1010 } else if (!currentUser().equals(who)) { … … 1939 1939 private Collection postProcess(Collection evs, BwSubscription sub) 1940 1940 throws CalFacadeException { 1941 Vector v = new Vector();1941 ArrayList al = new ArrayList(); 1942 1942 1943 1943 Iterator it = evs.iterator(); … … 1946 1946 BwEvent ev = (BwEvent)it.next(); 1947 1947 EventInfo ei = postProcess(ev, sub, null); 1948 v.addElement(ei);1949 } 1950 1951 return v;1948 al.add(ei); 1949 } 1950 1951 return al; 1952 1952 } 1953 1953 1954 1954 private Collection postProcess(Collection evs, HashMap sublookup) 1955 1955 throws CalFacadeException { 1956 Vector v = new Vector();1956 ArrayList al = new ArrayList(); 1957 1957 1958 1958 Iterator it = evs.iterator(); … … 1961 1961 BwEvent ev = (BwEvent)it.next(); 1962 1962 EventInfo ei = postProcess(ev, null, sublookup); 1963 v.addElement(ei);1964 } 1965 1966 return v;1963 al.add(ei); 1964 } 1965 1966 return al; 1967 1967 } 1968 1968 trunk/calendar3/config/configs/democal.properties
r293 r297 80 80 org.bedework.app.bwconfig.display.name=Bedework Config 81 81 org.bedework.app.bwconfig.name=bwconfig 82 org.bedework.app.bwconfig.env.prefix=org.bedework.webconfig.83 82 org.bedework.app.bwconfig.guestmode=true 84 83 org.bedework.app.bwconfig.publicadmin=false trunk/calendar3/deployment/dumprestore/shellscr/resources/log4j.xml
r2 r297 25 25 <appender name="FILE" class="org.apache.log4j.DailyRollingFileAppender"> 26 26 <errorHandler class="org.apache.log4j.helpers.OnlyOnceErrorHandler"/> 27 <param name="File" value=" /home/douglm/logs/test.log"/>27 <param name="File" value="${user.home}/logs/test.log"/> 28 28 <param name="Append" value="true"/> 29 29 trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
r294 r297 707 707 <xsl:variable name="eventIcalName" select="concat($id,'.ics')"/> 708 708 <a href="{$export}?subid={$subscriptionId}&calid={$calendarId}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&skinName=ical&contentType=text/calendar&contentName={$eventIcalName}" title="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"> 709 <img src="{$resourcesRoot}/ images/std-ical_icon_small.gif" width="12" height="16" border="0" alt="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"/>709 <img src="{$resourcesRoot}/resources/std-ical_icon_small.gif" width="12" height="16" border="0" alt="Download event as ical - for Outlook, PDAs, iCal, and other desktop calendars"/> 710 710 </a> 711 711 </td> trunk/calendar3/dumprestore/properties/log4j.xml
r48 r297 25 25 <appender name="FILE" class="org.apache.log4j.DailyRollingFileAppender"> 26 26 <errorHandler class="org.apache.log4j.helpers.OnlyOnceErrorHandler"/> 27 <param name="File" value=" /home/douglm/logs/test.log"/>27 <param name="File" value="${user.home}/logs/test.log"/> 28 28 <param name="Append" value="true"/> 29 29 trunk/calendar3/dumprestore/src/org/bedework/dumprestore/restore/HibRestore.java
r260 r297 205 205 } 206 206 207 open Sess();208 209 save(o);210 211 close Sess();207 openHibSess(); 208 209 hibSave(o); 210 211 closeHibSess(); 212 212 } 213 213 trunk/calendar3/webclient/war/docs/alarmOptions.jsp
r292 r297 45 45 <alarmTriggerSelectorDate> 46 46 <html:radio name="calForm" property="alarmTriggerByDate" 47 value="true" /> </input>47 value="true" /> 48 48 </alarmTriggerSelectorDate> 49 49 <alarmTriggerSelectorDuration> 50 50 <html:radio name="calForm" property="alarmTriggerByDate" 51 value="false" /> </input>51 value="false" /> 52 52 </alarmTriggerSelectorDuration> 53 53 <alarmduration> 54 <days><html:text size="5" maxlength="5" name="calForm" property="triggerDuration.daysStr"/></ input></days>55 <hours><html:text size="3" maxlength="3" name="calForm" property="triggerDuration.hoursStr"/></ input></hours>56 <minutes><html:text size="3" maxlength="3" name="calForm" property="triggerDuration.minutesStr"/></ input></minutes>57 <seconds><html:text size="3" maxlength="3" name="calForm" property="triggerDuration.secondsStr"/></ input></seconds>58 <weeks><html:text size="3" maxlength="3" name="calForm" property="triggerDuration.weeksStr"/></ input></weeks>54 <days><html:text size="5" maxlength="5" name="calForm" property="triggerDuration.daysStr"/></days> 55 <hours><html:text size="3" maxlength="3" name="calForm" property="triggerDuration.hoursStr"/></hours> 56 <minutes><html:text size="3" maxlength="3" name="calForm" property="triggerDuration.minutesStr"/></minutes> 57 <seconds><html:text size="3" maxlength="3" name="calForm" property="triggerDuration.secondsStr"/></seconds> 58 <weeks><html:text size="3" maxlength="3" name="calForm" property="triggerDuration.weeksStr"/></weeks> 59 59 </alarmduration> 60 60 <alarmDurationBefore> 61 61 <html:radio name="calForm" property="triggerDuration.negative" 62 value="true" /> </input>62 value="true" /> 63 63 </alarmDurationBefore> 64 64 <alarmDurationAfter> 65 65 <html:radio name="calForm" property="triggerDuration.negative" 66 value="false" /> </input>66 value="false" /> 67 67 </alarmDurationAfter> 68 68 <alarmDurationRelStart> 69 69 <html:radio name="calForm" property="alarmRelStart" 70 value="true" /> </input>70 value="true" /> 71 71 </alarmDurationRelStart> 72 72 <alarmDurationRelEnd> 73 73 <html:radio name="calForm" property="alarmRelStart" 74 value="false" /> </input>74 value="false" /> 75 75 </alarmDurationRelEnd> 76 <email><html:text name="calForm" property="lastEmail"/></ input></email>77 <subject><html:text name="calForm" property="lastSubject" /></ input></subject>76 <email><html:text name="calForm" property="lastEmail"/></email> 77 <subject><html:text name="calForm" property="lastSubject" /></subject> 78 78 </genurl:form> 79 79 </alarmoptionsform> trunk/calendar3/webclient/war/docs/editEvent.jsp
r292 r297 16 16 <genurl:form action="editEvent"> 17 17 <title> 18 <html:text property="editEvent.summary"/> </input>18 <html:text property="editEvent.summary"/> 19 19 </title> 20 20 <description> … … 22 22 </description> 23 23 <link> 24 <html:text property="editEvent.link" /> </input>24 <html:text property="editEvent.link" /> 25 25 </link> 26 26 <location> … … 33 33 </locationmenu> 34 34 <locationtext> 35 <html:text property="laddress" /> </input>35 <html:text property="laddress" /> 36 36 </locationtext> 37 37 </location> trunk/calendar3/webclient/war/docs/editLocation.jsp
r292 r297 14 14 <locationform> 15 15 <genurl:form action="editLoc"> 16 <address><html:text property="editLocation.address"/></ input></address>16 <address><html:text property="editLocation.address"/></address> 17 17 <subaddress><html:textarea property="editLocation.subaddress" rows="8" cols="55"/></subaddress> 18 <link><html:text property="editLocation.link" /></ input></link>18 <link><html:text property="editLocation.link" /></link> 19 19 <id><bean:write name="calForm" property="editLocation.id"/></id> 20 20 </genurl:form> trunk/calendar3/webclient/war/docs/emailOptions.jsp
r292 r297 15 15 <emailoptionsform> 16 16 <genurl:form action="mailEvent"> 17 <email><html:text name="calForm" property="lastEmail"/></ input></email>18 <subject><html:text name="calForm" property="lastSubject" /></ input></subject>17 <email><html:text name="calForm" property="lastEmail"/></email> 18 <subject><html:text name="calForm" property="lastSubject" /></subject> 19 19 </genurl:form> 20 20 </emailoptionsform>
