Package org.fao.geonet.domain

Examples of org.fao.geonet.domain.ISODate


    baseURL   = ident.getChildText("baseURL",        OaiPmh.Namespaces.OAI_PMH);

    //--- store earliest datestamp

    String eds = ident.getChildText("earliestDatestamp", OaiPmh.Namespaces.OAI_PMH);
    earlDateStamp = new ISODate(eds);

    //--- add admin emails

    for (Object o : ident.getChildren("adminEmail", OaiPmh.Namespaces.OAI_PMH))
    {
View Full Code Here


    String expDt = rt.getAttributeValue("expirationDate");
    String listSz= rt.getAttributeValue("completeListSize");
    String curs  = rt.getAttributeValue("cursor");

    setExpirDate((expDt  == null) ? null : new ISODate(expDt));
    listSize  = (listSz == null) ? null : Integer.valueOf(listSz);
    cursor    = (curs   == null) ? null : Integer.valueOf(curs);
  }
View Full Code Here

            sources = Lists.newArrayList(source);
        }

        Source source = sources.get(0);
        ArrayList<String> id = new ArrayList<String>(1);
        String createDate = new ISODate().getDateAndTime();
        Importer.importRecord(uuid,
                uuidAction, Lists.newArrayList(metadata), schema, 0,
                source.getUuid(), source.getName(), context,
                id, createDate, createDate,
                "" + groupId, metadataType);
View Full Code Here

    if (date == null)
      return null;

    try
    {
      return new ISODate(date);
    }
    catch(Exception e)
    {
      throw new BadArgumentException("Illegal date format : "+ date);
    }
View Full Code Here

                        final Element sampleMetadataXml = getSampleMetadataXml();
                        final UserSession userSession = serviceContext.getUserSession();
                        final int userIdAsInt = userSession.getUserIdAsInt();
                        final String mdId = _dataManager.insertMetadata(serviceContext, "iso19139", sampleMetadataXml,
                                "uuid" + _inc.incrementAndGet(), userIdAsInt, "2", "source",
                                MetadataType.METADATA.codeString, null, "maps", new ISODate().getDateAndTime(),
                                new ISODate().getDateAndTime(), false, false);
                        Element newMd = new Element("MD_Metadata", GMD).addContent(new Element("fileIdentifier",
                                GMD).addContent(new Element("CharacterString", GCO)));

                        Metadata updateMd = _dataManager.updateMetadata(serviceContext, mdId, newMd, false, false, false, "eng",
                                new ISODate().getDateAndTime(), false);
                        assertNotNull(updateMd);
                        final boolean hasNext = updateMd.getCategories().iterator().hasNext();
                        assertTrue(hasNext);
                    }
                });
View Full Code Here

     * @param context
     * @return
     * @throws CatalogException
     */
    public Element execute(Element request, ServiceContext context) throws CatalogException {
        String timeStamp = new ISODate().toString();
       
        // Return exception is indexing.
        GeonetContext gc = (GeonetContext) context.getHandlerContext(Geonet.CONTEXT_NAME);
        DataManager dataManager = gc.getBean(DataManager.class);
        if (dataManager.isIndexing()) {
View Full Code Here

TOP

Related Classes of org.fao.geonet.domain.ISODate

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.