summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openecomp/sparky/viewandinspect/entity
diff options
context:
space:
mode:
authorArul.Nambi <arul.nambi@amdocs.com>2017-09-26 14:00:57 -0400
committerArul.Nambi <arul.nambi@amdocs.com>2017-09-26 14:01:41 -0400
commitc593dfe4c59d37d5d4ea14e3ac31da3318029562 (patch)
tree76cc5a494f02e14b809caad9c050fbfd6cd61a51 /src/main/java/org/openecomp/sparky/viewandinspect/entity
parent6777c6092050a0271c5d7de9c239cf1580d41fa8 (diff)
Renaming openecomp to onap
Issue-ID: AAI-208 Change-Id: I2bd02287bed376111156aca0100e2b7b74e368e3 Signed-off-by: Arul.Nambi <arul.nambi@amdocs.com>
Diffstat (limited to 'src/main/java/org/openecomp/sparky/viewandinspect/entity')
-rw-r--r--src/main/java/org/openecomp/sparky/viewandinspect/entity/ActiveInventoryNode.java775
-rw-r--r--src/main/java/org/openecomp/sparky/viewandinspect/entity/D3VisualizationOutput.java129
-rw-r--r--src/main/java/org/openecomp/sparky/viewandinspect/entity/EntityEntry.java79
-rw-r--r--src/main/java/org/openecomp/sparky/viewandinspect/entity/GraphMeta.java145
-rw-r--r--src/main/java/org/openecomp/sparky/viewandinspect/entity/InlineMessage.java68
-rw-r--r--src/main/java/org/openecomp/sparky/viewandinspect/entity/JsonNode.java194
-rw-r--r--src/main/java/org/openecomp/sparky/viewandinspect/entity/JsonNodeLink.java73
-rw-r--r--src/main/java/org/openecomp/sparky/viewandinspect/entity/NodeDebug.java57
-rw-r--r--src/main/java/org/openecomp/sparky/viewandinspect/entity/NodeMeta.java209
-rw-r--r--src/main/java/org/openecomp/sparky/viewandinspect/entity/NodeProcessingTransaction.java107
-rw-r--r--src/main/java/org/openecomp/sparky/viewandinspect/entity/QueryParams.java55
-rw-r--r--src/main/java/org/openecomp/sparky/viewandinspect/entity/QueryRequest.java45
-rw-r--r--src/main/java/org/openecomp/sparky/viewandinspect/entity/QuerySearchEntity.java72
-rw-r--r--src/main/java/org/openecomp/sparky/viewandinspect/entity/RelatedToProperty.java62
-rw-r--r--src/main/java/org/openecomp/sparky/viewandinspect/entity/Relationship.java89
-rw-r--r--src/main/java/org/openecomp/sparky/viewandinspect/entity/RelationshipData.java61
-rw-r--r--src/main/java/org/openecomp/sparky/viewandinspect/entity/RelationshipDirectionality.java40
-rw-r--r--src/main/java/org/openecomp/sparky/viewandinspect/entity/RelationshipList.java55
-rw-r--r--src/main/java/org/openecomp/sparky/viewandinspect/entity/SearchResponse.java90
-rw-r--r--src/main/java/org/openecomp/sparky/viewandinspect/entity/SelfLinkDeterminationTransaction.java79
-rw-r--r--src/main/java/org/openecomp/sparky/viewandinspect/entity/Violations.java111
21 files changed, 0 insertions, 2595 deletions
diff --git a/src/main/java/org/openecomp/sparky/viewandinspect/entity/ActiveInventoryNode.java b/src/main/java/org/openecomp/sparky/viewandinspect/entity/ActiveInventoryNode.java
deleted file mode 100644
index fc0f074..0000000
--- a/src/main/java/org/openecomp/sparky/viewandinspect/entity/ActiveInventoryNode.java
+++ /dev/null
@@ -1,775 +0,0 @@
-/**
- * ============LICENSE_START=======================================================
- * org.onap.aai
- * ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * Copyright © 2017 Amdocs
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.openecomp.sparky.viewandinspect.entity;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-import java.util.Map.Entry;
-import java.util.Set;
-import java.util.concurrent.ConcurrentLinkedDeque;
-import java.util.concurrent.atomic.AtomicBoolean;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-import org.openecomp.cl.api.Logger;
-import org.openecomp.cl.eelf.LoggerFactory;
-import org.openecomp.sparky.config.oxm.OxmModelLoader;
-import org.openecomp.sparky.dal.rest.OperationResult;
-import org.openecomp.sparky.logging.AaiUiMsgs;
-import org.openecomp.sparky.viewandinspect.config.VisualizationConfig;
-import org.openecomp.sparky.viewandinspect.enumeration.NodeProcessingAction;
-import org.openecomp.sparky.viewandinspect.enumeration.NodeProcessingState;
-
-import com.fasterxml.jackson.databind.JsonNode;
-import com.fasterxml.jackson.databind.ObjectMapper;
-
-/**
- * The Class ActiveInventoryNode.
- */
-public class ActiveInventoryNode {
-
- private static final Logger LOG = LoggerFactory.getInstance().getLogger(
- ActiveInventoryNode.class);
- private static final String URIRegexPattern = "aai/v[\\d]/";
-
- public static final int DEFAULT_INIT_NODE_DEPTH = 1000;
-
- private String nodeId;
- private String selfLink;
-
- private boolean isRootNode;
- private ConcurrentLinkedDeque<String> inboundNeighbors;
- private ConcurrentLinkedDeque<String> outboundNeighbors;
- private List<JsonNode> complexGroups;
- private List<RelationshipList> relationshipLists;
- private int nodeDepth;
- private OperationResult opResult;
-
-
- private boolean processingErrorOccurred;
- private List<String> errorCauses;
- private boolean selflinkRetrievalFailure;
- private NodeProcessingState state;
-
- private boolean processedNeighbors;
-
- private boolean selfLinkPendingResolve;
-
- /*
- * I think we shouldn't be using this crutch flags. If these things are meant
- * to represent the current state of the node, then they should be legitimate
- * state transitions.
- */
-
- private boolean selfLinkDeterminationPending;
-
- private AtomicBoolean selfLinkProcessed;
-
- private OxmModelLoader oxmModelLoader;
- private VisualizationConfig visualizationConfig;
-
- private String entityType;
- private String primaryKeyName;
- private String primaryKeyValue;
-
- private boolean nodeIssue;
- private boolean ignoredByFilter;
-
- private boolean resolvedSelfLink;
-
- private Map<String, String> properties;
- private ArrayList<String> queryParams;
-
- private ObjectMapper mapper;
-
- /**
- * Instantiates a new active inventory node.
- */
- public ActiveInventoryNode() {
- this(null);
- }
-
- /**
- * Instantiates a new active inventory node.
- *
- * @param key the key
- */
- public ActiveInventoryNode(String key) {
- this.nodeId = null;
- this.entityType = null;
- this.selfLink = null;
- this.properties = new HashMap<String, String>();
- this.processingErrorOccurred = false;
- this.errorCauses = new ArrayList<String>();
- this.selflinkRetrievalFailure = false;
- this.nodeIssue = false;
- this.state = NodeProcessingState.INIT;
- this.selfLinkPendingResolve = false;
- this.selfLinkDeterminationPending = false;
-
- selfLinkProcessed = new AtomicBoolean(Boolean.FALSE);
- oxmModelLoader = null;
- visualizationConfig = null;
-
- isRootNode = false;
- inboundNeighbors = new ConcurrentLinkedDeque<String>();
- outboundNeighbors = new ConcurrentLinkedDeque<String>();
- complexGroups = new ArrayList<JsonNode>();
- relationshipLists = new ArrayList<RelationshipList>();
- nodeDepth = DEFAULT_INIT_NODE_DEPTH;
- queryParams = new ArrayList<String>();
-
- mapper = new ObjectMapper();
-
- processedNeighbors = false;
- resolvedSelfLink = false;
-
-
- }
-
- public void clearQueryParams() {
- queryParams.clear();
- }
-
- public void addQueryParam(String queryParam) {
- if ( queryParam!= null) {
- if( !queryParams.contains(queryParam)) {
- queryParams.add(queryParam);
- }
- }
- }
-
- public void addQueryParams(Collection<String> params) {
-
- if (params != null && !params.isEmpty()) {
-
- for (String param : params) {
- addQueryParam(param);
- }
- }
- }
-
-
- public List<String> getQueryParams() {
- return queryParams;
- }
-
- public void setSelfLinkDeterminationPending(boolean selfLinkDeterminationPending) {
- this.selfLinkDeterminationPending = selfLinkDeterminationPending;
- }
-
- public boolean isSelfLinkDeterminationPending() {
- return selfLinkDeterminationPending;
- }
-
- public NodeProcessingState getState() {
- return state;
- }
-
- public List<JsonNode> getComplexGroups() {
- return complexGroups;
- }
-
- public List<RelationshipList> getRelationshipLists() {
- return relationshipLists;
- }
-
- public OperationResult getOpResult() {
- return opResult;
- }
-
- public void setOpResult(OperationResult opResult) {
- this.opResult = opResult;
- }
-
- public String getPrimaryKeyName() {
- return primaryKeyName;
- }
-
- /**
- * Gets the visualization config.
- *
- * @return the visualization config
- */
- public VisualizationConfig getvisualizationConfig() {
- return visualizationConfig;
- }
-
- public int getNodeDepth() {
- return nodeDepth;
- }
-
- public void setNodeDepth(int nodeDepth) {
- this.nodeDepth = nodeDepth;
- }
-
- /**
- * Sets the visualization config.
- *
- * @param visualizationConfig the new visualization config
- */
- public void setvisualizationConfig(VisualizationConfig visualizationConfig) {
- this.visualizationConfig = visualizationConfig;
- }
-
- public OxmModelLoader getOxmModelLoader() {
- return oxmModelLoader;
- }
-
- public void setPrimaryKeyName(String primaryKeyName) {
- this.primaryKeyName = primaryKeyName;
- }
-
- public String getPrimaryKeyValue() {
- return primaryKeyValue;
- }
-
- public void setPrimaryKeyValue(String primaryKeyValue) {
- this.primaryKeyValue = primaryKeyValue;
- }
-
- public boolean isNodeIssue() {
- return nodeIssue;
- }
-
- public boolean isIgnoredByFilter() {
- return ignoredByFilter;
- }
-
- public void setIgnoredByFilter(boolean ignoredByFilter) {
- this.ignoredByFilter = ignoredByFilter;
- }
-
- public void setNodeIssue(boolean nodeIssue) {
- this.nodeIssue = nodeIssue;
- }
-
- /**
- * Checks for processed neighbors.
- *
- * @return true, if successful
- */
- public boolean hasProcessedNeighbors() {
- return processedNeighbors;
- }
-
- public void setProcessedNeighbors(boolean processedNeighbors) {
- this.processedNeighbors = processedNeighbors;
- }
-
- /**
- * Checks for resolved self link.
- *
- * @return true, if successful
- */
- public boolean hasResolvedSelfLink() {
- return resolvedSelfLink;
- }
-
- public void setResolvedSelfLink(boolean resolvedSelfLink) {
- this.resolvedSelfLink = resolvedSelfLink;
- }
-
- /**
- * Checks for neighbors.
- *
- * @return true, if successful
- */
- public boolean hasNeighbors() {
- return (inboundNeighbors.size() > 0 || outboundNeighbors.size() > 0);
- }
-
- /**
- * Adds the inbound neighbor.
- *
- * @param nodeId the node id
- */
- public void addInboundNeighbor(String nodeId) {
-
- if (nodeId == null) {
- return;
- }
-
- if (!inboundNeighbors.contains(nodeId)) {
- inboundNeighbors.add(nodeId);
- }
-
- }
-
- /**
- * Adds the outbound neighbor.
- *
- * @param nodeId the node id
- */
- public void addOutboundNeighbor(String nodeId) {
-
- if (nodeId == null) {
- return;
- }
-
- if (!outboundNeighbors.contains(nodeId)) {
- outboundNeighbors.add(nodeId);
- }
-
- }
-
- public boolean isAtMaxDepth() {
- return (nodeDepth >= VisualizationConfig.getConfig().getMaxSelfLinkTraversalDepth());
- }
-
- public ConcurrentLinkedDeque<String> getInboundNeighbors() {
- return inboundNeighbors;
- }
-
- public void setInboundNeighbors(ConcurrentLinkedDeque<String> inboundNeighbors) {
- this.inboundNeighbors = inboundNeighbors;
- }
-
- public Collection<String> getOutboundNeighbors() {
- List<String> result = new ArrayList<String>();
-
- Iterator<String> neighborIterator = outboundNeighbors.iterator();
-
- while (neighborIterator.hasNext()) {
- result.add(neighborIterator.next());
- }
-
- return result;
- }
-
- /**
- * Change depth.
- *
- * @param newDepth the new depth
- * @return true, if successful
- */
- public boolean changeDepth(int newDepth) {
-
- boolean nodeDepthWasChanged = false;
-
- if (newDepth < nodeDepth) {
- LOG.info(AaiUiMsgs.ACTIVE_INV_NODE_CHANGE_DEPTH, nodeId,
- String.valueOf(this.nodeDepth), String.valueOf(newDepth));
- this.nodeDepth = newDepth;
- nodeDepthWasChanged = true;
- }
-
- return nodeDepthWasChanged;
-
- }
-
- public void setOutboundNeighbors(ConcurrentLinkedDeque<String> outboundNeighbors) {
- this.outboundNeighbors = outboundNeighbors;
- }
-
- public boolean isRootNode() {
- return isRootNode;
- }
-
- public void setRootNode(boolean isRootNode) {
- this.isRootNode = isRootNode;
- }
-
- /**
- * Change state.
- *
- * @param newState the new state
- * @param action the action
- */
- public void changeState(NodeProcessingState newState, NodeProcessingAction action) {
- /*
- * NodeId may be null depending on the current node life-cycle state
- */
-
- if (getNodeId() != null) {
- LOG.info(AaiUiMsgs.ACTIVE_INV_NODE_CHANGE_STATE, state.toString(), newState.toString(), action.toString());
- } else {
- LOG.info(AaiUiMsgs.ACTIVE_INV_NODE_CHANGE_STATE_NO_NODE_ID, state.toString(), newState.toString(), action.toString());
- }
- this.state = newState;
- }
-
- public boolean isSelfLinkPendingResolve() {
- return selfLinkPendingResolve;
- }
-
- public void setSelfLinkPendingResolve(boolean selfLinkPendingResolve) {
- this.selfLinkPendingResolve = selfLinkPendingResolve;
- }
-
- public boolean isSelflinkRetrievalFailure() {
- return selflinkRetrievalFailure;
- }
-
- public void setSelflinkRetrievalFailure(boolean selflinkRetrievalFailure) {
- this.selflinkRetrievalFailure = selflinkRetrievalFailure;
- }
-
- public void setOxmModelLoader(OxmModelLoader loader) {
- this.oxmModelLoader = loader;
- }
-
- public boolean getSelfLinkProcessed() {
- return selfLinkProcessed.get();
- }
-
- public void setSelfLinkProcessed(boolean selfLinkProcessed) {
- this.selfLinkProcessed.set(selfLinkProcessed);
- }
-
- public boolean isDirectSelfLink() {
- // https://<AAI-Hostname>:8443/aai/v8/resources/id/2458124400
- return isDirectSelfLink(this.selfLink);
- }
-
- /**
- * Checks if is direct self link.
- *
- * @param link the link
- * @return true, if is direct self link
- */
- public static boolean isDirectSelfLink(String link) {
- // https://<AAI-Hostname>:8443/aai/v8/resources/id/2458124400
-
- if (link == null) {
- return false;
- }
-
- return link.contains("/resources/id/");
-
- }
-
- public Map<String, String> getProperties() {
- return properties;
- }
-
- /**
- * Adds the error cause.
- *
- * @param error the error
- */
- public void addErrorCause(String error) {
- if (!errorCauses.contains(error)) {
- errorCauses.add(error);
- }
- }
-
- /**
- * Adds the property.
- *
- * @param key the key
- * @param value the value
- */
- public void addProperty(String key, String value) {
- properties.put(key, value);
- }
-
- public boolean isProcessingErrorOccurred() {
- return processingErrorOccurred;
- }
-
- public void setProcessingErrorOccurred(boolean processingErrorOccurred) {
- this.processingErrorOccurred = processingErrorOccurred;
- }
-
- public String getNodeId() {
- return nodeId;
- }
-
- public void setNodeId(String nodeId) {
- this.nodeId = nodeId;
- }
-
- public String getEntityType() {
- return entityType;
- }
-
- public void setEntityType(String entityType) {
- this.entityType = entityType;
- }
-
- public String getSelfLink() {
- return selfLink;
- }
-
- /**
- * Calculate edit attribute uri.
- *
- * @param link the link
- * @return the string
- */
- public String calculateEditAttributeUri(String link) {
- String uri = null;
- Pattern pattern = Pattern.compile(URIRegexPattern);
- Matcher matcher = pattern.matcher(link);
- if (matcher.find()) {
- uri = link.substring(matcher.end());
- }
- return uri;
- }
-
- /**
- * Analyze self link relationship list.
- *
- * @param jsonResult the json result
- * @return the relationship list
- */
- private RelationshipList analyzeSelfLinkRelationshipList(String jsonResult) {
-
-
- RelationshipList relationshipList = null;
-
- try {
- relationshipList = mapper.readValue(jsonResult, RelationshipList.class);
- } catch (Exception exc) {
- LOG.error(AaiUiMsgs.SELF_LINK_RELATIONSHIP_LIST_ERROR, exc.toString());
- }
-
- return relationshipList;
- }
-
- /**
- * Adds the relationship list.
- *
- * @param relationshipList the relationship list
- */
- public void addRelationshipList(RelationshipList relationshipList) {
-
- if (!relationshipLists.contains(relationshipList)) {
- relationshipLists.add(relationshipList);
- }
-
- }
-
- /**
- * Process pathed self link response.
- *
- * @param selfLinkJsonResponse the self link json response
- * @param startNodeType the start node type
- * @param startNodeResourceKey the start node resource key
- */
- public void processPathedSelfLinkResponse(String selfLinkJsonResponse, String startNodeType,
- String startNodeResourceKey) {
-
- if (selfLinkJsonResponse == null || selfLinkJsonResponse.length() == 0) {
- LOG.error(AaiUiMsgs.SELF_LINK_NULL_EMPTY_RESPONSE);
- return;
- }
-
- try {
- JsonNode jsonNode = mapper.readValue(selfLinkJsonResponse, JsonNode.class);
-
- Iterator<Entry<String, JsonNode>> fieldNames = jsonNode.fields();
- Entry<String, JsonNode> field = null;
-
- while (fieldNames.hasNext()) {
-
- field = fieldNames.next();
-
- /*
- * Is there a way to tell if the field is an aggregate or an atomic value? This is where our
- * flattening code needs to live
- */
-
- String fieldName = field.getKey();
-
- if ("relationship-list".equals(fieldName)) {
-
- /*
- * Parse the relationship list like we were doing before, so we can determine whether or
- * not to keep it or traverse it after we have performed the evaluative node depth logic.
- */
- RelationshipList relationshipList =
- analyzeSelfLinkRelationshipList(field.getValue().toString());
-
- if (relationshipList != null) {
- this.relationshipLists.add(relationshipList);
- } else {
- LOG.info(AaiUiMsgs.NO_RELATIONSHIP_DISCOVERED, nodeId);
- }
- } else {
- JsonNode nodeValue = field.getValue();
-
- if (nodeValue != null && nodeValue.isValueNode()) {
-
- /*
- * before we blindly add the fieldName and value to our property set, let's do one more
- * check to see if the field name is an entity type. If it is, then our complex
- * attribute processing code will pick it up and process it instead, but this is
- * probably more likely just for array node types, but we'll see.
- */
-
- if (oxmModelLoader.getEntityDescriptor(fieldName) == null) {
- /*
- * this is no an entity type as far as we can tell, so we can add it to our property
- * set.
- */
-
- addProperty(fieldName, nodeValue.asText());
-
- }
-
- } else {
-
- if (nodeValue.isArray()) {
-
- /*
- * make sure array entity-type collection is not an entityType before adding it to the
- * property set. The expetation is that it will be added the visualization through a
- * complex group or relationship.
- */
-
- if (oxmModelLoader.getEntityDescriptor(field.getKey()) == null) {
- /*
- * this is no an entity type as far as we can tell, so we can add it to our property
- * set.
- */
-
- addProperty(field.getKey(), nodeValue.toString());
-
- }
-
- } else {
-
- complexGroups.add(nodeValue);
-
- }
-
- }
-
- }
-
- }
-
- } catch (IOException exc) {
- LOG.error(AaiUiMsgs.JSON_CONVERSION_ERROR, "POJO", exc.getLocalizedMessage());
- this.setProcessingErrorOccurred(true);
- this.addErrorCause(
- "An error occurred while converting JSON into POJO = " + exc.getLocalizedMessage());
- }
-
- }
-
- public void setSelfLink(String selfLink) {
- this.selfLink = selfLink;
- }
-
- /**
- * Adds the complex group.
- *
- * @param complexGroup the complex group
- */
- public void addComplexGroup(JsonNode complexGroup) {
-
- if (!complexGroups.contains(complexGroup)) {
- complexGroups.add(complexGroup);
- }
-
- }
-
- /**
- * Gets the padding.
- *
- * @param level the level
- * @param paddingString the padding string
- * @return the padding
- */
- private static String getPadding(int level, String paddingString) {
- StringBuilder sb = new StringBuilder(32);
- for (int x = 0; x < level; x++) {
- sb.append(paddingString);
- }
- return sb.toString();
- }
-
- /**
- * Dump node tree.
- *
- * @param showProperties the show properties
- * @return the string
- */
- public String dumpNodeTree(boolean showProperties) {
- return dumpNodeTree(0, showProperties);
- }
-
- /**
- * Dump node tree.
- *
- * @param level the level
- * @param showProperties the show properties
- * @return the string
- */
- private String dumpNodeTree(int level, boolean showProperties) {
- StringBuilder sb = new StringBuilder(128);
- String padding = getPadding(level, " ");
-
- sb.append(padding + " -> " + getNodeId() + "]").append("\n");
- sb.append(padding + " -> primaryKeyName = " + primaryKeyName + "]").append("\n");
- sb.append(padding + " -> primaryKeyValue = " + primaryKeyValue + "]").append("\n");
- sb.append(padding + " -> entityType = " + entityType + "]").append("\n");
-
- if (showProperties) {
- Set<Entry<String, String>> entries = properties.entrySet();
- for (Entry<String, String> entry : entries) {
- sb.append(
- padding + " ----> " + String.format("[ %s => %s ]", entry.getKey(), entry.getValue()))
- .append("\n");
- }
- }
-
- sb.append(padding + " ----> " + String.format("[ selfLink => %s ]", getSelfLink()))
- .append("\n");
-
- sb.append("\n").append(padding + " ----> Inbound Neighbors:").append("\n");
-
- for (String inboundNeighbor : inboundNeighbors) {
- sb.append("\n").append(inboundNeighbor.toString());
- }
-
- sb.append(padding + " ----> Outbound Neighbors:").append("\n");
- sb.append("\n").append(padding + " ----> Outbound Neighbors:").append("\n");
-
- for (String outboundNeighbor : outboundNeighbors) {
- sb.append("\n").append(outboundNeighbor.toString());
- }
-
- return sb.toString();
-
- }
-
- public String getProcessingErrorCauses() {
-
- StringBuilder sb = new StringBuilder(128);
-
- for (String c : this.errorCauses) {
- sb.append(c).append("\n");
- }
-
- return sb.toString();
- }
-}
diff --git a/src/main/java/org/openecomp/sparky/viewandinspect/entity/D3VisualizationOutput.java b/src/main/java/org/openecomp/sparky/viewandinspect/entity/D3VisualizationOutput.java
deleted file mode 100644
index b695899..0000000
--- a/src/main/java/org/openecomp/sparky/viewandinspect/entity/D3VisualizationOutput.java
+++ /dev/null
@@ -1,129 +0,0 @@
-/**
- * ============LICENSE_START=======================================================
- * org.onap.aai
- * ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * Copyright © 2017 Amdocs
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.openecomp.sparky.viewandinspect.entity;
-
-import com.fasterxml.jackson.core.JsonProcessingException;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import com.fasterxml.jackson.databind.ObjectWriter;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * The Class D3VisualizationOutput.
- */
-public class D3VisualizationOutput {
-
- public GraphMeta graphMeta;
- public List<JsonNode> nodes;
- public List<JsonNodeLink> links;
- public InlineMessage inlineMessage;
-
- /**
- * Instantiates a new d 3 visualization output.
- */
- public D3VisualizationOutput() {
- nodes = new ArrayList<JsonNode>();
- links = new ArrayList<JsonNodeLink>();
- inlineMessage = null;
- }
-
- public GraphMeta getGraphMeta() {
- return graphMeta;
- }
-
- /**
- * Peg counter.
- *
- * @param counterName the counter name
- */
- public void pegCounter(String counterName) {
- graphMeta.pegCounter(counterName);
- }
-
- public void setGraphMeta(GraphMeta graphMeta) {
- this.graphMeta = graphMeta;
- }
-
- /**
- * Adds the nodes.
- *
- * @param nodes the nodes
- */
- public void addNodes(List<JsonNode> nodes) {
- this.nodes.addAll(nodes);
- }
-
- /**
- * Adds the links.
- *
- * @param links the links
- */
- public void addLinks(List<JsonNodeLink> links) {
- this.links.addAll(links);
- }
-
- public InlineMessage getInlineMessage() {
- return inlineMessage;
- }
-
- public void setInlineMessage(InlineMessage inlineMessage) {
- this.inlineMessage = inlineMessage;
- }
-
- /**
- * The main method.
- *
- * @param args the arguments
- * @throws JsonProcessingException the json processing exception
- */
- public static final void main(String[] args) throws JsonProcessingException {
-
- ActiveInventoryNode pserverAin = new ActiveInventoryNode();
- pserverAin.setNodeId("pserver.76786asd87asgd");
- JsonNode pserver = new JsonNode(pserverAin);
-
- List<JsonNode> nodes = new ArrayList<JsonNode>();
- nodes.add(pserver);
-
- JsonNodeLink l1 = new JsonNodeLink();
- l1.setSource(pserverAin.getNodeId());
- l1.setTarget(pserverAin.getNodeId());
- l1.setId(l1.getSource() + "_" + l1.getTarget());
-
- List<JsonNodeLink> links = new ArrayList<JsonNodeLink>();
- links.add(l1);
-
- D3VisualizationOutput output = new D3VisualizationOutput();
- output.addNodes(nodes);
- output.addLinks(links);
-
-
- ObjectWriter ow = new ObjectMapper().writer().withDefaultPrettyPrinter();
- String json = ow.writeValueAsString(output);
-
- System.out.println(json);
-
- }
-
-}
diff --git a/src/main/java/org/openecomp/sparky/viewandinspect/entity/EntityEntry.java b/src/main/java/org/openecomp/sparky/viewandinspect/entity/EntityEntry.java
deleted file mode 100644
index b50914e..0000000
--- a/src/main/java/org/openecomp/sparky/viewandinspect/entity/EntityEntry.java
+++ /dev/null
@@ -1,79 +0,0 @@
-/**
- * ============LICENSE_START=======================================================
- * org.onap.aai
- * ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * Copyright © 2017 Amdocs
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.openecomp.sparky.viewandinspect.entity;
-
-/**
- * The Class EntityEntry.
- */
-public class EntityEntry {
-
- private String entityType;
-
- private String entityPrimaryKeyValue;
-
- private String searchTags;
-
- private String entityId;
-
- public String getEntityId() {
- return entityId;
- }
-
- public void setEntityId(String entityId) {
- this.entityId = entityId;
- }
-
- public String getEntityType() {
- return entityType;
- }
-
- public void setEntityType(String entityType) {
- this.entityType = entityType;
- }
-
- public String getEntityPrimaryKeyValue() {
- return entityPrimaryKeyValue;
- }
-
- public void setEntityPrimaryKeyValue(String entityPrimaryKeyValue) {
- this.entityPrimaryKeyValue = entityPrimaryKeyValue;
- }
-
- public String getSearchTags() {
- return searchTags;
- }
-
- public void setSearchTags(String searchTags) {
- this.searchTags = searchTags;
- }
-
- @Override
- public String toString() {
- return "EntityEntry [" + (entityType != null ? "entityType=" + entityType + ", " : "")
- + (entityPrimaryKeyValue != null ? "entityPrimaryKeyValue=" + entityPrimaryKeyValue + ", "
- : "")
- + (searchTags != null ? "searchTags=" + searchTags + ", " : "")
- + (entityId != null ? "entityId=" + entityId : "") + "]";
- }
-
-}
diff --git a/src/main/java/org/openecomp/sparky/viewandinspect/entity/GraphMeta.java b/src/main/java/org/openecomp/sparky/viewandinspect/entity/GraphMeta.java
deleted file mode 100644
index e7d069f..0000000
--- a/src/main/java/org/openecomp/sparky/viewandinspect/entity/GraphMeta.java
+++ /dev/null
@@ -1,145 +0,0 @@
-/**
- * ============LICENSE_START=======================================================
- * org.onap.aai
- * ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * Copyright © 2017 Amdocs
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.openecomp.sparky.viewandinspect.entity;
-
-import org.openecomp.sparky.viewandinspect.EntityTypeAggregation;
-
-/**
- * The Class GraphMeta.
- */
-public class GraphMeta {
-
- private com.fasterxml.jackson.databind.JsonNode aaiEntityNodeDescriptors;
-
- private int numNodes;
-
- private int numLinks;
-
- private long renderTimeInMs;
-
- private int numLinksResolvedSuccessfullyFromCache;
-
- private int numLinksResolvedSuccessfullyFromServer;
-
- private int numLinkResolveFailed;
-
- private EntityTypeAggregation entitySummary;
-
- /**
- * Instantiates a new graph meta.
- */
- public GraphMeta() {
- entitySummary = new EntityTypeAggregation();
- }
-
- public EntityTypeAggregation getEntitySummary() {
- return entitySummary;
- }
-
- public void setEntitySummary(EntityTypeAggregation entitySummary) {
- this.entitySummary = entitySummary;
- }
-
- public com.fasterxml.jackson.databind.JsonNode getAaiEntityNodeDescriptors() {
- return aaiEntityNodeDescriptors;
- }
-
- public void setAaiEntityNodeDescriptors(
- com.fasterxml.jackson.databind.JsonNode aaiEntityNodeDefinitions) {
- this.aaiEntityNodeDescriptors = aaiEntityNodeDefinitions;
- }
-
- public int getNumLinksResolvedSuccessfullyFromCache() {
- return numLinksResolvedSuccessfullyFromCache;
- }
-
- public void setNumLinksResolvedSuccessfullyFromCache(int numLinksResolvedSuccessfullyFromCache) {
- this.numLinksResolvedSuccessfullyFromCache = numLinksResolvedSuccessfullyFromCache;
- }
-
- public int getNumLinksResolvedSuccessfullyFromServer() {
- return numLinksResolvedSuccessfullyFromServer;
- }
-
- public void setNumLinksResolvedSuccessfullyFromServer(
- int numLinksResolvedSuccessfullyFromServer) {
- this.numLinksResolvedSuccessfullyFromServer = numLinksResolvedSuccessfullyFromServer;
- }
-
- public int getNumLinkResolveFailed() {
- return numLinkResolveFailed;
- }
-
- public void setNumLinkResolveFailed(int numLinkResolveFailed) {
- this.numLinkResolveFailed = numLinkResolveFailed;
- }
-
- public int getNumNodes() {
- return numNodes;
- }
-
- public void setNumNodes(int numNodes) {
- this.numNodes = numNodes;
- }
-
- public int getNumLinks() {
- return numLinks;
- }
-
- public void setNumLinks(int numLinks) {
- this.numLinks = numLinks;
- }
-
- public long getRenderTimeInMs() {
- return renderTimeInMs;
- }
-
- public void setRenderTimeInMs(long renderTimeInMs) {
- this.renderTimeInMs = renderTimeInMs;
- }
-
- /**
- * Peg counter.
- *
- * @param counterName the counter name
- */
- public void pegCounter(String counterName) {
- entitySummary.pegCounter(counterName);
- }
-
- /* (non-Javadoc)
- * @see java.lang.Object#toString()
- */
- @Override
- public String toString() {
- return "GraphMeta ["
- + (aaiEntityNodeDescriptors != null
- ? "aaiEntityNodeDescriptors=" + aaiEntityNodeDescriptors + ", " : "")
- + "numNodes=" + numNodes + ", numLinks=" + numLinks + ", renderTimeInMs=" + renderTimeInMs
- + ", numLinksResolvedSuccessfullyFromCache=" + numLinksResolvedSuccessfullyFromCache
- + ", numLinksResolvedSuccessfullyFromServer=" + numLinksResolvedSuccessfullyFromServer
- + ", numLinkResolveFailed=" + numLinkResolveFailed + ", "
- + (entitySummary != null ? "entitySummary=" + entitySummary : "") + "]";
- }
-
-}
diff --git a/src/main/java/org/openecomp/sparky/viewandinspect/entity/InlineMessage.java b/src/main/java/org/openecomp/sparky/viewandinspect/entity/InlineMessage.java
deleted file mode 100644
index 172e379..0000000
--- a/src/main/java/org/openecomp/sparky/viewandinspect/entity/InlineMessage.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/**
- * ============LICENSE_START=======================================================
- * org.onap.aai
- * ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * Copyright © 2017 Amdocs
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.openecomp.sparky.viewandinspect.entity;
-
-/**
- * The Class InlineMessage.
- */
-public class InlineMessage {
-
- private String level;
- private String message;
-
- /**
- * Instantiates a new inline message.
- *
- * @param level the level
- * @param message the message
- */
- public InlineMessage(String level, String message) {
- this.level = level;
- this.message = message;
- }
-
- public String getLevel() {
- return level;
- }
-
- public void setLevel(String level) {
- this.level = level;
- }
-
- public String getMessage() {
- return message;
- }
-
- public void setMessage(String message) {
- this.message = message;
- }
-
- /* (non-Javadoc)
- * @see java.lang.Object#toString()
- */
- @Override
- public String toString() {
- return level + " : " + message;
- }
-
-}
diff --git a/src/main/java/org/openecomp/sparky/viewandinspect/entity/JsonNode.java b/src/main/java/org/openecomp/sparky/viewandinspect/entity/JsonNode.java
deleted file mode 100644
index 735899a..0000000
--- a/src/main/java/org/openecomp/sparky/viewandinspect/entity/JsonNode.java
+++ /dev/null
@@ -1,194 +0,0 @@
-/**
- * ============LICENSE_START=======================================================
- * org.onap.aai
- * ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * Copyright © 2017 Amdocs
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.openecomp.sparky.viewandinspect.entity;
-
-import com.fasterxml.jackson.annotation.JsonIgnore;
-
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.Map;
-
-import org.apache.log4j.Logger;
-
-/*
- * We can use annotations to differentiate between intermediate data we use to build the node, and
- * the data that we actually want to appear in the exported JSON.
- */
-
-/*
- * This is our current ( 14-June-2016 ) working schema that will remain organic until we get it just
- * right.
- *
- * { "item-type": "customer", "item-name-key": "subscriber-name", “item-name-value” :
- * “subscriber-name-123456789-aai847-data-01”, "item-properties": [{ "property-name":
- * "subscriber-name", "property-value": "subscriber-name-123456789-aai847-data-01" }, {
- * "property-name": "global-customer-id", "property-value":
- * "global-customer-id-123456789-aai847-data-01" } ], "node-meta": { “color” : “#f2d2d2”,
- * "isSearchTarget" : false, "nodeGroups" : "1,2,3,4" }, }
- *
- */
-
-
-/**
- * The Class JsonNode.
- */
-public class JsonNode {
-
- private String id;
- private String itemType;
- private String itemNameKey;
- private String itemNameValue;
- private Map<String, String> itemProperties;
- private NodeMeta nodeMeta;
-
- @JsonIgnore
- private boolean isRootNode;
-
-
- @JsonIgnore
- private String resourceKey;
- @JsonIgnore
- private Collection<String> inboundNeighbors;
-
- @JsonIgnore
- private Collection<String> outboundNeighbors;
-
-
- @JsonIgnore
- private static final Logger LOG = Logger.getLogger(JsonNode.class);
-
- /**
- * Instantiates a new json node.
- *
- * @param ain the ain
- */
- public JsonNode(ActiveInventoryNode ain) {
- this.resourceKey = ain.getNodeId();
- this.itemProperties = ain.getProperties();
- this.setItemType(ain.getEntityType());
- this.setItemNameKey(ain.getPrimaryKeyName());
- this.setItemNameValue(ain.getPrimaryKeyValue());
- this.setId(ain.getNodeId());
- this.isRootNode = ain.isRootNode();
-
- if (LOG.isDebugEnabled()) {
- LOG.debug("---");
- LOG.debug("JsonNode constructor using AIN = " + ain.dumpNodeTree(true));
- LOG.debug("---");
- }
-
- inboundNeighbors = ain.getInboundNeighbors();
- outboundNeighbors = ain.getOutboundNeighbors();
-
- nodeMeta = new NodeMeta();
-
- nodeMeta.setNodeIssue(ain.isNodeIssue());
- nodeMeta.setNodeDepth(ain.getNodeDepth());
-
- nodeMeta.setNumInboundNeighbors(ain.getInboundNeighbors().size());
- nodeMeta.setNumOutboundNeighbors(ain.getOutboundNeighbors().size());
-
- nodeMeta.setAtMaxDepth(ain.isAtMaxDepth());
- nodeMeta.setSelfLinkResolved(!ain.isSelflinkRetrievalFailure());
- nodeMeta.setProcessingErrorOccurred(ain.isProcessingErrorOccurred());
- nodeMeta.setHasNeighbors(
- ain.getOutboundNeighbors().size() > 0 || ain.getInboundNeighbors().size() > 0);
- nodeMeta.setProcessingState(ain.getState());
-
- }
-
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
- public String getItemNameKey() {
- return itemNameKey;
- }
-
- public String getItemNameValue() {
- return itemNameValue;
- }
-
- public Map<String, String> getItemProperties() {
- return itemProperties;
- }
-
- public String getItemType() {
- return itemType;
- }
-
- public String getResourceKey() {
- return resourceKey;
- }
-
- public void setItemNameKey(String itemNameKey) {
- this.itemNameKey = itemNameKey;
- }
-
- public void setItemNameValue(String itemNameValue) {
- this.itemNameValue = itemNameValue;
- }
-
- public void setItemProperties(HashMap<String, String> itemProperties) {
- this.itemProperties = itemProperties;
- }
-
- public void setItemType(String itemType) {
- this.itemType = itemType;
- }
-
- public void setResourceKey(String resourceKey) {
- this.resourceKey = resourceKey;
- }
-
- public NodeMeta getNodeMeta() {
- return nodeMeta;
- }
-
- public void setNodeMeta(NodeMeta nodeMeta) {
- this.nodeMeta = nodeMeta;
- }
-
- public boolean isRootNode() {
- return isRootNode;
- }
-
- @Override
- public String toString() {
- return "JsonNode [" + (id != null ? "id=" + id + ", " : "")
- + (itemType != null ? "itemType=" + itemType + ", " : "")
- + (itemNameKey != null ? "itemNameKey=" + itemNameKey + ", " : "")
- + (itemNameValue != null ? "itemNameValue=" + itemNameValue + ", " : "")
- + (itemProperties != null ? "itemProperties=" + itemProperties + ", " : "")
- + (nodeMeta != null ? "nodeMeta=" + nodeMeta + ", " : "") + "isRootNode=" + isRootNode
- + ", " + (resourceKey != null ? "resourceKey=" + resourceKey + ", " : "")
- + (inboundNeighbors != null ? "inboundNeighbors=" + inboundNeighbors + ", " : "")
- + (outboundNeighbors != null ? "outboundNeighbors=" + outboundNeighbors : "") + "]";
- }
-
-
-}
diff --git a/src/main/java/org/openecomp/sparky/viewandinspect/entity/JsonNodeLink.java b/src/main/java/org/openecomp/sparky/viewandinspect/entity/JsonNodeLink.java
deleted file mode 100644
index e85c4d7..0000000
--- a/src/main/java/org/openecomp/sparky/viewandinspect/entity/JsonNodeLink.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/**
- * ============LICENSE_START=======================================================
- * org.onap.aai
- * ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * Copyright © 2017 Amdocs
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.openecomp.sparky.viewandinspect.entity;
-
-/*
- * Expected JSON Output:
- *
- * { JsonNodeLink : { id : <value>, source : <value>, target : <value> } }
- *
- */
-
-/**
- * The Class JsonNodeLink.
- */
-public class JsonNodeLink {
-
- protected String id;
- protected String source;
- protected String target;
-
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
- public String getSource() {
- return source;
- }
-
- public void setSource(String source) {
- this.source = source;
- }
-
- public String getTarget() {
- return target;
- }
-
- public void setTarget(String target) {
- this.target = target;
- }
-
- /* (non-Javadoc)
- * @see java.lang.Object#toString()
- */
- @Override
- public String toString() {
- return "JsonNodeLink [id=" + id + ", source=" + source + ", target=" + target + "]";
- }
-
-}
diff --git a/src/main/java/org/openecomp/sparky/viewandinspect/entity/NodeDebug.java b/src/main/java/org/openecomp/sparky/viewandinspect/entity/NodeDebug.java
deleted file mode 100644
index 46516cf..0000000
--- a/src/main/java/org/openecomp/sparky/viewandinspect/entity/NodeDebug.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/**
- * ============LICENSE_START=======================================================
- * org.onap.aai
- * ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * Copyright © 2017 Amdocs
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.openecomp.sparky.viewandinspect.entity;
-
-/**
- * The Class NodeDebug.
- */
-public class NodeDebug {
- private boolean maxTraversalDepthReached;
- private boolean processingError;
- private String processingErrorCauses;
-
- public boolean isMaxTraversalDepthReached() {
- return maxTraversalDepthReached;
- }
-
- public void setMaxTraversalDepthReached(boolean maxTraversalDepthReached) {
- this.maxTraversalDepthReached = maxTraversalDepthReached;
- }
-
- public boolean isProcessingError() {
- return processingError;
- }
-
- public void setProcessingError(boolean processingError) {
- this.processingError = processingError;
- }
-
- public String getProcessingErrorCauses() {
- return processingErrorCauses;
- }
-
- public void setProcessingErrorCauses(String processingErrorCauses) {
- this.processingErrorCauses = processingErrorCauses;
- }
-
-}
diff --git a/src/main/java/org/openecomp/sparky/viewandinspect/entity/NodeMeta.java b/src/main/java/org/openecomp/sparky/viewandinspect/entity/NodeMeta.java
deleted file mode 100644
index 29e5a05..0000000
--- a/src/main/java/org/openecomp/sparky/viewandinspect/entity/NodeMeta.java
+++ /dev/null
@@ -1,209 +0,0 @@
-/**
- * ============LICENSE_START=======================================================
- * org.onap.aai
- * ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * Copyright © 2017 Amdocs
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.openecomp.sparky.viewandinspect.entity;
-
-import org.openecomp.sparky.viewandinspect.config.VisualizationConfig;
-import org.openecomp.sparky.viewandinspect.enumeration.NodeProcessingState;
-
-/**
- * The Class NodeMeta.
- */
-public class NodeMeta {
-
- private String className;
-
- private boolean isEnrichableNode;
- private boolean isSearchTarget;
-
- private NodeDebug nodeDebug;
- private boolean nodeIssue;
- private boolean nodeValidated;
- private long selfLinkResponseTimeInMs;
- private long numInboundNeighbors;
- private long numOutboundNeighbors;
-
- private boolean atMaxDepth;
- private boolean selfLinkResolved;
- private boolean processingErrorOccurred;
- private boolean neighborsProcessed;
- private int nodeDepth;
- private boolean hasNeighbors;
-
- private NodeProcessingState processingState;
-
- /**
- * Instantiates a new node meta.
- */
- public NodeMeta() {
- this.isSearchTarget = false;
- this.isEnrichableNode = false;
-
- if (VisualizationConfig.getConfig().isVisualizationDebugEnabled()) {
- nodeDebug = new NodeDebug();
- }
- this.numInboundNeighbors = 0;
- this.numOutboundNeighbors = 0;
-
- this.selfLinkResponseTimeInMs = 0;
-
- this.atMaxDepth = false;
- this.selfLinkResolved = false;
- this.processingErrorOccurred = false;
- this.hasNeighbors = false;
- this.neighborsProcessed = false;
- this.nodeDepth = ActiveInventoryNode.DEFAULT_INIT_NODE_DEPTH;
- this.processingState = NodeProcessingState.INIT;
-
- }
-
- public boolean isAtMaxDepth() {
- return atMaxDepth;
- }
-
- public void setAtMaxDepth(boolean atMaxDepth) {
- this.atMaxDepth = atMaxDepth;
- }
-
- public boolean isSelfLinkResolved() {
- return selfLinkResolved;
- }
-
-
-
- public NodeProcessingState getProcessingState() {
- return processingState;
- }
-
- public void setProcessingState(NodeProcessingState processingState) {
- this.processingState = processingState;
- }
-
- public void setSelfLinkResolved(boolean selfLinkResolved) {
- this.selfLinkResolved = selfLinkResolved;
- }
-
- public boolean isProcessingErrorOccurred() {
- return processingErrorOccurred;
- }
-
- public void setProcessingErrorOccurred(boolean processingErrorOccurred) {
- this.processingErrorOccurred = processingErrorOccurred;
- }
-
- public boolean isHasNeighbors() {
- return hasNeighbors;
- }
-
- public void setHasNeighbors(boolean hasNeighbors) {
- this.hasNeighbors = hasNeighbors;
- }
-
- public boolean isNeighborsProcessed() {
- return neighborsProcessed;
- }
-
- public void setNeighborsProcessed(boolean neighborsProcessed) {
- this.neighborsProcessed = neighborsProcessed;
- }
-
- public int getNodeDepth() {
- return nodeDepth;
- }
-
- public void setNodeDepth(int nodeDepth) {
- this.nodeDepth = nodeDepth;
- }
-
- public void setNodeDebug(NodeDebug nodeDebug) {
- this.nodeDebug = nodeDebug;
- }
-
- public String getClassName() {
- return className;
- }
-
- public long getNumInboundNeighbors() {
- return numInboundNeighbors;
- }
-
- public void setNumInboundNeighbors(long numInboundNeighbors) {
- this.numInboundNeighbors = numInboundNeighbors;
- }
-
- public long getNumOutboundNeighbors() {
- return numOutboundNeighbors;
- }
-
- public void setNumOutboundNeighbors(long numOutboundNeighbors) {
- this.numOutboundNeighbors = numOutboundNeighbors;
- }
-
- public NodeDebug getNodeDebug() {
- return nodeDebug;
- }
-
- public long getSelfLinkResponseTimeInMs() {
- return selfLinkResponseTimeInMs;
- }
-
- public boolean isEnrichableNode() {
- return isEnrichableNode;
- }
-
- public boolean isNodeIssue() {
- return nodeIssue;
- }
-
- public boolean isNodeValidated() {
- return nodeValidated;
- }
-
- public boolean isSearchTarget() {
- return isSearchTarget;
- }
-
- public void setClassName(String className) {
- this.className = className;
- }
-
- public void setEnrichableNode(boolean isEnrichableNode) {
- this.isEnrichableNode = isEnrichableNode;
- }
-
- public void setNodeIssue(boolean nodeIssue) {
- this.nodeIssue = nodeIssue;
- }
-
- public void setNodeValidated(boolean nodeValidated) {
- this.nodeValidated = nodeValidated;
- }
-
- public void setSearchTarget(boolean isSearchTarget) {
- this.isSearchTarget = isSearchTarget;
- }
-
- public void setSelfLinkResponseTimeInMs(long selfLinkResponseTimeInMs) {
- this.selfLinkResponseTimeInMs = selfLinkResponseTimeInMs;
- }
-
-}
diff --git a/src/main/java/org/openecomp/sparky/viewandinspect/entity/NodeProcessingTransaction.java b/src/main/java/org/openecomp/sparky/viewandinspect/entity/NodeProcessingTransaction.java
deleted file mode 100644
index a2ebb35..0000000
--- a/src/main/java/org/openecomp/sparky/viewandinspect/entity/NodeProcessingTransaction.java
+++ /dev/null
@@ -1,107 +0,0 @@
-/**
- * ============LICENSE_START=======================================================
- * org.onap.aai
- * ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * Copyright © 2017 Amdocs
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.openecomp.sparky.viewandinspect.entity;
-
-import org.openecomp.sparky.dal.rest.OperationResult;
-
-/**
- * The Class NodeProcessingTransaction.
- */
-public class NodeProcessingTransaction {
-
- private ActiveInventoryNode processingNode;
- private OperationResult opResult;
- private String selfLinkWithModifiers;
- private String requestParameters;
-
- /**
- * Instantiates a new node processing transaction.
- */
- public NodeProcessingTransaction() {}
-
- public String getRequestParameters() {
- return requestParameters;
- }
-
- public void setRequestParameters(String requestParameters) {
- this.requestParameters = requestParameters;
- }
-
- public String getSelfLink() {
- if (processingNode == null) {
- return null;
- }
-
- return processingNode.getSelfLink();
- }
-
- public String getSelfLinkWithModifiers() {
- if (processingNode == null) {
- return null;
- }
-
- return processingNode.getSelfLink() + requestParameters;
- }
-
- public ActiveInventoryNode getProcessingNode() {
- return processingNode;
- }
-
- public void setProcessingNode(ActiveInventoryNode processingNode) {
- this.processingNode = processingNode;
- }
-
- public OperationResult getOpResult() {
- return opResult;
- }
-
- public void setOpResult(OperationResult opResult) {
- this.opResult = opResult;
- }
-
- /**
- * Processing error occurred.
- *
- * @return true, if successful
- */
- public boolean processingErrorOccurred() {
- if (opResult == null) {
- return true;
- }
-
- return !opResult.wasSuccessful();
-
- }
-
- /* (non-Javadoc)
- * @see java.lang.Object#toString()
- */
- @Override
- public String toString() {
- return "NodeProcessingTransaction ["
- + (processingNode != null ? "processingNode=" + processingNode + ", " : "")
- + (opResult != null ? "opResult=" + opResult + ", " : "") + "processorErrorOccurred="
- + processingErrorOccurred() + "]";
- }
-
-}
diff --git a/src/main/java/org/openecomp/sparky/viewandinspect/entity/QueryParams.java b/src/main/java/org/openecomp/sparky/viewandinspect/entity/QueryParams.java
deleted file mode 100644
index 1c19d9d..0000000
--- a/src/main/java/org/openecomp/sparky/viewandinspect/entity/QueryParams.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * ============LICENSE_START=======================================================
- * org.onap.aai
- * ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * Copyright © 2017 Amdocs
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.openecomp.sparky.viewandinspect.entity;
-
-/**
- * The Class QueryParams.
- */
-public class QueryParams {
-
- private String searchTargetPrimaryKeyValues;
- private String searchTargetNodeId;
-
- /**
- * Instantiates a new query params.
- */
- public QueryParams() {
-
- }
-
- public String getSearchTargetPrimaryKeyValues() {
- return searchTargetPrimaryKeyValues;
- }
-
- public void setSearchTargetPrimaryKeyValues(String searchTargetPrimaryKeyValues) {
- this.searchTargetPrimaryKeyValues = searchTargetPrimaryKeyValues;
- }
-
- public String getSearchTargetNodeId() {
- return searchTargetNodeId;
- }
-
- public void setSearchTargetNodeId(String searchTargetNodeId) {
- this.searchTargetNodeId = searchTargetNodeId;
- }
-}
diff --git a/src/main/java/org/openecomp/sparky/viewandinspect/entity/QueryRequest.java b/src/main/java/org/openecomp/sparky/viewandinspect/entity/QueryRequest.java
deleted file mode 100644
index 98bb5d1..0000000
--- a/src/main/java/org/openecomp/sparky/viewandinspect/entity/QueryRequest.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/**
- * ============LICENSE_START=======================================================
- * org.onap.aai
- * ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * Copyright © 2017 Amdocs
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.openecomp.sparky.viewandinspect.entity;
-
-/**
- * The Class QueryRequest.
- */
-public class QueryRequest {
-
- private String hashId;
-
- public String getHashId() {
- return hashId;
- }
-
- public void setHashId(String hashId) {
- this.hashId = hashId;
- }
-
- @Override
- public String toString() {
- return "QueryRequest [hashId=" + hashId + "]";
- }
-
-}
diff --git a/src/main/java/org/openecomp/sparky/viewandinspect/entity/QuerySearchEntity.java b/src/main/java/org/openecomp/sparky/viewandinspect/entity/QuerySearchEntity.java
deleted file mode 100644
index fcfccea..0000000
--- a/src/main/java/org/openecomp/sparky/viewandinspect/entity/QuerySearchEntity.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/**
- * ============LICENSE_START=======================================================
- * org.onap.aai
- * ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * Copyright © 2017 Amdocs
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.openecomp.sparky.viewandinspect.entity;
-
-import com.fasterxml.jackson.annotation.JsonIgnore;
-
-/**
- * The Class ViewAndInspectSearchRequest.
- */
-public class QuerySearchEntity {
-
- private static final String DEFAULT_MAX_RESULTS = "10";
- public String maxResults;
-
- public String queryStr;
-
- /**
- * Instantiates a new view and inspect search request.
- */
- public QuerySearchEntity() {
- maxResults = DEFAULT_MAX_RESULTS;
- queryStr = null;
- }
-
- public String getMaxResults() {
- return maxResults;
- }
-
- public void setMaxResults(String maxResults) {
- this.maxResults = maxResults;
- }
-
- public String getQueryStr() {
- return queryStr;
- }
-
- public void setQueryStr(String queryStr) {
- this.queryStr = queryStr;
- }
-
- @JsonIgnore
- public String[] getSearchTerms() {
-
- if (queryStr == null) {
- return null;
- }
-
- return queryStr.split(" ");
-
- }
-
-}
diff --git a/src/main/java/org/openecomp/sparky/viewandinspect/entity/RelatedToProperty.java b/src/main/java/org/openecomp/sparky/viewandinspect/entity/RelatedToProperty.java
deleted file mode 100644
index 9b7adbb..0000000
--- a/src/main/java/org/openecomp/sparky/viewandinspect/entity/RelatedToProperty.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/**
- * ============LICENSE_START=======================================================
- * org.onap.aai
- * ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * Copyright © 2017 Amdocs
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.openecomp.sparky.viewandinspect.entity;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/**
- * The Class RelatedToProperty.
- */
-public class RelatedToProperty {
- protected String propertyKey;
- protected String propertyValue;
-
- @JsonProperty("property-key")
- public String getPropertyKey() {
- return propertyKey;
- }
-
- public void setPropertyKey(String propertyKey) {
- this.propertyKey = propertyKey;
- }
-
- @JsonProperty("property-value")
- public String getPropertyValue() {
- return propertyValue;
- }
-
- public void setPropertyValue(String propertyValue) {
- this.propertyValue = propertyValue;
- }
-
- /* (non-Javadoc)
- * @see java.lang.Object#toString()
- */
- @Override
- public String toString() {
- return "RelatedToProperty [propertyKey=" + propertyKey + ", propertyValue=" + propertyValue
- + "]";
- }
-
-
-}
diff --git a/src/main/java/org/openecomp/sparky/viewandinspect/entity/Relationship.java b/src/main/java/org/openecomp/sparky/viewandinspect/entity/Relationship.java
deleted file mode 100644
index da2c5c7..0000000
--- a/src/main/java/org/openecomp/sparky/viewandinspect/entity/Relationship.java
+++ /dev/null
@@ -1,89 +0,0 @@
-/**
- * ============LICENSE_START=======================================================
- * org.onap.aai
- * ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * Copyright © 2017 Amdocs
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.openecomp.sparky.viewandinspect.entity;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-import java.util.Arrays;
-
-/**
- * The Class Relationship.
- */
-public class Relationship {
-
- protected String relatedTo;
- protected String relatedLink;
- protected RelationshipData[] relationshipData;
- protected RelatedToProperty[] relatedToProperty;
-
- public String getRelatedTo() {
- return relatedTo;
- }
-
- @JsonProperty("related-to")
- public void setRelatedTo(String relatedTo) {
- this.relatedTo = relatedTo;
- }
-
- public String getRelatedLink() {
- return relatedLink;
- }
-
- @JsonProperty("related-link")
- public void setRelatedLink(String relatedLink) {
- this.relatedLink = relatedLink;
- }
-
- public RelationshipData[] getRelationshipData() {
- return relationshipData;
- }
-
- @JsonProperty("relationship-data")
- public void setRelationshipData(RelationshipData[] relationshipData) {
- this.relationshipData = relationshipData;
- }
-
-
-
- public RelatedToProperty[] getRelatedToProperty() {
- return relatedToProperty;
- }
-
- @JsonProperty("related-to-property")
- public void setRelatedToProperty(RelatedToProperty[] relatedToProperty) {
- this.relatedToProperty = relatedToProperty;
- }
-
- /* (non-Javadoc)
- * @see java.lang.Object#toString()
- */
- @Override
- public String toString() {
- return "Relationship [relatedTo=" + relatedTo + ", relatedLink=" + relatedLink
- + ", relationshipData=" + Arrays.toString(relationshipData) + ", relatedToProperty="
- + Arrays.toString(relatedToProperty) + "]";
- }
-
-
-
-}
diff --git a/src/main/java/org/openecomp/sparky/viewandinspect/entity/RelationshipData.java b/src/main/java/org/openecomp/sparky/viewandinspect/entity/RelationshipData.java
deleted file mode 100644
index cff3f6f..0000000
--- a/src/main/java/org/openecomp/sparky/viewandinspect/entity/RelationshipData.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/**
- * ============LICENSE_START=======================================================
- * org.onap.aai
- * ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * Copyright © 2017 Amdocs
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.openecomp.sparky.viewandinspect.entity;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/**
- * The Class RelationshipData.
- */
-public class RelationshipData {
- protected String relationshipKey;
- protected String relationshipValue;
-
- @JsonProperty("relationship-key")
- public String getRelationshipKey() {
- return relationshipKey;
- }
-
- public void setRelationshipKey(String relationshipKey) {
- this.relationshipKey = relationshipKey;
- }
-
- @JsonProperty("relationship-value")
- public String getRelationshipValue() {
- return relationshipValue;
- }
-
- public void setRelationshipValue(String relationshipValue) {
- this.relationshipValue = relationshipValue;
- }
-
- /* (non-Javadoc)
- * @see java.lang.Object#toString()
- */
- @Override
- public String toString() {
- return "RelationshipData [relationshipKey=" + relationshipKey + ", relationshipValue="
- + relationshipValue + "]";
- }
-
-}
diff --git a/src/main/java/org/openecomp/sparky/viewandinspect/entity/RelationshipDirectionality.java b/src/main/java/org/openecomp/sparky/viewandinspect/entity/RelationshipDirectionality.java
deleted file mode 100644
index eae61d4..0000000
--- a/src/main/java/org/openecomp/sparky/viewandinspect/entity/RelationshipDirectionality.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * ============LICENSE_START=======================================================
- * org.onap.aai
- * ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * Copyright © 2017 Amdocs
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.openecomp.sparky.viewandinspect.entity;
-
-/**
- * This enumeration is intended to be used to help us discriminate neighbor relationships for the
- * purpose of visualization and conceptualization to model in/out relationships between
- * ActiveInventoryNodes.
- * Possible visualization behaviors could be the following: - IN ( draw a line with 1 arrow ) - OUT
- * ( draw a line with 1 arrow ) - BOTH ( draw a line with 2 arrows, or 2 lines with 1 arrow each ) -
- * UNKNOWN ( draw a line with no arrows )
- * The UNKNOWN case is what we have at the moment where we have a collection neighbors with no
- * knowledge of relationship directionality.
- *
- * @author davea
- *
- */
-public enum RelationshipDirectionality {
- IN, OUT, BOTH, UNKNOWN
-}
diff --git a/src/main/java/org/openecomp/sparky/viewandinspect/entity/RelationshipList.java b/src/main/java/org/openecomp/sparky/viewandinspect/entity/RelationshipList.java
deleted file mode 100644
index ab6ee0c..0000000
--- a/src/main/java/org/openecomp/sparky/viewandinspect/entity/RelationshipList.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * ============LICENSE_START=======================================================
- * org.onap.aai
- * ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * Copyright © 2017 Amdocs
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.openecomp.sparky.viewandinspect.entity;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-import java.util.Arrays;
-
-/**
- * The Class RelationshipList.
- */
-public class RelationshipList {
-
- protected Relationship[] relationship;
-
- public Relationship[] getRelationshipList() {
- return relationship;
- }
-
- @JsonProperty("relationship")
- public void setRelationshipList(Relationship[] relationship) {
- this.relationship = relationship;
- }
-
- /* (non-Javadoc)
- * @see java.lang.Object#toString()
- */
- @Override
- public String toString() {
- return "RelationshipList [relationshipList=" + Arrays.toString(relationship) + "]";
- }
-
-
-
-}
diff --git a/src/main/java/org/openecomp/sparky/viewandinspect/entity/SearchResponse.java b/src/main/java/org/openecomp/sparky/viewandinspect/entity/SearchResponse.java
deleted file mode 100644
index 236ca15..0000000
--- a/src/main/java/org/openecomp/sparky/viewandinspect/entity/SearchResponse.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/**
- * ============LICENSE_START=======================================================
- * org.onap.aai
- * ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * Copyright © 2017 Amdocs
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.openecomp.sparky.viewandinspect.entity;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.openecomp.sparky.suggestivesearch.SuggestionEntity;
-
-/**
- * The Class SearchResponse.
- */
-public class SearchResponse {
-
- private long processingTimeInMs;
- private int totalFound;
-
- private List<SuggestionEntity> suggestions;
-
- /**
- * Instantiates a new search response.
- */
- public SearchResponse() {
- this.suggestions = new ArrayList<SuggestionEntity>();
- this.processingTimeInMs = 0;
- this.totalFound = 0;
- }
-
- public long getProcessingTimeInMs() {
- return processingTimeInMs;
- }
-
- public void setProcessingTimeInMs(long processingTimeInMs) {
- this.processingTimeInMs = processingTimeInMs;
- }
-
- public int getTotalFound() {
- return totalFound;
- }
-
- public void setTotalFound(int totalFound) {
- this.totalFound = totalFound;
- }
-
- public List<SuggestionEntity> getSuggestions() {
- return suggestions;
- }
-
- public void setSuggestions(List<SuggestionEntity> suggestions) {
- this.suggestions = suggestions;
- }
- /**
- * Adds the entity entry.
- *
- * @param suggestionEntry that will be converted to JSON
- */
- public void addSuggestion(SuggestionEntity suggestionEntity){
- suggestions.add(suggestionEntity);
- }
-
- /**
- * Increments the total number of hits for this SearchResponse by
- * the value passed in.
- *
- * @param additionalCount - Count to increment the total found
- */
- public void addToTotalFound(int additionalCount) {
- totalFound += additionalCount;
- }
-}
diff --git a/src/main/java/org/openecomp/sparky/viewandinspect/entity/SelfLinkDeterminationTransaction.java b/src/main/java/org/openecomp/sparky/viewandinspect/entity/SelfLinkDeterminationTransaction.java
deleted file mode 100644
index 30b9f03..0000000
--- a/src/main/java/org/openecomp/sparky/viewandinspect/entity/SelfLinkDeterminationTransaction.java
+++ /dev/null
@@ -1,79 +0,0 @@
-/**
- * ============LICENSE_START=======================================================
- * org.onap.aai
- * ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * Copyright © 2017 Amdocs
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.openecomp.sparky.viewandinspect.entity;
-
-import org.openecomp.sparky.dal.rest.OperationResult;
-
-public class SelfLinkDeterminationTransaction {
-
- private String parentNodeId;
- private ActiveInventoryNode newNode;
- private String queryString;
- private String entityUrl;
- private OperationResult opResult;
-
-
-
- public String getParentNodeId() {
- return parentNodeId;
- }
-
- public void setParentNodeId(String parentNodeId) {
- this.parentNodeId = parentNodeId;
- }
-
- public ActiveInventoryNode getNewNode() {
- return newNode;
- }
-
- public void setNewNode(ActiveInventoryNode newNode) {
- this.newNode = newNode;
- }
-
- public OperationResult getOpResult() {
- return opResult;
- }
-
- public void setOpResult(OperationResult opResult) {
- this.opResult = opResult;
- }
-
- public String getQueryString() {
- return queryString;
- }
-
- public void setQueryString(String queryString) {
- this.queryString = queryString;
- }
-
- public String getEntityUrl() {
- return entityUrl;
- }
-
- public void setEntityUrl(String entityUrl) {
- this.entityUrl = entityUrl;
- }
-
-
-
-}
diff --git a/src/main/java/org/openecomp/sparky/viewandinspect/entity/Violations.java b/src/main/java/org/openecomp/sparky/viewandinspect/entity/Violations.java
deleted file mode 100644
index 52ab332..0000000
--- a/src/main/java/org/openecomp/sparky/viewandinspect/entity/Violations.java
+++ /dev/null
@@ -1,111 +0,0 @@
-/**
- * ============LICENSE_START=======================================================
- * org.onap.aai
- * ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * Copyright © 2017 Amdocs
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
- */
-package org.openecomp.sparky.viewandinspect.entity;
-
-import com.att.aft.dme2.internal.jackson.annotate.JsonProperty;
-
-/**
- * The Class Violations.
- */
-public class Violations {
-
- private String severity;
-
- private String category;
-
- private String type;
-
- private String timestamp;
-
- private String details;
-
- @JsonProperty("error-message")
- private String errorMessage;
-
- /**
- * Instantiates a new violations.
- *
- * @param severity the severity
- * @param category the category
- * @param type the type
- * @param timestamp the timestamp
- * @param errorMessage the error message
- */
- public Violations(String severity, String category, String type, String timestamp,
- String errorMessage) {
- this.severity = severity;
- this.category = category;
- this.type = type;
- this.timestamp = timestamp;
- this.errorMessage = errorMessage;
- }
-
- public String getSeverity() {
- return severity;
- }
-
- public void setSeverity(String severity) {
- this.severity = severity;
- }
-
- public String getCategory() {
- return category;
- }
-
- public void setCategory(String category) {
- this.category = category;
- }
-
- public String getType() {
- return type;
- }
-
- public void setType(String type) {
- this.type = type;
- }
-
-
- public String getTimestamp() {
- return timestamp;
- }
-
- public void setTimestamp(String timestamp) {
- this.timestamp = timestamp;
- }
-
- /*
- * public Map<String, Object> getDetails() { return details; }
- *
- * public void setDetails(Map<String, Object> details) { this.details = details; }
- */
-
- public String getErrorMessage() {
- return errorMessage;
- }
-
- public void setErrorMessage(String errorMessage) {
- this.errorMessage = errorMessage;
- }
-
-
-}