Code Review
/
aai
/
data-router.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix Spike Event Processing with Common Format
[aai/data-router.git]
/
src
/
main
/
java
/
org
/
onap
/
aai
/
datarouter
/
entity
/
SpikeEventVertex.java
diff --git
a/src/main/java/org/onap/aai/datarouter/entity/SpikeEventVertex.java
b/src/main/java/org/onap/aai/datarouter/entity/SpikeEventVertex.java
index
43b3816
..
2350f93
100644
(file)
--- a/
src/main/java/org/onap/aai/datarouter/entity/SpikeEventVertex.java
+++ b/
src/main/java/org/onap/aai/datarouter/entity/SpikeEventVertex.java
@@
-20,31
+20,29
@@
*/
package org.onap.aai.datarouter.entity;
*/
package org.onap.aai.datarouter.entity;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-
/**
* A convenience POJO for mapping the Vertex from a Spike Event.
*
/**
* A convenience POJO for mapping the Vertex from a Spike Event.
*
- * @author salmaA
*/
*/
-@JsonIgnoreProperties(ignoreUnknown = true)
public class SpikeEventVertex {
public class SpikeEventVertex {
- private String key;
+ private
final
String key;
private String schemaVersion;
private String schemaVersion;
- private
String type;
+ private
final String type;
+ private final String entityLink;
-
- public String getKey() {
- return key;
+ public SpikeEventVertex(String type, String key) {
+ this.type = type;
+ this.key = key;
+ this.entityLink = type + "/" + key;
}
}
- public
void setKey(String key
) {
-
this.key =
key;
+ public
String getKey(
) {
+
return
key;
}
public String getSchemaVersion() {
}
public String getSchemaVersion() {
@@
-59,12
+57,8
@@
public class SpikeEventVertex {
return type;
}
return type;
}
- public void setType(String type) {
- this.type = type;
- }
-
public String getEntityLink() {
public String getEntityLink() {
- return
this.type + "/" + this.key;
+ return
entityLink;
}
}
-
+
}
}