You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by "Serge Huber (Jira)" <ji...@apache.org> on 2021/01/21 09:43:00 UTC
[jira] [Assigned] (UNOMI-350) Implement CDP_Source definition &
retrieval.
[ https://issues.apache.org/jira/browse/UNOMI-350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Serge Huber reassigned UNOMI-350:
---------------------------------
Assignee: Serge Huber (was: Anatol Sialitski)
> Implement CDP_Source definition & retrieval.
> --------------------------------------------
>
> Key: UNOMI-350
> URL: https://issues.apache.org/jira/browse/UNOMI-350
> Project: Apache Unomi
> Issue Type: Sub-task
> Reporter: Serge Huber
> Assignee: Serge Huber
> Priority: Major
>
> We need to implement CDP source mutations & storage and then filtering incoming events to accept only defined sources.
> Sources should map to Event scope and use a new SourceItem class that needs to be added/implemented will just use map the source id to the scope string. Only defined source IDs should be allowed. If an event is sent with a sourceID that doesn't exist, the event will be rejected.
> Implement also:
> - SourceService interface
> - SourceServiceImpl that uses the persistenceService to save/load/list/remove the items
> Also, integration tests must be added for these new objects
> {code}
> @Deprecated("replaced by sourceId, in the meantime both values should be the same. If no value exists for sourceId but one exists for scope, getSourceId should return scope value.")
> private String scope;
>
> private String sourceId;
> @Deprecated
> private Item source;
> @Deprecated
> public Item getSource() {
> return source;
> }
> public String getSourceId() {
> if (sourceId == null && scope != null) {
> return scope;
> } else return sourceId
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)