[
https://issues.apache.org/jira/browse/UNOMI-350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Serge Huber updated UNOMI-350:
------------------------------
Description:
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}
was:
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
> 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: Anatol Sialitski
> 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)