Uploaded image for project: 'OODT (Retired)'
  1. OODT (Retired)
  2. OODT-215 Workflow2 Architecture
  3. OODT-426

Introduce a CAS-Metadata based renaming interface

    XMLWordPrintableJSON

Details

    Description

      The idea here is that CAS-Metadata will introduce a new NamingConvention interface, which will allow for renaming of files. CAS-Crawler will then be modified to support specified NamingConventions which will be run after all preconditions have passed for a given file. This will then allow CAS-PGE to then use AutoDetectProductCrawler instead of StdProductCrawler, which will standardize across the board for file extraction (currently CAS-PGE has it's own file extraction interface which uses regular expression to determine files which should be extracted and ingested). The only missing feature in CAS-Crawler which CAS-PGE supports is file renaming, which this new NamingConvention interface will introduce. Here is what the NamingConvention interface will look like:

      public interface NamingConvention {
      
         public File rename(File file, Metadata metadata)
               throws NamingConventionException;
      }
      

      Attachments

        1. OODT-426.2012-03-20.cas-crawler.patch.txt
          37 kB
          Brian Foster
        2. OODT-426.2012-03-20.cas-metadata.patch.txt
          6 kB
          Brian Foster
        3. OODT-426.2012-03-24.cas-crawler.patch.txt
          46 kB
          Brian Foster
        4. OODT-426.2012-04-03.cas-pge.txt
          69 kB
          Brian Foster

        Activity

          People

            bfoster Brian Foster
            bfoster Brian Foster
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: