[
https://issues.apache.org/jira/browse/STANBOL-488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13206861#comment-13206861
]
Olivier Grisel commented on STANBOL-488:
----------------------------------------
I would rather prefer either option-1 or extending the EnhancementEngine API as
I suggested previously. EnhancementContextManager.getContext(UriRef
contentItemId) is problematic as the execution context should be identified by
a job id and not a contentItemId (a content item might be analyzed several
times by several clients and maybe even in parallel). I don't want to enforce a
any kind on semantic constraints on the content item id that is releted to the
fact that this content is under enhancement process.
> 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