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
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