package org.onap.aai.sparky.viewandinspect.config;
import java.util.ArrayList;
+import java.util.Arrays;
import org.onap.aai.sparky.config.SparkyResourceLoader;
public void setShallowEntities(ArrayList<String> shallowEntities) {
this.shallowEntities = shallowEntities;
}
+
+ public void setDelimitedShallowEntities(String delimitedShallowEntites) {
+
+ if (delimitedShallowEntites == null) {
+ this.shallowEntities = new ArrayList<>();
+ return;
+ }
+
+ try {
+ this.shallowEntities =
+ new ArrayList<String>(Arrays.asList(delimitedShallowEntites.split(",")));
+ } catch (Exception exc) {
+ this.shallowEntities = new ArrayList<>();
+ }
+
+ }
/**
* Make all neighbors bidirectional.