| 1 |
<%@ taglib uri='struts-bean' prefix='bean' %> |
|---|
| 2 |
<%@ taglib uri='struts-logic' prefix='logic' %> |
|---|
| 3 |
<%@ taglib uri='bedework' prefix='bw' %> |
|---|
| 4 |
|
|---|
| 5 |
<bean:define id="eventFmt" name="eventFormatter" scope="request" /> |
|---|
| 6 |
<bean:define id="eventInfo" name="eventFmt" property="eventInfo" toScope="request" /> |
|---|
| 7 |
<bean:define id="event" name="eventFmt" property="event" toScope="request" /> |
|---|
| 8 |
<%-- Output a single event. This page handles fields common to all views --%> |
|---|
| 9 |
<event> |
|---|
| 10 |
<logic:present name="eventInfo" property="subscription"> |
|---|
| 11 |
<subscription> |
|---|
| 12 |
<id><bean:write name="eventInfo" property="subscription.id"/></id> |
|---|
| 13 |
<affectsFreeBusy><bean:write name="eventInfo" property="subscription.affectsFreeBusy"/></affectsFreeBusy> |
|---|
| 14 |
<style><bean:write name="eventInfo" property="subscription.style"/></style> |
|---|
| 15 |
</subscription> |
|---|
| 16 |
</logic:present> |
|---|
| 17 |
<logic:notPresent name="eventInfo" property="subscription"> |
|---|
| 18 |
<subscription> |
|---|
| 19 |
<id>-1</id> |
|---|
| 20 |
<affectsFreeBusy>false</affectsFreeBusy> |
|---|
| 21 |
<style></style> |
|---|
| 22 |
</subscription> |
|---|
| 23 |
</logic:notPresent> |
|---|
| 24 |
<start><%-- start date and time --%> |
|---|
| 25 |
<bean:define id="date" name="eventFmt" |
|---|
| 26 |
property="start" |
|---|
| 27 |
toScope="request" /> |
|---|
| 28 |
<%@ include file="/docs/event/emitDate.jsp" %> |
|---|
| 29 |
</start> |
|---|
| 30 |
<end><%-- end date and time --%> |
|---|
| 31 |
<bean:define id="date" name="eventFmt" |
|---|
| 32 |
property="end" |
|---|
| 33 |
toScope="request" /> |
|---|
| 34 |
<%@ include file="/docs/event/emitDate.jsp" %> |
|---|
| 35 |
</end> |
|---|
| 36 |
<id><bean:write name="event" property="id"/></id><%-- |
|---|
| 37 |
Value: integer - event id --%> |
|---|
| 38 |
<bw:emitText name="event" property="guid" /> |
|---|
| 39 |
<bw:emitText name="event" property="recurrence.recurrenceId" tagName="recurrenceId" /> |
|---|
| 40 |
<bw:emitText name="event" property="summary" /><%-- |
|---|
| 41 |
Value: string - short description, typically used for the event title --%> |
|---|
| 42 |
<bw:emitText name="event" property="link"/><%-- |
|---|
| 43 |
Value: URI - link associated with the event --%> |
|---|
| 44 |
<public><bean:write name="event" property="publick"/></public> |
|---|
| 45 |
<editable><bean:write name="eventInfo" property="editable"/></editable><%-- |
|---|
| 46 |
Value: true,false - true if user can edit (and delete) event, false otherwise --%> |
|---|
| 47 |
<logic:present name="event" property="target"> |
|---|
| 48 |
<isAnnotation/> |
|---|
| 49 |
</logic:present> |
|---|
| 50 |
<kind><bean:write name="eventInfo" property="kind"/></kind><%-- |
|---|
| 51 |
Value: 0 - actual event entry |
|---|
| 52 |
1 - 'added event' from a reference |
|---|
| 53 |
2 - from a subscription --%> |
|---|
| 54 |
<recurring><bean:write name="event" property="recurring"/></recurring><%-- |
|---|
| 55 |
Value: true,false - true if the event is recurring --%> |
|---|
| 56 |
<logic:present name="event" property="calendar"> |
|---|
| 57 |
<bean:define id="calendar" name="event" property="calendar"/> |
|---|
| 58 |
<calendar> |
|---|
| 59 |
<name><bean:write name="calendar" property="name"/></name><%-- |
|---|
| 60 |
Value: string - name of the calendar --%> |
|---|
| 61 |
<path><bean:write name="calendar" property="path"/></path><%-- |
|---|
| 62 |
Value: path to the calendar --%> |
|---|
| 63 |
<id><bean:write name="calendar" property="id"/></id><%-- |
|---|
| 64 |
Value: integer - calendar id --%> |
|---|
| 65 |
<owner><bean:write name="calendar" property="owner.account"/></owner><%-- |
|---|
| 66 |
Value: string - calendar owner id --%> |
|---|
| 67 |
</calendar> |
|---|
| 68 |
</logic:present> |
|---|
| 69 |
<logic:notPresent name="event" property="calendar"> |
|---|
| 70 |
<calendar> |
|---|
| 71 |
<name></name> |
|---|
| 72 |
<path></path> |
|---|
| 73 |
<id></id><%-- |
|---|
| 74 |
Value: integer - calendar id --%> |
|---|
| 75 |
<owner></owner><%-- |
|---|
| 76 |
Value: string - calendar owner id --%> |
|---|
| 77 |
</calendar> |
|---|
| 78 |
</logic:notPresent> |
|---|
| 79 |
<bw:emitText name="event" property="status" /><%-- Status |
|---|
| 80 |
Value: string, only one of CONFIRMED, TENTATIVE, or CANCELLED --%> |
|---|
| 81 |
<logic:notPresent name="detailView" scope="request"><%-- look for short form --%> |
|---|
| 82 |
<logic:notPresent name="allView" scope="request"> |
|---|
| 83 |
<jsp:include page="/docs/event/emitEventShort.jsp"/> |
|---|
| 84 |
</logic:notPresent> |
|---|
| 85 |
</logic:notPresent> |
|---|
| 86 |
|
|---|
| 87 |
<logic:present name="detailView" scope="request"> |
|---|
| 88 |
<jsp:include page="/docs/event/emitEventDetail.jsp"/> |
|---|
| 89 |
</logic:present> |
|---|
| 90 |
|
|---|
| 91 |
<logic:present name="allView" scope="request"> |
|---|
| 92 |
<jsp:include page="/docs/event/emitEventDetail.jsp"/> |
|---|
| 93 |
<jsp:include page="/docs/event/emitEventAll.jsp"/> |
|---|
| 94 |
</logic:present> |
|---|
| 95 |
|
|---|
| 96 |
|
|---|
| 97 |
<%-- **************************************************************** |
|---|
| 98 |
the following code should not be produced in the public client |
|---|
| 99 |
**************************************************************** --%> |
|---|
| 100 |
<bw:emitCurrentPrivs name="eventInfo" property="currentAccess" /> |
|---|
| 101 |
</event> |
|---|