[ 
https://issues.apache.org/jira/browse/STANBOL-488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13206802#comment-13206802
 ] 

Olivier Grisel commented on STANBOL-488:
----------------------------------------

I would rather not make them part of the ContentItem API but would rather 
extend the EnhancementEngine API to have pass an enhancementContext that would 
host such properties:

boolean canEnhance(ContentItem ci, Map<String, Object> enhancementContext)
void computeEnhancements(ContentItem ci, Map<String, Object> enhancementContext)

We could make the enhancementContext context optional for engines that do not 
care about those parameters and presever backward compat.
                
> 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

        

Reply via email to