You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by "Brian Foster (JIRA)" <ji...@apache.org> on 2011/03/25 21:05:06 UTC

[jira] [Resolved] (OODT-166) Ability for puspull to dynamically generate ProductName for a given mime-type

     [ https://issues.apache.org/jira/browse/OODT-166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Foster resolved OODT-166.
-------------------------------

    Resolution: Fixed


- fixed in r1085203

> Ability for puspull to dynamically generate ProductName for a given mime-type
> -----------------------------------------------------------------------------
>
>                 Key: OODT-166
>                 URL: https://issues.apache.org/jira/browse/OODT-166
>             Project: OODT
>          Issue Type: Improvement
>          Components: push pull framework
>    Affects Versions: 0.2
>         Environment: none
>            Reporter: Brian Foster
>            Assignee: Brian Foster
>            Priority: Minor
>             Fix For: 0.3
>
>         Attachments: OODT-166.2011-03-22.patch.txt
>
>
> Instead of <_comment> element in Tika mime-type file being use as ProductType value, the value will became a key value list of metadata fields to be added to the RemoteFile metadata. 
> Example:
> {noformat}
> ...
> 	<mime-type type="product/pgp_signature">
> 		<_comment>ProductNameGenerator=[GREP_RM('\.sig&','[FILENAME]')]</_comment>
> 		<glob pattern="*.sig"/>
> 	</mime-type>
> 	<mime-type type="product/rtg_sst">
> 		<sub-class-of type="ncep/model"/>
> 		<_comment>ProductType=RTG_SST && UniqueElement=RetrievedFromLoc</_comment>
> 		<glob pattern="rtg_sst_grb_0\.5\.\d{8}" isregex="true"/>
>                 <glob pattern="sst\.\d{8}_rtgssthr_grb_0\.5\.grib2" isregex="true"/>
> 	</mime-type>
> ...
> {noformat}
> The metadata field 'ProductNameGenerator' will be used to generate a dynamic ProductName.  It can be set to any renaming convention supported by the second parameter for Pushpull's RenamingConvention static method: rename(ProtocolFile, String).
> The metadata field 'UniqueElement' can be use to override the 'queryElement' attribute specified for the current daemon in the RemoteSpecs.xml <dataInfo> element.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira