Convert Sparky to Spring-Boot
[aai/sparky-be.git] / sparkybe-onap-service / src / main / java / org / onap / aai / sparky / viewandinspect / config / VisualizationConfigs.java
1 /**
2  * ============LICENSE_START===================================================
3  * SPARKY (AAI UI service)
4  * ============================================================================
5  * Copyright © 2017 AT&T Intellectual Property.
6  * Copyright © 2017 Amdocs
7  * All rights reserved.
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
12  *
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  *
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=====================================================
21  *
22  * ECOMP and OpenECOMP are trademarks
23  * and service marks of AT&T Intellectual Property.
24  */
25 package org.onap.aai.sparky.viewandinspect.config;
26
27 import java.util.ArrayList;
28
29 import org.onap.aai.sparky.config.SparkyResourceLoader;
30
31 /**
32  * The Class VisualizationConfig.
33  */
34 public class VisualizationConfigs {
35
36   private int maxSelfLinkTraversalDepth;
37
38   private boolean visualizationDebugEnabled;
39
40   private String aaiEntityNodeDescriptors;
41
42   private String generalNodeClassName;
43
44   private String searchNodeClassName;
45
46   private String selectedSearchedNodeClassName;
47
48   private int numOfThreadsToFetchNodeIntegrity;
49
50   private boolean makeAllNeighborsBidirectional;
51   
52   private ArrayList<String> shallowEntities;
53   
54   private boolean gizmoEnabled;
55   
56   private SparkyResourceLoader resourceLoader;
57
58   /**
59    * Instantiates a new visualization config.
60    */
61   public VisualizationConfigs() {
62           this.gizmoEnabled = false;
63   }
64
65   public ArrayList<String> getShallowEntities() {
66     return shallowEntities;
67   }
68
69   public void setShallowEntities(ArrayList<String> shallowEntities) {
70     this.shallowEntities = shallowEntities;
71   }
72
73   /**
74    * Make all neighbors bidirectional.
75    *
76    * @return true, if successful
77    */
78   public boolean makeAllNeighborsBidirectional() {
79     return makeAllNeighborsBidirectional;
80   }
81
82   public void setMakeAllNeighborsBidirectional(boolean makeAllNeighborsBidirectional) {
83     this.makeAllNeighborsBidirectional = makeAllNeighborsBidirectional;
84   }
85
86   public String getSelectedSearchedNodeClassName() {
87     return selectedSearchedNodeClassName;
88   }
89
90   public void setSelectedSearchedNodeClassName(String selectedSearchedNodeClassName) {
91     this.selectedSearchedNodeClassName = selectedSearchedNodeClassName;
92   }
93
94   public String getGeneralNodeClassName() {
95     return generalNodeClassName;
96   }
97
98   public void setGeneralNodeClassName(String generalNodeClassName) {
99     this.generalNodeClassName = generalNodeClassName;
100   }
101
102   public String getSearchNodeClassName() {
103     return searchNodeClassName;
104   }
105
106   public void setSearchNodeClassName(String searchNodeClassName) {
107     this.searchNodeClassName = searchNodeClassName;
108   }
109
110   public String getAaiEntityNodeDescriptors() {
111     return aaiEntityNodeDescriptors;
112   }
113
114   public void setAaiEntityNodeDescriptors(String aaiEntityNodeDescriptors) {
115     this.aaiEntityNodeDescriptors = aaiEntityNodeDescriptors;
116   }
117
118   public boolean isVisualizationDebugEnabled() {
119     return visualizationDebugEnabled;
120   }
121
122   public void setVisualizationDebugEnabled(boolean visualizationDebugEnabled) {
123     this.visualizationDebugEnabled = visualizationDebugEnabled;
124   }
125
126   public void setMaxSelfLinkTraversalDepth(int maxSelfLinkTraversalDepth) {
127     this.maxSelfLinkTraversalDepth = maxSelfLinkTraversalDepth;
128   }
129
130   public int getMaxSelfLinkTraversalDepth() {
131     return maxSelfLinkTraversalDepth;
132   }
133
134   public int getNumOfThreadsToFetchNodeIntegrity() {
135     return numOfThreadsToFetchNodeIntegrity;
136   }
137
138   public void setNumOfThreadsToFetchNodeIntegrity(int numOfThreadsToFetchNodeIntegrity) {
139     this.numOfThreadsToFetchNodeIntegrity = numOfThreadsToFetchNodeIntegrity;
140   }
141
142         public boolean isGizmoEnabled() {
143                 return gizmoEnabled;
144         }
145
146         public void setGizmoEnabled(boolean gizmoEnabled) {
147                 this.gizmoEnabled = gizmoEnabled;
148         }
149
150   public SparkyResourceLoader getResourceLoader() {
151     return resourceLoader;
152   }
153
154   public void setResourceLoader(SparkyResourceLoader resourceLoader) {
155     this.resourceLoader = resourceLoader;
156   }
157
158   @Override
159         public String toString() {
160                 return "VisualizationConfigs [maxSelfLinkTraversalDepth=" + maxSelfLinkTraversalDepth
161                                 + ", visualizationDebugEnabled=" + visualizationDebugEnabled + ", "
162                                 + (aaiEntityNodeDescriptors != null ? "aaiEntityNodeDescriptors=" + aaiEntityNodeDescriptors + ", "
163                                                 : "")
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 + "]";
172         }
173
174 }