Changeset 200
- Timestamp:
- 02/24/06 15:29:51
- Files:
-
- trunk/calendar3/calCore/resources/hbms/Event.hbm.xml (modified) (2 diffs)
- trunk/calendar3/calCore/src/org/bedework/calcore/hibernate/Events.java (modified) (1 diff)
- trunk/calendar3/calFacade/src/org/bedework/calfacade/BwEventProxy.java (modified) (1 diff)
- trunk/calendar3/calsvc/src/org/bedework/calsvc/CalSvc.java (modified) (3 diffs)
- trunk/calendar3/webclient/war/docs/emitEvent.jsp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/calendar3/calCore/resources/hbms/Event.hbm.xml
r176 r200 90 90 column="calendarid" 91 91 not-null="false" 92 index="idx_event_calendar" />92 index="idx_event_calendar" unique-key="event-key" /> 93 93 <!-- not-null should be true above - but the restore code needs 94 94 changing to write events with the calendar filled in. --> … … 120 120 <property name="name" column="eventname" type="text"/> 121 121 122 <!-- ownerid + guid + sequence + recurrence-id is a unique key. -->122 <!-- (ownerid +) calendarid + guid + sequence + recurrence-id is a unique key. --> 123 123 <property name="guid" type="text" unique-key="event-key" /> 124 124 trunk/calendar3/calCore/src/org/bedework/calcore/hibernate/Events.java
r172 r200 355 355 assignGuid(val); 356 356 357 /* The guid must not exist in the s ystem. The above call assigns a guid if357 /* The guid must not exist in the same calendar. The above call assigns a guid if 358 358 * one wasn't assigned already. However, the event may have come with a guid 359 * (caldav, import, etc) so we need to c ehck here.359 * (caldav, import, etc) so we need to check here. 360 360 * 361 361 * It also ensures our guid allocation is working OK trunk/calendar3/calFacade/src/org/bedework/calfacade/BwEventProxy.java
r2 r200 172 172 /** Set the owner 173 173 * 174 * @param val UserVOowner of the entity174 * @param val BwUser owner of the entity 175 175 */ 176 176 public void setOwner(BwUser val) { trunk/calendar3/calsvc/src/org/bedework/calsvc/CalSvc.java
r192 r200 1552 1552 if (calendar != null) { 1553 1553 internal.addChild(calendar); 1554 sublookup.put(new Integer(calendar.getId()), sub);1554 putSublookup(sublookup, sub, calendar); 1555 1555 } 1556 1556 } … … 1564 1564 return ts; 1565 1565 } 1566 1567 private void putSublookup(HashMap sublookup, BwSubscription sub, BwCalendar cal) { 1568 if (cal.getCalendarCollection()) { 1569 // Leaf node 1570 sublookup.put(new Integer(cal.getId()), sub); 1571 return; 1572 } 1573 1574 Iterator it = cal.iterateChildren(); 1575 while (it.hasNext()) { 1576 putSublookup(sublookup, sub, (BwCalendar)it.next()); 1577 } 1578 } 1566 1579 1567 1580 public DelEventResult deleteEvent(BwEvent event, … … 1599 1612 EventUpdateResult updResult = new EventUpdateResult(); 1600 1613 1601 setupSharableEntity(event); 1614 if (event instanceof BwEventProxy) { 1615 BwEventProxy proxy = (BwEventProxy)event; 1616 BwEvent override = proxy.getTarget(); 1617 setupSharableEntity(override); 1618 } else { 1619 setupSharableEntity(event); 1620 } 1602 1621 1603 1622 BwLocation loc = event.getLocation(); trunk/calendar3/webclient/war/docs/emitEvent.jsp
r147 r200 7 7 <%-- Output a single event --%> 8 8 <event> 9 <logic:present name="event " property="subscription">9 <logic:present name="eventInfo" property="subscription"> 10 10 <subscription> 11 11 <id><bean:write name="eventInfo" property="subscription.id"/></id> … … 14 14 </subscription> 15 15 </logic:present> 16 <logic:notPresent name="event " property="subscription">16 <logic:notPresent name="eventInfo" property="subscription"> 17 17 <subscription> 18 18 <id>-1</id>
