|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IEventUtils
This interface provides methods to construct iCal4j VEvents and
Attendees for the Scheduling Assistant stack.
It also provides short-hand inspection methods for these same objects.
| Method Summary | |
|---|---|
boolean |
attendeeMatchesPerson(net.fortuna.ical4j.model.Property attendee,
ICalendarAccount calendarAccount)
|
net.fortuna.ical4j.model.PeriodList |
calculateRecurrence(net.fortuna.ical4j.model.component.VEvent event,
Date startBoundary,
Date endBoundary)
Calculate recurrence dates for the specified events between the 2 date boundaries. |
net.fortuna.ical4j.model.component.VEvent |
constructAvailableAppointment(AvailableBlock block,
IScheduleOwner owner,
IScheduleVisitor visitor,
String eventDescription)
Construct an iCalendar EVENT for the Scheduling Assistant system. |
net.fortuna.ical4j.model.property.Attendee |
constructSchedulingAssistantAttendee(ICalendarAccount calendarAccount,
AppointmentRole role)
Construct an Attendee appropriate for the specified ICalendarAccount
for the specified role. |
List<net.fortuna.ical4j.model.Calendar> |
convertScheduleForReflection(AvailableSchedule availableSchedule)
Convert the AvailableSchedule into an iCalendar Calendar
for the purposes of reflection back into the calendar system. |
net.fortuna.ical4j.model.property.Uid |
extractUid(net.fortuna.ical4j.model.Calendar calendar)
If the Calendar contains one and only one event (series), return the Uid. |
net.fortuna.ical4j.model.property.Uid |
generateNewUid()
Generate a new Uid, intended for use with Scheduling Assistant VEvents. |
net.fortuna.ical4j.model.Property |
getAttendeeForUserFromEvent(net.fortuna.ical4j.model.component.VEvent event,
ICalendarAccount calendarUser)
Walk through the attendee list in the VEvent argument. |
net.fortuna.ical4j.model.PropertyList |
getAttendeeListFromEvent(net.fortuna.ical4j.model.component.VEvent event)
If the event is a Scheduling Assistant event, retrieve only the attendees on the event set by the Available system. |
Integer |
getEventVisitorLimit(net.fortuna.ical4j.model.component.VEvent event)
If the event argument is an event created by the Scheduling Assistant, return the value of it's VisitorLimit property. |
int |
getScheduleVisitorCount(net.fortuna.ical4j.model.component.VEvent event)
Return the number of Attendees in the event
that have the role AppointmentRole.VISITOR. |
boolean |
isAttendingAsOwner(net.fortuna.ical4j.model.component.VEvent event,
ICalendarAccount proposedOwner)
|
boolean |
isAttendingAsVisitor(net.fortuna.ical4j.model.component.VEvent event,
ICalendarAccount proposedVisitor)
|
boolean |
isAttendingMatch(net.fortuna.ical4j.model.component.VEvent event,
IScheduleVisitor visitor,
IScheduleOwner owner)
Returns true if the visitor and owner are in the VEvent's attendee list,
the visitor argument has VISITOR role in the event, and the owner argument has OWNER role in the event. |
boolean |
isEventRecurring(net.fortuna.ical4j.model.component.VEvent event)
|
boolean |
willEventCauseConflict(ICalendarAccount calendarAccount,
net.fortuna.ical4j.model.component.VEvent event)
This method defines our criteria for which VEvents will cause a conflict
(either a red/busy block in the visible schedule or cause ConflictExistsExceptions). |
net.fortuna.ical4j.model.Calendar |
wrapEventInCalendar(net.fortuna.ical4j.model.component.VEvent event)
Wrap the VEvent argument in a Calendar. |
| Method Detail |
|---|
net.fortuna.ical4j.model.component.VEvent constructAvailableAppointment(AvailableBlock block,
IScheduleOwner owner,
IScheduleVisitor visitor,
String eventDescription)
AppointmentRole#BOTH.
Otherwise, owner and visitor will be added as ATTENDEEs with the corresponding AppointmentRole.
The eventDescription argument will be added to the DESCRIPTION of the event. If the owner is detected as an academic advisor, and
the visitor is a student, the student's "wiscedustudentid" value will be appended to the DESCRIPTION.
block - the selected AvailableBlockowner - the owner of the appointmentvisitor - the visitor to the appointmenteventDescription - text to enter into the DESCRIPTION property for the appointment
IllegalArgumentException - if any of the arguments (except the guids) are null, or if the data is not parsed properly by iCal4j
net.fortuna.ical4j.model.property.Attendee constructSchedulingAssistantAttendee(ICalendarAccount calendarAccount,
AppointmentRole role)
Attendee appropriate for the specified ICalendarAccount
for the specified role.
calendarAccount - role -
AppointmentRole
net.fortuna.ical4j.model.Property getAttendeeForUserFromEvent(net.fortuna.ical4j.model.component.VEvent event,
ICalendarAccount calendarUser)
VEvent argument.
Return the matching Attendee for the ICalendarAccount argument, or null
if the ICalendarAccount is not in the attendee list.
event - calendarUser -
attendeeMatchesPerson(Property, ICalendarAccount)net.fortuna.ical4j.model.PropertyList getAttendeeListFromEvent(net.fortuna.ical4j.model.component.VEvent event)
PropertyList.
event -
boolean attendeeMatchesPerson(net.fortuna.ical4j.model.Property attendee,
ICalendarAccount calendarAccount)
attendee - calendarAccount -
Property is an attendee that matches the ICalendarAccountint getScheduleVisitorCount(net.fortuna.ical4j.model.component.VEvent event)
Attendees in the event
that have the role AppointmentRole.VISITOR.
event -
boolean willEventCauseConflict(ICalendarAccount calendarAccount,
net.fortuna.ical4j.model.component.VEvent event)
VEvents will cause a conflict
(either a red/busy block in the visible schedule or cause ConflictExistsExceptions).
calendarAccount - event - an VEvent, including non-scheduling assistant appointments
VEvent will cause a conflict for the ICalendarAccount
boolean isAttendingMatch(net.fortuna.ical4j.model.component.VEvent event,
IScheduleVisitor visitor,
IScheduleOwner owner)
VEvent's attendee list,
the visitor argument has VISITOR role in the event, and the owner argument has OWNER role in the event.
event - visitor - owner -
VEvent's attendee list, the visitor argument has VISITOR role in the event, and the owner argument has OWNER role in the event
boolean isAttendingAsVisitor(net.fortuna.ical4j.model.component.VEvent event,
ICalendarAccount proposedVisitor)
event - proposedVisitor -
VEvent's attendee list as an IScheduleVisitor
boolean isAttendingAsOwner(net.fortuna.ical4j.model.component.VEvent event,
ICalendarAccount proposedOwner)
event - proposedOwner -
VEvent's attendee list as an IScheduleOwnerList<net.fortuna.ical4j.model.Calendar> convertScheduleForReflection(AvailableSchedule availableSchedule)
AvailableSchedule into an iCalendar Calendar
for the purposes of reflection back into the calendar system.
availableSchedule -
ICalendarDataDao.reflectAvailableSchedule(IScheduleOwner, AvailableSchedule)net.fortuna.ical4j.model.property.Uid generateNewUid()
Uid, intended for use with Scheduling Assistant VEvents.
Uidnet.fortuna.ical4j.model.Calendar wrapEventInCalendar(net.fortuna.ical4j.model.component.VEvent event)
VEvent argument in a Calendar.
event -
Integer getEventVisitorLimit(net.fortuna.ical4j.model.component.VEvent event)
VisitorLimit property.
If the event argument is not a Scheduling Assistant event, this method returns null.
event -
VisitorLimit if the event is a scheduling assistant appointment; if not return nullboolean isEventRecurring(net.fortuna.ical4j.model.component.VEvent event)
event -
net.fortuna.ical4j.model.PeriodList calculateRecurrence(net.fortuna.ical4j.model.component.VEvent event,
Date startBoundary,
Date endBoundary)
event - startBoundary - endBoundary -
PeriodListnet.fortuna.ical4j.model.property.Uid extractUid(net.fortuna.ical4j.model.Calendar calendar)
Calendar contains one and only one event (series), return the Uid.
calendar -
Uid contains by the event in this calendar
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||