/** * Retrieves the Enhancement Properties for the parsed Engine from the ContentItem. * <p> * The returned map will contain: <ol> * <li> Request scoped properties defined for the parsed enhancement engines * <li> Request scoped properties defined for chain * <li> Chain scoped properties defined for the parsed enhancement engine * <li> Chain scoped properties defined for the chain. * </ol> * NOTES: <ul> * <li> The specification (see <a href="https://issues.apache.org/jira/browse/STANBOL-488">STANBOL-488</a>) * required properties to start with '<code>enhancer.</code>'. While this * implementation does not enforce this requirement non compliant properties * will most likely get filtered earlier and not be part of the returned map. * <li> Properties of an higher priority do override those with an lower one. * </ul> * @param engine the enhancement engine requesting the properties * @param ci the content item (representing the enhancement request). * @return The enhancement properties. This is a read/write copy of the * read-only configuration. * @see #getEnhancementPropertyDict(EnhancementEngine, ContentItem) */ public static Dictionary<String,Object> getEnhancementPropertyDict(EnhancementEngine engine, ContentItem ci){ return new DictionaryAdapter<String,Object>(getEnhancementProperties(engine, ci)); } /**
/** * Retrieves the Enhancement Properties for the parsed Engine from the ContentItem. * <p> * The returned map will contain: <ol> * <li> Request scoped properties defined for the parsed enhancement engines * <li> Request scoped properties defined for chain * <li> Chain scoped properties defined for the parsed enhancement engine * <li> Chain scoped properties defined for the chain. * </ol> * NOTES: <ul> * <li> The specification (see <a href="https://issues.apache.org/jira/browse/STANBOL-488">STANBOL-488</a>) * required properties to start with '<code>enhancer.</code>'. While this * implementation does not enforce this requirement non compliant properties * will most likely get filtered earlier and not be part of the returned map. * <li> Properties of an higher priority do override those with an lower one. * </ul> * @param engine the enhancement engine requesting the properties * @param ci the content item (representing the enhancement request). * @return The enhancement properties. This is a read/write copy of the * read-only configuration. * @see #getEnhancementPropertyDict(EnhancementEngine, ContentItem) */ public static Dictionary<String,Object> getEnhancementPropertyDict(EnhancementEngine engine, ContentItem ci){ return new DictionaryAdapter<String,Object>(getEnhancementProperties(engine, ci)); } /**