Package net.fortuna.ical4j.model.property

Examples of net.fortuna.ical4j.model.property.ProdId


        meeting.getProperties().add(dev2);

        // Create a calendar
        net.fortuna.ical4j.model.Calendar icsCalendar = new net.fortuna.ical4j.model.Calendar();
        icsCalendar.getProperties().add(Version.VERSION_2_0);
        icsCalendar.getProperties().add(new ProdId("-//Events Calendar//iCal4j 1.0//EN"));
        icsCalendar.getProperties().add(CalScale.GREGORIAN);

        // Add the event and print
        icsCalendar.getComponents().add(meeting);
        return icsCalendar;
View Full Code Here


   
    System.setProperty("net.fortuna.ical4j.timezone.update.enabled", "false");
   
    icsCalendar = new net.fortuna.ical4j.model.Calendar();

    icsCalendar.getProperties().add(new ProdId("-//Events Calendar//iCal4j 1.0//EN"));
    icsCalendar.getProperties().add(Version.VERSION_2_0);
    icsCalendar.getProperties().add(CalScale.GREGORIAN);
   
    icsCalendar.getProperties().add(method);
  }
View Full Code Here

        meeting.getProperties().add(dev2);

        // Create a calendar
        net.fortuna.ical4j.model.Calendar icsCalendar = new net.fortuna.ical4j.model.Calendar();
        icsCalendar.getProperties().add(Version.VERSION_2_0);
        icsCalendar.getProperties().add(new ProdId("-//Events Calendar//iCal4j 1.0//EN"));
        icsCalendar.getProperties().add(CalScale.GREGORIAN);

        // Add the event and print
        icsCalendar.getComponents().add(meeting);
        return icsCalendar;
View Full Code Here

   * creates a ICS calendar request
   *
   * @throws Exception
   */
  public void init() throws Exception {
    cal.getProperties().add(new ProdId("-//iloveoutlook//iCal4j 1.0//EN"));
    cal.getProperties().add(
        net.fortuna.ical4j.model.property.Version.VERSION_2_0);
    cal.getProperties().add(CalScale.GREGORIAN);
    cal.getProperties().add(
        net.fortuna.ical4j.model.property.Method.REQUEST);
View Full Code Here

    public static Calendar createCalendar(List<EventBean> events) {

        final String prodIdCompany = Unit.getInstitutionName().getContent();
        Calendar calendar = new Calendar();
        calendar.getProperties().add(new ProdId("-//" + prodIdCompany + "//" + PROD_ID_APPLICATION + "//PT"));
        calendar.getProperties().add(Version.VERSION_2_0);
        calendar.getProperties().add(CalScale.GREGORIAN);

        VTimeZone tz = TIMEZONE.getVTimeZone();
        calendar.getComponents().add(tz);
View Full Code Here

  }

  public static String getICal(final TeamEventDO teamEvent, final TeamEventMailType type) {
    final StringBuffer buf = new StringBuffer();
    final Calendar calendar = new Calendar();
    calendar.getProperties().add(new ProdId("-//Ben Fortuna//iCal4j 1.0//EN"));
    calendar.getProperties().add(Version.VERSION_2_0);
    calendar.getProperties().add(CalScale.GREGORIAN);
    final TimeZoneRegistry registry = TimeZoneRegistryFactory.getInstance().createRegistry();
    final VTimeZone tz = registry.getTimeZone(PFUserContext.getTimeZone().getID()).getVTimeZone();
    calendar.getComponents().add(tz);
View Full Code Here

    }
    // creating a new calendar
    final Calendar calendar = new Calendar();
    final Locale locale = PFUserContext.getLocale();
    calendar.getProperties().add(
        new ProdId("-//" + loggedInUser.getDisplayUsername() + "//ProjectForge//" + locale.toString().toUpperCase()));
    calendar.getProperties().add(Version.VERSION_2_0);
    calendar.getProperties().add(CalScale.GREGORIAN);

    // setup event is needed for empty calendars
    calendar.getComponents().add(new VEvent(new net.fortuna.ical4j.model.Date(0), SETUP_EVENT));
View Full Code Here

   * creates a ICS calendar request
   *
   * @throws Exception
   */
  public void init() throws Exception {
    cal.getProperties().add(new ProdId("-//iloveoutlook//iCal4j 1.0//EN"));
    cal.getProperties().add(
        net.fortuna.ical4j.model.property.Version.VERSION_2_0);
    cal.getProperties().add(CalScale.GREGORIAN);
    cal.getProperties().add(
        net.fortuna.ical4j.model.property.Method.REQUEST);
View Full Code Here

    log.debug("Icalhandler method type : " + methodType);
   
    icsCalendar = new net.fortuna.ical4j.model.Calendar();

    icsCalendar.getProperties().add(
        new ProdId("-//Events Calendar//iCal4j 1.0//EN"));
    icsCalendar.getProperties().add(CalScale.GREGORIAN);
    icsCalendar.getProperties().add(Version.VERSION_2_0);
   
    // Switch Method Type
    // we comment out the Method type for now: The event type needs an organizer
View Full Code Here

    meeting.getProperties().add(dev2);

    // Create a calendar
    net.fortuna.ical4j.model.Calendar icsCalendar = new net.fortuna.ical4j.model.Calendar();
    icsCalendar.getProperties().add(
        new ProdId("-//Events Calendar//iCal4j 1.0//EN"));
    icsCalendar.getProperties().add(CalScale.GREGORIAN);
    icsCalendar.getProperties().add(Version.VERSION_2_0);

    // Add the event and print
    icsCalendar.getComponents().add(meeting);
View Full Code Here

TOP

Related Classes of net.fortuna.ical4j.model.property.ProdId

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.