[ 
https://issues.apache.org/jira/browse/OODT-72?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12969423#action_12969423
 ] 

Brian Foster commented on OODT-72:
----------------------------------


Here is an alternative to having to set FileLocation at ingest time:

 - modify getMetadata(Product) and getReducedMetadata(Product, List<String>) 
such that if System property 'org.apache.oodt.cas.filemgr.complete.metadata' 
equals true (open to suggestions on that property name) Product/Reference 
values will be added to the Metadata

 - here is the mapping of Product to Metadata fields:
     product.getProductId() -> ProductId
     product.getProductName() -> ProductName
     product.getProductStructure() -> ProductStructure
     product.getTransferStatus() -> ProductTransferStatus
     product.getRootRef() -> ProductRootReference

 - For the References returned by product.getProductReferences() the following 
Metadata fields will be added (order will be maintained, such that data store 
ref at index 0 will map to orig ref at index 0, etc . . .):
     ProductDataStoreReferences (list of all data store references)
     ProductOrigReferences (list of all orig references)
     ProductMimeType (list of all references' mime-types)
     ProductFileSize (list of all references' file sizes)

 - Nominally this patch will add all described Metadata fields above if System 
property (mentioned above) is set to true . . . if later it is determined that 
only a subset of these fields are typically desired, then maybe an additional 
System property could be added to filter the list to a subset (or reduced set) 
of fields that should be added


> Unable to set Metadata based off Product Versioning during Product ingestion
> ----------------------------------------------------------------------------
>
>                 Key: OODT-72
>                 URL: https://issues.apache.org/jira/browse/OODT-72
>             Project: OODT
>          Issue Type: Improvement
>          Components: file manager
>    Affects Versions: 0.1-incubating
>         Environment: none
>            Reporter: Brian Foster
>            Assignee: Brian Foster
>            Priority: Minor
>             Fix For: 0.2
>
>
> Ingest order:
>   - add product to catalog
>   - metextractors run
>   - add metadata to catalog
>   - versioner runs (on client or on server)
>   - add references to catalog
> This prevents Metadata elements such as FileLocation from being set based off 
> Product References since metadata is added to catalog pre-versioning
> - A known work-around is to run the versioner twice (once in a MetExtractor 
> and again when the Versioner is run in the ingest process) . . . however this 
> is very much a work-around and setting elements such as FileLocation is a 
> very common functionality.
> I purpose that Versioning take place before MetExtractors run.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to