Class IcalHandler
- java.lang.Object
-
- org.apache.openmeetings.util.mail.IcalHandler
-
public class IcalHandler extends Object
- Author:
- o.becherer, seba.wagner
-
-
Field Summary
Fields Modifier and Type Field Description static net.fortuna.ical4j.model.property.MethodICAL_METHOD_CANCELstatic net.fortuna.ical4j.model.property.MethodICAL_METHOD_REFRESHstatic net.fortuna.ical4j.model.property.MethodICAL_METHOD_REQUESTCreation of a new Eventstatic net.fortuna.ical4j.model.TimeZoneRegistryTZ_REGISTRY
-
Constructor Summary
Constructors Constructor Description IcalHandler(net.fortuna.ical4j.model.property.Method method)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IcalHandleraddAttendee(String email, String display, boolean chair)IcalHandleraddOrganizer(String email, String name)IcalHandlerbuild()IcalHandlercreateVEvent(ZonedDateTime start, ZonedDateTime end, String name)net.fortuna.ical4j.model.property.MethodgetMethod()IcalHandlersetCreated(ZonedDateTime date)IcalHandlersetDescription(String description)IcalHandlersetLocation(String location)IcalHandlersetModified(ZonedDateTime date)IcalHandlersetSequence(int seq)IcalHandlersetUid(String uid)byte[]toByteArray()Get IcalBody as ByteArrayvoidtoFile(String inFilerPath)Write iCal to FileStringtoString()Retrieving Data as String
-
-
-
Field Detail
-
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_REQUEST
Creation 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
-
-
Method Detail
-
createVEvent
public IcalHandler createVEvent(ZonedDateTime start, ZonedDateTime end, String name)
-
setCreated
public IcalHandler setCreated(ZonedDateTime date)
-
setModified
public IcalHandler setModified(ZonedDateTime date)
-
setDescription
public IcalHandler setDescription(String description)
-
setLocation
public IcalHandler setLocation(String location)
-
setSequence
public IcalHandler setSequence(int seq)
-
setUid
public IcalHandler setUid(String uid)
-
addOrganizer
public IcalHandler addOrganizer(String email, String name)
-
addAttendee
public IcalHandler addAttendee(String email, String display, boolean chair)
-
build
public IcalHandler build()
-
getMethod
public net.fortuna.ical4j.model.property.Method getMethod()
-
toFile
public void toFile(String inFilerPath) throws Exception
Write iCal to File- Parameters:
inFilerPath- - path to '*.ics' file- Throws:
Exception- - in case of error during writing to the file
-
toByteArray
public byte[] toByteArray() throws IOExceptionGet 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
-
-