[
https://issues.apache.org/jira/browse/STANBOL-488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13206803#comment-13206803
]
Olivier Grisel commented on STANBOL-488:
----------------------------------------
Let me further motivate this separation. To me enhancementContext properties
are technical transient contextual metadata of the enhancement process itself,
not of the content under analysis (e.g. service credentials). They making them
part of the contentParts would break this distinction and we would run the risk
of having engines or other components (e.g. the ContentHub) expose or store
such credentials as content element or content metadata which they are not.
> EnhancementProperties
> ---------------------
>
> Key: STANBOL-488
> URL: https://issues.apache.org/jira/browse/STANBOL-488
> Project: Stanbol
> Issue Type: New Feature
> Components: Enhancer
> Reporter: Rupert Westenthaler
> Assignee: Rupert Westenthaler
>
> Enhancement Properties represent a "Map<String,Object>" that can be used to
> add properties to an Enhancement Request.
> EnhancementProperties are a simple way to share information within an
> EnhancementRequest. Intended Usage include:
> * Users may parse special properties that can be accessed by all components
> of the EnhancementProcess (e.g. user.name user.pwd for external services)
> * To share parameters parsed as Query Parameters such as defined by
> STANBOL-481
> Implementation:
> (1) Store EnhancementProperties as ContentPart with the URI
> "urn:apache.org:stanbol.web:enhancement.properties"
> (2) Provide an EnhancementPropertiesHelper with helper methods
> (3) Optionally extend the ContentItem interface with a method to get the
> EnhancementPrpoerties
> + getEnhancementProperties() : Map<String,Object>
> This Issue will initially cover (1) and (2). (3) needs to be discussed
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira