Examples of addDate()


Examples of com.liferay.portal.kernel.search.Document.addDate()

   
    Guestbook guestbook = (Guestbook)obj;

    Document document = getBaseModelDocument(PORTLET_ID, guestbook);

    document.addDate(Field.MODIFIED_DATE, guestbook.getModifiedDate());
    document.addText(Field.TITLE, guestbook.getName());
    document.addKeyword(Field.GROUP_ID, getSiteGroupId(guestbook.getGroupId()));
    document.addKeyword(Field.SCOPE_GROUP_ID, guestbook.getGroupId());
   
    return document;
View Full Code Here

Examples of com.liferay.portal.kernel.search.Document.addDate()

   
    Entry entry = (Entry)obj;

    Document document = getBaseModelDocument(PORTLET_ID, entry);

    document.addDate(Field.MODIFIED_DATE, entry.getModifiedDate());
    document.addText(Field.CONTENT, entry.getMessage());
    document.addText(Field.TITLE, entry.getName());
    document.addText("email", entry.getEmail());
    document.addKeyword(Field.GROUP_ID, getSiteGroupId(entry.getGroupId()));
    document.addKeyword(Field.SCOPE_GROUP_ID, entry.getGroupId());
View Full Code Here

Examples of javax.microedition.pim.Event.addDate()

            throws PIMException {
        final Event event = events.createEvent();
        if (events.isSupportedField(Event.LOCATION))
            event.addString(Event.LOCATION, Event.ATTR_NONE, channelTitle);
        if (events.isSupportedField(Event.START))
            event.addDate(Event.START, Event.ATTR_NONE, TimeProcessorImpl.createDateByMinutes(programme.startMinutes)
                    .getTime());
        if (events.isSupportedField(Event.END))
            event.addDate(Event.END, Event.ATTR_NONE, TimeProcessorImpl.createDateByMinutes(
                    programme.startMinutes + programme.lengthMinutes).getTime());
        if (programme.title != null && events.isSupportedField(Event.SUMMARY))
View Full Code Here

Examples of javax.microedition.pim.Event.addDate()

            event.addString(Event.LOCATION, Event.ATTR_NONE, channelTitle);
        if (events.isSupportedField(Event.START))
            event.addDate(Event.START, Event.ATTR_NONE, TimeProcessorImpl.createDateByMinutes(programme.startMinutes)
                    .getTime());
        if (events.isSupportedField(Event.END))
            event.addDate(Event.END, Event.ATTR_NONE, TimeProcessorImpl.createDateByMinutes(
                    programme.startMinutes + programme.lengthMinutes).getTime());
        if (programme.title != null && events.isSupportedField(Event.SUMMARY))
            event.addString(Event.SUMMARY, Event.ATTR_NONE, programme.title);
        if (programme.description != null && events.isSupportedField(Event.NOTE))
            event.addString(Event.NOTE, Event.ATTR_NONE, programme.description);
View Full Code Here

Examples of javax.microedition.pim.Event.addDate()

  protected void cr(EventList events, Date when, String title) throws PIMException {
    final Event event = events.createEvent();
        if (events.isSupportedField(Event.LOCATION))
            event.addString(Event.LOCATION, Event.ATTR_NONE, title);
        if (events.isSupportedField(Event.START))
            event.addDate(Event.START, Event.ATTR_NONE, when.getTime());
        if (events.isSupportedField(Event.END))
            event.addDate(Event.END, Event.ATTR_NONE, when.getTime()+60000);
        if ( events.isSupportedField(Event.SUMMARY))
            event.addString(Event.SUMMARY, Event.ATTR_NONE, title);
        if (events.isSupportedField(Event.ALARM))
View Full Code Here

Examples of javax.microedition.pim.Event.addDate()

        if (events.isSupportedField(Event.LOCATION))
            event.addString(Event.LOCATION, Event.ATTR_NONE, title);
        if (events.isSupportedField(Event.START))
            event.addDate(Event.START, Event.ATTR_NONE, when.getTime());
        if (events.isSupportedField(Event.END))
            event.addDate(Event.END, Event.ATTR_NONE, when.getTime()+60000);
        if ( events.isSupportedField(Event.SUMMARY))
            event.addString(Event.SUMMARY, Event.ATTR_NONE, title);
        if (events.isSupportedField(Event.ALARM))
            event.addInt(Event.ALARM, Event.ATTR_NONE, 60);
        if (events.maxCategories() != 0 && events.isCategory("TV"))
View Full Code Here

Examples of jsprit.analysis.toolbox.ComputationalLaboratory.DataCollector.addDate()

      @Override
      public void calculationStarts(BenchmarkInstance p, final String algorithmName,VehicleRoutingAlgorithm algorithm, final int run) {}
     
      @Override
      public void calculationEnds(BenchmarkInstance p, String algorithmName,VehicleRoutingAlgorithm algorithm, int run,Collection<VehicleRoutingProblemSolution> solutions) {
        dataCollector.addDate("R101", algorithmName, run, "costs", Solutions.bestOf(solutions).getCost());
      }
     
    });
   
    computationalLab.setThreads(2);
View Full Code Here

Examples of org.apache.marmotta.commons.sesame.facading.collections.model.CollectionFacade.addDate()

            CollectionFacade facade = facading.createFacade(uri, CollectionFacade.class);

            facade.setDates(Arrays.asList(a, b, c));
            Assert.assertThat(facade.getDates(), hasItems(a, b, c));

            facade.addDate(e);
            Assert.assertThat(facade.getDates(), hasItems(c, e, b, a));

            facade.setDates(Arrays.asList(a, d, now));
            Assert.assertThat(facade.getDates(), hasItems(a, d, now));
            Assert.assertThat(facade.getDates(), CoreMatchers.not(hasItems(c, e, b)));
View Full Code Here

Examples of org.apache.marmotta.commons.sesame.facading.collections.model.CollectionFacade.addDate()

            CollectionFacade facade = facading.createFacade(uri, CollectionFacade.class);

            facade.setDates(Arrays.asList(a, b, c));
            Assert.assertThat(facade.getDates(), hasItems(a, b, c));

            facade.addDate(e);
            Assert.assertThat(facade.getDates(), hasItems(c, e, b, a));

            facade.setDates(Arrays.asList(a, d, now));
            Assert.assertThat(facade.getDates(), hasItems(a, d, now));
            Assert.assertThat(facade.getDates(), CoreMatchers.not(hasItems(c, e, b)));
View Full Code Here

Examples of org.apache.xmlgraphics.xmp.schemas.DublinCoreAdapter.addDate()

        }
        if (info.getSubject() != null) {
            //Subject maps to dc:description["x-default"] as per ISO-19005-1:2005/Cor.1:2007
            dc.setDescription(null, info.getSubject());
        }
        dc.addDate(info.getCreationDate());

        //PDF/A identification
        PDFAMode pdfaMode = pdfDoc.getProfile().getPDFAMode();
        if (pdfaMode.isPDFA1LevelB()) {
            PDFAAdapter pdfa = PDFAXMPSchema.getAdapter(meta);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.