java.lang.Object
org.apache.openmeetings.util.mail.IcalHandler
- Author:
- o.becherer, seba.wagner
-
Field Summary
Modifier and TypeFieldDescriptionstatic final net.fortuna.ical4j.model.property.Method
static final net.fortuna.ical4j.model.property.Method
static final net.fortuna.ical4j.model.property.Method
Creation of a new Eventstatic final net.fortuna.ical4j.model.TimeZoneRegistry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAttendee
(String email, String display, boolean chair) addOrganizer
(String email, String name) build()
createVEvent
(ZonedDateTime start, ZonedDateTime end, String name) net.fortuna.ical4j.model.property.Method
setCreated
(ZonedDateTime date) setDescription
(String description) setLocation
(String location) setModified
(ZonedDateTime date) setSequence
(int seq) byte[]
Get IcalBody as ByteArrayvoid
Write iCal to FiletoString()
Retrieving Data as String
-
Field Details
-
TZ_REGISTRY
public static final net.fortuna.ical4j.model.TimeZoneRegistry TZ_REGISTRY -
ICAL_METHOD_REQUEST
public static final net.fortuna.ical4j.model.property.Method ICAL_METHOD_REQUESTCreation of a new Event -
ICAL_METHOD_CANCEL
public static final net.fortuna.ical4j.model.property.Method ICAL_METHOD_CANCEL -
ICAL_METHOD_REFRESH
public static final net.fortuna.ical4j.model.property.Method ICAL_METHOD_REFRESH
-
-
Constructor Details
-
IcalHandler
public IcalHandler(net.fortuna.ical4j.model.property.Method method) Constructor- Parameters:
method
- (@see IcalHandler) constants
-
-
Method Details
-
createVEvent
-
setCreated
-
setModified
-
setDescription
-
setLocation
-
setSequence
-
setUid
-
addOrganizer
-
addAttendee
-
build
-
getMethod
public net.fortuna.ical4j.model.property.Method getMethod() -
toFile
Write iCal to File- Parameters:
inFilerPath
- - path to '*.ics' file- Throws:
Exception
- - in case of error during writing to the file
-
toByteArray
Get IcalBody as ByteArray- Returns:
- - calendar in ICS format as byte[]
- Throws:
IOException
- - in case of error during writing to byte arraynet.fortuna.ical4j.validate.ValidationException
- - in case of invalid calendar properties
-
toString
Retrieving Data as String
-