You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by GitBox <gi...@apache.org> on 2021/09/29 09:46:29 UTC

[GitHub] [unomi] sergehuber opened a new pull request #344: [DRAFT][UNOMI-512] Custom item types

sergehuber opened a new pull request #344:
URL: https://github.com/apache/unomi/pull/344


   Support for custom items:
   - Made it possible to declare new custom item types that will inherit from the Item class and be loaded as CustomItem instances, but that can have any structure in the properties map. Custom item types have a "subtype" that defines its unique type and that is used to store the custom item objects in seperate indices in the persistence service. It is also possible to query custom item types using new methods in the PersistenceService SPI.
   Moved the ParserHelper into the API
   - The ParserHelper is very useful to load conditions and apply visitors on them, so it was moved to the API in order to be easier to re-use in multiple subsystems or plugins.
   Moved the ValueExtractors into the ParserHelper
   - The ValueExtractors used in the ActionExecutorDispatcherImpl have been moved into the ParserHelper so that they can be re-used more easily, for example to use them in other places such as conditions or other objects. The script value extractor, that has security issues is not part of the default set of value extractors and is currently only added in the ActionExecutorDispatcherImpl.
   Make is possible to add custom ItemDeserializers from plugins
   - It is now possible for plugins to add their own Item deserializers in the CustomObjectMapper using new methods to register mappings. This can be used by plugins to add new Item types and is used by the new custom item type subsystem.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@unomi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [unomi] sergehuber merged pull request #344: [UNOMI-512] Custom item types

Posted by GitBox <gi...@apache.org>.
sergehuber merged pull request #344:
URL: https://github.com/apache/unomi/pull/344


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@unomi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org