- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 53 of file Calendar.java.
◆ Calendar()
org.turro.ical.Calendar.Calendar |
( |
String |
name | ) |
|
Definition at line 59 of file Calendar.java.
60 icsCalendar =
new net.fortuna.ical4j.model.
Calendar();
61 icsCalendar.getProperties().add(
new ProdId(name));
62 icsCalendar.getProperties().add(Version.VERSION_2_0);
63 icsCalendar.getProperties().add(CalScale.GREGORIAN);
◆ addAttendee()
void org.turro.ical.Calendar.addAttendee |
( |
String |
name, |
|
|
String |
email |
|
) |
| |
Definition at line 103 of file Calendar.java.
106 umail = URI.create(
"mailto:" + email);
107 }
catch(Exception ex) {
108 umail = URI.create(
"mailto:" + Contacts.getNoEmail());
110 Attendee attendee =
new Attendee(umail);
111 attendee.getParameters().add(Role.REQ_PARTICIPANT);
112 attendee.getParameters().add(
new Cn(name));
113 currentEvent.getProperties().add(attendee);
◆ addEvent()
void org.turro.ical.Calendar.addEvent |
( |
Date |
start, |
|
|
Date |
end, |
|
|
String |
name, |
|
|
String |
description |
|
) |
| |
Definition at line 66 of file Calendar.java.
68 currentEvent =
new VEvent(
new DateTime(start),
new DateTime(end ==
null ? start : end), name);
69 currentEvent.getProperties().add(
new Description(description));
73 UidGenerator ug =
new FixedUidGenerator(
"uidGen");
74 Uid uid = ug.generateUid();
75 currentEvent.getProperties().add(uid);
77 icsCalendar.getComponents().add(currentEvent);
78 }
catch (SocketException ex) {
79 Logger.getLogger(
Calendar.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
◆ addLocation()
void org.turro.ical.Calendar.addLocation |
( |
String |
address | ) |
|
Definition at line 116 of file Calendar.java.
117 if(!Strings.isBlank(address)) {
118 Location location =
new Location(address);
119 currentEvent.getProperties().add(location);
◆ output()
void org.turro.ical.Calendar.output |
( |
OutputStream |
out | ) |
|
Definition at line 123 of file Calendar.java.
125 CalendarOutputter outputter =
new CalendarOutputter();
126 outputter.output(icsCalendar, out);
127 }
catch (IOException ex) {
128 Logger.getLogger(
Calendar.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
◆ setCancelled()
void org.turro.ical.Calendar.setCancelled |
( |
| ) |
|
Definition at line 99 of file Calendar.java.
100 currentEvent.getProperties().add(
new Status(
"CANCELLED"));
◆ setCompleted()
void org.turro.ical.Calendar.setCompleted |
( |
| ) |
|
Definition at line 95 of file Calendar.java.
96 currentEvent.getProperties().add(
new Completed(
new DateTime(endDate)));
◆ setOrganizer()
void org.turro.ical.Calendar.setOrganizer |
( |
String |
name, |
|
|
String |
email |
|
) |
| |
Definition at line 83 of file Calendar.java.
86 umail = URI.create(
"mailto:" + email);
87 }
catch(Exception ex) {
88 umail = URI.create(
"mailto:" + Contacts.getNoEmail());
90 Organizer organizer =
new Organizer(umail);
91 organizer.getParameters().add(
new Cn(name));
92 currentEvent.getProperties().add(organizer);
The documentation for this class was generated from the following file: