2 * ============LICENSE_START===================================================
3 * SPARKY (AAI UI service)
4 * ============================================================================
5 * Copyright © 2017 AT&T Intellectual Property.
6 * Copyright © 2017 Amdocs
8 * ============================================================================
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 * ============LICENSE_END=====================================================
22 * ECOMP and OpenECOMP are trademarks
23 * and service marks of AT&T Intellectual Property.
25 package org.onap.aai.sparky.viewandinspect.config;
27 import java.util.ArrayList;
29 import org.onap.aai.sparky.config.SparkyResourceLoader;
32 * The Class VisualizationConfig.
34 public class VisualizationConfigs {
36 private int maxSelfLinkTraversalDepth;
38 private boolean visualizationDebugEnabled;
40 private String aaiEntityNodeDescriptors;
42 private String generalNodeClassName;
44 private String searchNodeClassName;
46 private String selectedSearchedNodeClassName;
48 private int numOfThreadsToFetchNodeIntegrity;
50 private boolean makeAllNeighborsBidirectional;
52 private ArrayList<String> shallowEntities;
54 private boolean gizmoEnabled;
56 private SparkyResourceLoader resourceLoader;
59 * Instantiates a new visualization config.
61 public VisualizationConfigs() {
62 this.gizmoEnabled = false;
65 public ArrayList<String> getShallowEntities() {
66 return shallowEntities;
69 public void setShallowEntities(ArrayList<String> shallowEntities) {
70 this.shallowEntities = shallowEntities;
74 * Make all neighbors bidirectional.
76 * @return true, if successful
78 public boolean makeAllNeighborsBidirectional() {
79 return makeAllNeighborsBidirectional;
82 public void setMakeAllNeighborsBidirectional(boolean makeAllNeighborsBidirectional) {
83 this.makeAllNeighborsBidirectional = makeAllNeighborsBidirectional;
86 public String getSelectedSearchedNodeClassName() {
87 return selectedSearchedNodeClassName;
90 public void setSelectedSearchedNodeClassName(String selectedSearchedNodeClassName) {
91 this.selectedSearchedNodeClassName = selectedSearchedNodeClassName;
94 public String getGeneralNodeClassName() {
95 return generalNodeClassName;
98 public void setGeneralNodeClassName(String generalNodeClassName) {
99 this.generalNodeClassName = generalNodeClassName;
102 public String getSearchNodeClassName() {
103 return searchNodeClassName;
106 public void setSearchNodeClassName(String searchNodeClassName) {
107 this.searchNodeClassName = searchNodeClassName;
110 public String getAaiEntityNodeDescriptors() {
111 return aaiEntityNodeDescriptors;
114 public void setAaiEntityNodeDescriptors(String aaiEntityNodeDescriptors) {
115 this.aaiEntityNodeDescriptors = aaiEntityNodeDescriptors;
118 public boolean isVisualizationDebugEnabled() {
119 return visualizationDebugEnabled;
122 public void setVisualizationDebugEnabled(boolean visualizationDebugEnabled) {
123 this.visualizationDebugEnabled = visualizationDebugEnabled;
126 public void setMaxSelfLinkTraversalDepth(int maxSelfLinkTraversalDepth) {
127 this.maxSelfLinkTraversalDepth = maxSelfLinkTraversalDepth;
130 public int getMaxSelfLinkTraversalDepth() {
131 return maxSelfLinkTraversalDepth;
134 public int getNumOfThreadsToFetchNodeIntegrity() {
135 return numOfThreadsToFetchNodeIntegrity;
138 public void setNumOfThreadsToFetchNodeIntegrity(int numOfThreadsToFetchNodeIntegrity) {
139 this.numOfThreadsToFetchNodeIntegrity = numOfThreadsToFetchNodeIntegrity;
142 public boolean isGizmoEnabled() {
146 public void setGizmoEnabled(boolean gizmoEnabled) {
147 this.gizmoEnabled = gizmoEnabled;
150 public SparkyResourceLoader getResourceLoader() {
151 return resourceLoader;
154 public void setResourceLoader(SparkyResourceLoader resourceLoader) {
155 this.resourceLoader = resourceLoader;
159 public String toString() {
160 return "VisualizationConfigs [maxSelfLinkTraversalDepth=" + maxSelfLinkTraversalDepth
161 + ", visualizationDebugEnabled=" + visualizationDebugEnabled + ", "
162 + (aaiEntityNodeDescriptors != null ? "aaiEntityNodeDescriptors=" + aaiEntityNodeDescriptors + ", "
164 + (generalNodeClassName != null ? "generalNodeClassName=" + generalNodeClassName + ", " : "")
165 + (searchNodeClassName != null ? "searchNodeClassName=" + searchNodeClassName + ", " : "")
166 + (selectedSearchedNodeClassName != null
167 ? "selectedSearchedNodeClassName=" + selectedSearchedNodeClassName + ", " : "")
168 + "numOfThreadsToFetchNodeIntegrity=" + numOfThreadsToFetchNodeIntegrity
169 + ", makeAllNeighborsBidirectional=" + makeAllNeighborsBidirectional + ", "
170 + (shallowEntities != null ? "shallowEntities=" + shallowEntities + ", " : "") + "gizmoEnabled="
171 + gizmoEnabled + "]";