384caf1e41b34f0d21116ec7d7b379d9c6572195
[portal/sdk.git] /
1 /*
2  * ============LICENSE_START==========================================
3  * ONAP Portal SDK
4  * ===================================================================
5  * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6  * ===================================================================
7  *
8  * Unless otherwise specified, all software contained herein is licensed
9  * under the Apache License, Version 2.0 (the "License");
10  * you may not use this software 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  *
21  * Unless otherwise specified, all documentation contained herein is licensed
22  * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
23  * you may not use this documentation except in compliance with the License.
24  * You may obtain a copy of the License at
25  *
26  *             https://creativecommons.org/licenses/by/4.0/
27  *
28  * Unless required by applicable law or agreed to in writing, documentation
29  * distributed under the License is distributed on an "AS IS" BASIS,
30  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31  * See the License for the specific language governing permissions and
32  * limitations under the License.
33  *
34  * ============LICENSE_END============================================
35  *
36  * 
37  */
38 package org.onap.portalsdk.analytics.model.runtime;
39
40 import java.util.ArrayList;
41 import java.util.Calendar;
42 import java.util.Map;
43
44 import org.onap.portalsdk.analytics.model.base.IdNameValue;
45 import org.onap.portalsdk.analytics.view.ColumnHeader;
46
47 /*class MetaColumn {
48     private String tableId;
49     private String dbColName;
50     private String crossTabValue;
51     private String colName;
52     private String displayName;
53     private Integer displayWidth;
54     private String displayWidthInPxls;
55     private String pdfDisplayWidthInPxls;
56     private String displayAlignment;
57     private String displayHeaderAlignment;
58     private int orderSeq;
59     private boolean visible;
60     private boolean calculated;
61     private String colType;
62     private String hyperlinkURL;
63     private String hyperlinkType;
64     private String actionImg;
65     private Integer groupByPos;
66     private String subTotalCustomText;
67     private Boolean hideRepeatedKey;
68     private String colFormat;
69     private boolean groupBreak;
70     private Integer orderBySeq;
71     private String orderByAscDesc;
72     private String displayTotal;
73     private String colOnChart;
74     private Integer chartSeq;
75     private String chartColor;
76     private String chartLineType;
77     private Boolean chartSeries;
78     private Boolean isRangeAxisFilled;
79     private Boolean createInNewChart;
80     private String drillDownType;
81     private Boolean drillinPoPUp;
82     private String drillDownURL;
83     private String drillDownParams;
84     private String comment;
85     private ColFilterList colFilterList;
86     private String semaphoreId;
87     private String dbColType;
88     private String chartGroup;
89     private String yAxis;
90     private String dependsOnFormField;
91     private String nowrap;
92     private Integer indentation;
93     private Boolean enhancedPagination;
94     private Integer level;
95     private Integer start;
96     private Integer colspan;
97     private String dataMiningCol;
98     private String colId;
99     
100         public String getTableId() {
101                 return tableId;
102         }
103         public void setTableId(String tableId) {
104                 this.tableId = tableId;
105         }
106         public String getDbColName() {
107                 return dbColName;
108         }
109         public void setDbColName(String dbColName) {
110                 this.dbColName = dbColName;
111         }
112         public String getCrossTabValue() {
113                 return crossTabValue;
114         }
115         public void setCrossTabValue(String crossTabValue) {
116                 this.crossTabValue = crossTabValue;
117         }
118         public String getColName() {
119                 return colName;
120         }
121         public void setColName(String colName) {
122                 this.colName = colName;
123         }
124         public String getDisplayName() {
125                 return displayName;
126         }
127         public void setDisplayName(String displayName) {
128                 this.displayName = displayName;
129         }
130         public Integer getDisplayWidth() {
131                 return displayWidth;
132         }
133         public void setDisplayWidth(Integer displayWidth) {
134                 this.displayWidth = displayWidth;
135         }
136         public String getDisplayWidthInPxls() {
137                 return displayWidthInPxls;
138         }
139         public void setDisplayWidthInPxls(String displayWidthInPxls) {
140                 this.displayWidthInPxls = displayWidthInPxls;
141         }
142         public String getPdfDisplayWidthInPxls() {
143                 return pdfDisplayWidthInPxls;
144         }
145         public void setPdfDisplayWidthInPxls(String pdfDisplayWidthInPxls) {
146                 this.pdfDisplayWidthInPxls = pdfDisplayWidthInPxls;
147         }
148         public String getDisplayAlignment() {
149                 return displayAlignment;
150         }
151         public void setDisplayAlignment(String displayAlignment) {
152                 this.displayAlignment = displayAlignment;
153         }
154         public String getDisplayHeaderAlignment() {
155                 return displayHeaderAlignment;
156         }
157         public void setDisplayHeaderAlignment(String displayHeaderAlignment) {
158                 this.displayHeaderAlignment = displayHeaderAlignment;
159         }
160         public int getOrderSeq() {
161                 return orderSeq;
162         }
163         public void setOrderSeq(int orderSeq) {
164                 this.orderSeq = orderSeq;
165         }
166         public boolean isVisible() {
167                 return visible;
168         }
169         public void setVisible(boolean visible) {
170                 this.visible = visible;
171         }
172         public boolean isCalculated() {
173                 return calculated;
174         }
175         public void setCalculated(boolean calculated) {
176                 this.calculated = calculated;
177         }
178         public String getColType() {
179                 return colType;
180         }
181         public void setColType(String colType) {
182                 this.colType = colType;
183         }
184         public String getHyperlinkURL() {
185                 return hyperlinkURL;
186         }
187         public void setHyperlinkURL(String hyperlinkURL) {
188                 this.hyperlinkURL = hyperlinkURL;
189         }
190         public String getHyperlinkType() {
191                 return hyperlinkType;
192         }
193         public void setHyperlinkType(String hyperlinkType) {
194                 this.hyperlinkType = hyperlinkType;
195         }
196         public String getActionImg() {
197                 return actionImg;
198         }
199         public void setActionImg(String actionImg) {
200                 this.actionImg = actionImg;
201         }
202         public Integer getGroupByPos() {
203                 return groupByPos;
204         }
205         public void setGroupByPos(Integer groupByPos) {
206                 this.groupByPos = groupByPos;
207         }
208         public String getSubTotalCustomText() {
209                 return subTotalCustomText;
210         }
211         public void setSubTotalCustomText(String subTotalCustomText) {
212                 this.subTotalCustomText = subTotalCustomText;
213         }
214         public Boolean getHideRepeatedKey() {
215                 return hideRepeatedKey;
216         }
217         public void setHideRepeatedKey(Boolean hideRepeatedKey) {
218                 this.hideRepeatedKey = hideRepeatedKey;
219         }
220         public String getColFormat() {
221                 return colFormat;
222         }
223         public void setColFormat(String colFormat) {
224                 this.colFormat = colFormat;
225         }
226         public boolean isGroupBreak() {
227                 return groupBreak;
228         }
229         public void setGroupBreak(boolean groupBreak) {
230                 this.groupBreak = groupBreak;
231         }
232         public Integer getOrderBySeq() {
233                 return orderBySeq;
234         }
235         public void setOrderBySeq(Integer orderBySeq) {
236                 this.orderBySeq = orderBySeq;
237         }
238         public String getOrderByAscDesc() {
239                 return orderByAscDesc;
240         }
241         public void setOrderByAscDesc(String orderByAscDesc) {
242                 this.orderByAscDesc = orderByAscDesc;
243         }
244         public String getDisplayTotal() {
245                 return displayTotal;
246         }
247         public void setDisplayTotal(String displayTotal) {
248                 this.displayTotal = displayTotal;
249         }
250         public String getColOnChart() {
251                 return colOnChart;
252         }
253         public void setColOnChart(String colOnChart) {
254                 this.colOnChart = colOnChart;
255         }
256         public Integer getChartSeq() {
257                 return chartSeq;
258         }
259         public void setChartSeq(Integer chartSeq) {
260                 this.chartSeq = chartSeq;
261         }
262         public String getChartColor() {
263                 return chartColor;
264         }
265         public void setChartColor(String chartColor) {
266                 this.chartColor = chartColor;
267         }
268         public String getChartLineType() {
269                 return chartLineType;
270         }
271         public void setChartLineType(String chartLineType) {
272                 this.chartLineType = chartLineType;
273         }
274         public Boolean getChartSeries() {
275                 return chartSeries;
276         }
277         public void setChartSeries(Boolean chartSeries) {
278                 this.chartSeries = chartSeries;
279         }
280         public Boolean getIsRangeAxisFilled() {
281                 return isRangeAxisFilled;
282         }
283         public void setIsRangeAxisFilled(Boolean isRangeAxisFilled) {
284                 this.isRangeAxisFilled = isRangeAxisFilled;
285         }
286         public Boolean getCreateInNewChart() {
287                 return createInNewChart;
288         }
289         public void setCreateInNewChart(Boolean createInNewChart) {
290                 this.createInNewChart = createInNewChart;
291         }
292         public String getDrillDownType() {
293                 return drillDownType;
294         }
295         public void setDrillDownType(String drillDownType) {
296                 this.drillDownType = drillDownType;
297         }
298         public Boolean getDrillinPoPUp() {
299                 return drillinPoPUp;
300         }
301         public void setDrillinPoPUp(Boolean drillinPoPUp) {
302                 this.drillinPoPUp = drillinPoPUp;
303         }
304         public String getDrillDownURL() {
305                 return drillDownURL;
306         }
307         public void setDrillDownURL(String drillDownURL) {
308                 this.drillDownURL = drillDownURL;
309         }
310         public String getDrillDownParams() {
311                 return drillDownParams;
312         }
313         public void setDrillDownParams(String drillDownParams) {
314                 this.drillDownParams = drillDownParams;
315         }
316         public String getComment() {
317                 return comment;
318         }
319         public void setComment(String comment) {
320                 this.comment = comment;
321         }
322         public ColFilterList getColFilterList() {
323                 return colFilterList;
324         }
325         public void setColFilterList(ColFilterList colFilterList) {
326                 this.colFilterList = colFilterList;
327         }
328         public String getSemaphoreId() {
329                 return semaphoreId;
330         }
331         public void setSemaphoreId(String semaphoreId) {
332                 this.semaphoreId = semaphoreId;
333         }
334         public String getDbColType() {
335                 return dbColType;
336         }
337         public void setDbColType(String dbColType) {
338                 this.dbColType = dbColType;
339         }
340         public String getChartGroup() {
341                 return chartGroup;
342         }
343         public void setChartGroup(String chartGroup) {
344                 this.chartGroup = chartGroup;
345         }
346         public String getyAxis() {
347                 return yAxis;
348         }
349         public void setyAxis(String yAxis) {
350                 this.yAxis = yAxis;
351         }
352         public String getDependsOnFormField() {
353                 return dependsOnFormField;
354         }
355         public void setDependsOnFormField(String dependsOnFormField) {
356                 this.dependsOnFormField = dependsOnFormField;
357         }
358         public String getNowrap() {
359                 return nowrap;
360         }
361         public void setNowrap(String nowrap) {
362                 this.nowrap = nowrap;
363         }
364         public Integer getIndentation() {
365                 return indentation;
366         }
367         public void setIndentation(Integer indentation) {
368                 this.indentation = indentation;
369         }
370         public Boolean getEnhancedPagination() {
371                 return enhancedPagination;
372         }
373         public void setEnhancedPagination(Boolean enhancedPagination) {
374                 this.enhancedPagination = enhancedPagination;
375         }
376         public Integer getLevel() {
377                 return level;
378         }
379         public void setLevel(Integer level) {
380                 this.level = level;
381         }
382         public Integer getStart() {
383                 return start;
384         }
385         public void setStart(Integer start) {
386                 this.start = start;
387         }
388         public Integer getColspan() {
389                 return colspan;
390         }
391         public void setColspan(Integer colspan) {
392                 this.colspan = colspan;
393         }
394         public String getDataMiningCol() {
395                 return dataMiningCol;
396         }
397         public void setDataMiningCol(String dataMiningCol) {
398                 this.dataMiningCol = dataMiningCol;
399         }
400         public String getColId() {
401                 return colId;
402         }
403         public void setColId(String colId) {
404                 this.colId = colId;
405         }  
406     
407 }*/
408
409 class FormFieldJSON {
410         private String fieldId;
411         private String fieldDisplayName;
412         private String fieldType;
413         private String validationType;
414         private boolean required;
415         private Calendar rangeStartDate;
416         private Calendar rangeEndDate;
417         private String multiSelectListSize;
418         private String helpText;
419         private boolean visible;
420         private boolean triggerOtherFormFields;
421         private ArrayList<IdNameValue> formFieldValues;
422         
423         public String getFieldId() {
424                 return fieldId;
425         }
426         public void setFieldId(String fieldId) {
427                 this.fieldId = fieldId;
428         }
429         public String getFieldDisplayName() {
430                 return fieldDisplayName;
431         }
432         public void setFieldDisplayName(String fieldDisplayName) {
433                 this.fieldDisplayName = fieldDisplayName;
434         }
435         public String getFieldType() {
436                 return fieldType;
437         }
438         public void setFieldType(String fieldType) {
439                 this.fieldType = fieldType;
440         }
441         public String getValidationType() {
442                 return validationType;
443         }
444         public void setValidationType(String validationType) {
445                 this.validationType = validationType;
446         }
447         public boolean isRequired() {
448                 return required;
449         }
450         public void setRequired(boolean required) {
451                 this.required = required;
452         }
453         public Calendar getRangeStartDate() {
454                 return rangeStartDate;
455         }
456         public void setRangeStartDate(Calendar rangeStartDate) {
457                 this.rangeStartDate = rangeStartDate;
458         }
459         public Calendar getRangeEndDate() {
460                 return rangeEndDate;
461         }
462         public void setRangeEndDate(Calendar rangeEndDate) {
463                 this.rangeEndDate = rangeEndDate;
464         }
465         public String getMultiSelectListSize() {
466                 return multiSelectListSize;
467         }
468         public void setMultiSelectListSize(String multiSelectListSize) {
469                 this.multiSelectListSize = multiSelectListSize;
470         }
471         public String getHelpText() {
472                 return helpText;
473         }
474         public void setHelpText(String helpText) {
475                 this.helpText = helpText;
476         }
477         public boolean isVisible() {
478                 return visible;
479         }
480         public void setVisible(boolean visible) {
481                 this.visible = visible;
482         }
483         public boolean isTriggerOtherFormFields() {
484                 return triggerOtherFormFields;
485         }
486         public void setTriggerOtherFormFields(boolean triggerOtherFormFields) {
487                 this.triggerOtherFormFields = triggerOtherFormFields;
488         }
489         public ArrayList<IdNameValue> getFormFieldValues() {
490                 return formFieldValues;
491         }
492         public void setFormFieldValues(ArrayList<IdNameValue> formFieldValues) {
493                 this.formFieldValues = formFieldValues;
494         }
495
496         
497 }
498 public class ReportJSONRuntime {
499
500         private String reportID;
501         private String reportName;
502         private String reportDescr;
503         private String reportTitle;
504         private String reportSubTitle;
505         private boolean allowSchedule;
506         private boolean allowEdit;
507         private ArrayList <FormFieldJSON> formFieldList;
508         private String formfield_comments;
509         private ArrayList<ColumnHeader> reportDataColumns;
510         private ArrayList<Map<String,Object>> reportDataRows;
511         private ArrayList<ColumnHeader> reportTotalDataColumns;
512         private ArrayList<Map<String,Object>> reportTotalDataRows;
513         private int totalRows;
514         private int pageSize;
515         private String sqlWhole;
516         private boolean chartAvailable;
517         private boolean chartWizardAvailable;
518         private boolean displayData;
519         private boolean displayForm;
520         private boolean displayExcel;
521         private boolean displayPDF;
522         private String backBtnURL;
523         private String colIdxTobeFreezed;
524         private int numFormCols;
525         private String message;
526         private boolean hideFormFieldsAfterRun;
527         private Long totalRunTime;
528         
529         
530         public Long getTotalRunTime() {
531                 return totalRunTime;
532         }
533         public void setTotalRunTime(Long totalRunTime) {
534                 this.totalRunTime = totalRunTime;
535         }
536         public boolean isChartAvailable() {
537                 return chartAvailable;
538         }
539         public void setChartAvailable(boolean chartAvailable) {
540                 this.chartAvailable = chartAvailable;
541         }
542         public ArrayList<Map<String,Object>> getReportDataRows() {
543                 return reportDataRows;
544         }
545         public void setReportDataRows(ArrayList<Map<String,Object>> reportDataRows) {
546                 this.reportDataRows = reportDataRows;
547         }
548         public String getReportID() {
549                 return reportID;
550         }
551         public void setReportID(String reportID) {
552                 this.reportID = reportID;
553         }
554         public String getReportName() {
555                 return reportName;
556         }
557         public void setReportName(String reportName) {
558                 this.reportName = reportName;
559         }
560         public String getReportDescr() {
561                 return reportDescr;
562         }
563         public void setReportDescr(String reportDescr) {
564                 this.reportDescr = reportDescr;
565         }
566         public String getReportTitle() {
567                 return reportTitle;
568         }
569         public void setReportTitle(String reportTitle) {
570                 this.reportTitle = reportTitle;
571         }
572         public String getReportSubTitle() {
573                 return reportSubTitle;
574         }
575         public void setReportSubTitle(String reportSubTitle) {
576                 this.reportSubTitle = reportSubTitle;
577         }
578         public boolean isAllowSchedule() {
579                 return allowSchedule;
580         }
581         public void setAllowSchedule(boolean allowSchedule) {
582                 this.allowSchedule = allowSchedule;
583         }
584         public ArrayList getFormFieldList() {
585                 return formFieldList;
586         }
587         public void setFormFieldList(ArrayList formFieldList) {
588                 this.formFieldList = formFieldList;
589         }
590         public String getFormfield_comments() {
591                 return formfield_comments;
592         }
593         public void setFormfield_comments(String formfield_comments) {
594                 this.formfield_comments = formfield_comments;
595         }
596         public ArrayList<ColumnHeader> getReportDataColumns() {
597                 return reportDataColumns;
598         }
599         public void setReportDataColumns(ArrayList<ColumnHeader> reportDataColumns) {
600                 this.reportDataColumns = reportDataColumns;
601         }
602
603         public int getTotalRows() {
604                 return totalRows;
605         }
606         public void setTotalRows(int totalRows) {
607                 this.totalRows = totalRows;
608         }
609         public int getPageSize() {
610                 return pageSize;
611         }
612         public void setPageSize(int pageSize) {
613                 this.pageSize = pageSize;
614         }
615         public String getSqlWhole() {
616                 return sqlWhole;
617         }
618         public void setSqlWhole(String sqlWhole) {
619                 this.sqlWhole = sqlWhole;
620         }
621         
622         public boolean isAllowEdit() {
623                 return allowEdit;
624         }
625         public void setAllowEdit(boolean allowEdit) {
626                 this.allowEdit = allowEdit;
627         }
628         public String getBackBtnURL() {
629                 return backBtnURL;
630         }
631         public void setBackBtnURL(String backBtnURL) {
632                 this.backBtnURL = backBtnURL;
633         }
634         public String getColIdxTobeFreezed() {
635                 return colIdxTobeFreezed;
636         }
637         public void setColIdxTobeFreezed(String colIdxTobeFreezed) {
638                 this.colIdxTobeFreezed = colIdxTobeFreezed;
639         }
640         public int getNumFormCols() {
641                 return numFormCols;
642         }
643         public void setNumFormCols(int numFormCols) {
644                 this.numFormCols = numFormCols;
645         }
646         public boolean isDisplayData() {
647                 return displayData;
648         }
649         public void setDisplayData(boolean displayData) {
650                 this.displayData = displayData;
651         }
652         public boolean isDisplayForm() {
653                 return displayForm;
654         }
655         public void setDisplayForm(boolean displayForm) {
656                 this.displayForm = displayForm;
657         }
658         public boolean isDisplayExcel() {
659                 return displayExcel;
660         }
661         public void setDisplayExcel(boolean displayExcel) {
662                 this.displayExcel = displayExcel;
663         }
664         public boolean isDisplayPDF() {
665                 return displayPDF;
666         }
667         public void setDisplayPDF(boolean displayPDF) {
668                 this.displayPDF = displayPDF;
669         }
670         public String getMessage() {
671                 return message;
672         }
673         public void setMessage(String message) {
674                 this.message = message;
675         }
676         public boolean isChartWizardAvailable() {
677                 return chartWizardAvailable;
678         }
679         public void setChartWizardAvailable(boolean chartWizardAvilable) {
680                 this.chartWizardAvailable = chartWizardAvilable;
681         }
682         public boolean isHideFormFieldsAfterRun() {
683                 return hideFormFieldsAfterRun;
684         }
685         public void setHideFormFieldsAfterRun(boolean hideFormFieldsAfterRun) {
686                 this.hideFormFieldsAfterRun = hideFormFieldsAfterRun;
687         }
688         public ArrayList<ColumnHeader> getReportTotalDataColumns() {
689                 return reportTotalDataColumns;
690         }
691         public void setReportTotalDataColumns(ArrayList<ColumnHeader> reportTotalDataColumns) {
692                 this.reportTotalDataColumns = reportTotalDataColumns;
693         }
694         public ArrayList<Map<String, Object>> getReportTotalDataRows() {
695                 return reportTotalDataRows;
696         }
697         public void setReportTotalDataRows(ArrayList<Map<String, Object>> reportTotalDataRows) {
698                 this.reportTotalDataRows = reportTotalDataRows;
699         }
700
701         
702 }