Package org.fao.geonet.domain

Examples of org.fao.geonet.domain.ISODate


  private Set<RecordInfo> search(ListIdentifiersRequest req, Search s) throws OperationAbortedEx
  {
    //--- setup search parameters

    if (s.from.length() != 0req.setFrom(new ISODate(s.from));
      else              req.setFrom(null);

    if (s.until.length() != 0req.setUntil(new ISODate(s.until));
      else               req.setUntil(null);

    if (s.set.length() != 0)   req.setSet(s.set);
      else               req.setSet(null);
View Full Code Here


     */
    private void retrieveThesaurusTitle(File thesaurusFile, String defaultTitle, boolean ignoreMissingError) {
        // set defaults as in the case of a local thesaurus file, this info
        // may not be present yet
        this.title = defaultTitle;
        this.date = new ISODate().toString();

        try {
            Element thesaurusEl = Xml.loadFile(thesaurusFile);

            List<Namespace> theNSs = new ArrayList<Namespace>();
View Full Code Here

        /**
         * default constructor.
         */
        public Year() {
            super(new ISODate(), SUBSTRING_END);
        }
View Full Code Here

        private static final int SUBSTRING_END = 7;
        /**
         * default constructor.
         */
        public Month() {
            super(new ISODate(), SUBSTRING_END);
        }
View Full Code Here

        private static final int SUBSTRING_END = 10;
        /**
         * default constructor.
         */
        public Day() {
            super(new ISODate(), SUBSTRING_END);
        }
View Full Code Here

        private static final int SUBSTRING_END = 13;
        /**
         * default constructor.
         */
        public Hour() {
            super(new ISODate(), SUBSTRING_END);
        }
View Full Code Here

        private static final int SUBSTRING_END = 16;
        /**
         * default constructor.
         */
        public Minute() {
            super(new ISODate(), SUBSTRING_END);
        }
View Full Code Here

        private static final int SUBSTRING_END = 19;
        /**
         * default constructor.
         */
        public Second() {
            super(new ISODate(), SUBSTRING_END);
        }
View Full Code Here

        md.setDataAndFixCR(xml);

        if (updateDateStamp)  {
            if (changeDate == null)  {
                md.getDataInfo().setChangeDate( new ISODate());
            } else {
                md.getDataInfo().setChangeDate( new ISODate(changeDate));
            }
        }

        if (uuid != null) {
            md.setUuid(uuid);
View Full Code Here

  //---------------------------------------------------------------------------

  public boolean isMoreRecentThan(String localChangeDate)
  {
    ISODate localDate = new ISODate(localChangeDate);

    //--- accept if remote date is greater than local date

    return (changeDate.timeDifferenceInSeconds(localDate) > 0);
  }
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.