2 * ============LICENSE_START==========================================
4 * ===================================================================
5 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 * ===================================================================
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
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.
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
26 * https://creativecommons.org/licenses/by/4.0/
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.
34 * ============LICENSE_END============================================
38 package org.onap.portalsdk.analytics.model.runtime;
40 import java.util.ArrayList;
41 import java.util.Calendar;
44 import org.onap.portalsdk.analytics.model.base.IdNameValue;
45 import org.onap.portalsdk.analytics.view.ColumnHeader;
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;
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;
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;
100 public String getTableId() {
103 public void setTableId(String tableId) {
104 this.tableId = tableId;
106 public String getDbColName() {
109 public void setDbColName(String dbColName) {
110 this.dbColName = dbColName;
112 public String getCrossTabValue() {
113 return crossTabValue;
115 public void setCrossTabValue(String crossTabValue) {
116 this.crossTabValue = crossTabValue;
118 public String getColName() {
121 public void setColName(String colName) {
122 this.colName = colName;
124 public String getDisplayName() {
127 public void setDisplayName(String displayName) {
128 this.displayName = displayName;
130 public Integer getDisplayWidth() {
133 public void setDisplayWidth(Integer displayWidth) {
134 this.displayWidth = displayWidth;
136 public String getDisplayWidthInPxls() {
137 return displayWidthInPxls;
139 public void setDisplayWidthInPxls(String displayWidthInPxls) {
140 this.displayWidthInPxls = displayWidthInPxls;
142 public String getPdfDisplayWidthInPxls() {
143 return pdfDisplayWidthInPxls;
145 public void setPdfDisplayWidthInPxls(String pdfDisplayWidthInPxls) {
146 this.pdfDisplayWidthInPxls = pdfDisplayWidthInPxls;
148 public String getDisplayAlignment() {
149 return displayAlignment;
151 public void setDisplayAlignment(String displayAlignment) {
152 this.displayAlignment = displayAlignment;
154 public String getDisplayHeaderAlignment() {
155 return displayHeaderAlignment;
157 public void setDisplayHeaderAlignment(String displayHeaderAlignment) {
158 this.displayHeaderAlignment = displayHeaderAlignment;
160 public int getOrderSeq() {
163 public void setOrderSeq(int orderSeq) {
164 this.orderSeq = orderSeq;
166 public boolean isVisible() {
169 public void setVisible(boolean visible) {
170 this.visible = visible;
172 public boolean isCalculated() {
175 public void setCalculated(boolean calculated) {
176 this.calculated = calculated;
178 public String getColType() {
181 public void setColType(String colType) {
182 this.colType = colType;
184 public String getHyperlinkURL() {
187 public void setHyperlinkURL(String hyperlinkURL) {
188 this.hyperlinkURL = hyperlinkURL;
190 public String getHyperlinkType() {
191 return hyperlinkType;
193 public void setHyperlinkType(String hyperlinkType) {
194 this.hyperlinkType = hyperlinkType;
196 public String getActionImg() {
199 public void setActionImg(String actionImg) {
200 this.actionImg = actionImg;
202 public Integer getGroupByPos() {
205 public void setGroupByPos(Integer groupByPos) {
206 this.groupByPos = groupByPos;
208 public String getSubTotalCustomText() {
209 return subTotalCustomText;
211 public void setSubTotalCustomText(String subTotalCustomText) {
212 this.subTotalCustomText = subTotalCustomText;
214 public Boolean getHideRepeatedKey() {
215 return hideRepeatedKey;
217 public void setHideRepeatedKey(Boolean hideRepeatedKey) {
218 this.hideRepeatedKey = hideRepeatedKey;
220 public String getColFormat() {
223 public void setColFormat(String colFormat) {
224 this.colFormat = colFormat;
226 public boolean isGroupBreak() {
229 public void setGroupBreak(boolean groupBreak) {
230 this.groupBreak = groupBreak;
232 public Integer getOrderBySeq() {
235 public void setOrderBySeq(Integer orderBySeq) {
236 this.orderBySeq = orderBySeq;
238 public String getOrderByAscDesc() {
239 return orderByAscDesc;
241 public void setOrderByAscDesc(String orderByAscDesc) {
242 this.orderByAscDesc = orderByAscDesc;
244 public String getDisplayTotal() {
247 public void setDisplayTotal(String displayTotal) {
248 this.displayTotal = displayTotal;
250 public String getColOnChart() {
253 public void setColOnChart(String colOnChart) {
254 this.colOnChart = colOnChart;
256 public Integer getChartSeq() {
259 public void setChartSeq(Integer chartSeq) {
260 this.chartSeq = chartSeq;
262 public String getChartColor() {
265 public void setChartColor(String chartColor) {
266 this.chartColor = chartColor;
268 public String getChartLineType() {
269 return chartLineType;
271 public void setChartLineType(String chartLineType) {
272 this.chartLineType = chartLineType;
274 public Boolean getChartSeries() {
277 public void setChartSeries(Boolean chartSeries) {
278 this.chartSeries = chartSeries;
280 public Boolean getIsRangeAxisFilled() {
281 return isRangeAxisFilled;
283 public void setIsRangeAxisFilled(Boolean isRangeAxisFilled) {
284 this.isRangeAxisFilled = isRangeAxisFilled;
286 public Boolean getCreateInNewChart() {
287 return createInNewChart;
289 public void setCreateInNewChart(Boolean createInNewChart) {
290 this.createInNewChart = createInNewChart;
292 public String getDrillDownType() {
293 return drillDownType;
295 public void setDrillDownType(String drillDownType) {
296 this.drillDownType = drillDownType;
298 public Boolean getDrillinPoPUp() {
301 public void setDrillinPoPUp(Boolean drillinPoPUp) {
302 this.drillinPoPUp = drillinPoPUp;
304 public String getDrillDownURL() {
307 public void setDrillDownURL(String drillDownURL) {
308 this.drillDownURL = drillDownURL;
310 public String getDrillDownParams() {
311 return drillDownParams;
313 public void setDrillDownParams(String drillDownParams) {
314 this.drillDownParams = drillDownParams;
316 public String getComment() {
319 public void setComment(String comment) {
320 this.comment = comment;
322 public ColFilterList getColFilterList() {
323 return colFilterList;
325 public void setColFilterList(ColFilterList colFilterList) {
326 this.colFilterList = colFilterList;
328 public String getSemaphoreId() {
331 public void setSemaphoreId(String semaphoreId) {
332 this.semaphoreId = semaphoreId;
334 public String getDbColType() {
337 public void setDbColType(String dbColType) {
338 this.dbColType = dbColType;
340 public String getChartGroup() {
343 public void setChartGroup(String chartGroup) {
344 this.chartGroup = chartGroup;
346 public String getyAxis() {
349 public void setyAxis(String yAxis) {
352 public String getDependsOnFormField() {
353 return dependsOnFormField;
355 public void setDependsOnFormField(String dependsOnFormField) {
356 this.dependsOnFormField = dependsOnFormField;
358 public String getNowrap() {
361 public void setNowrap(String nowrap) {
362 this.nowrap = nowrap;
364 public Integer getIndentation() {
367 public void setIndentation(Integer indentation) {
368 this.indentation = indentation;
370 public Boolean getEnhancedPagination() {
371 return enhancedPagination;
373 public void setEnhancedPagination(Boolean enhancedPagination) {
374 this.enhancedPagination = enhancedPagination;
376 public Integer getLevel() {
379 public void setLevel(Integer level) {
382 public Integer getStart() {
385 public void setStart(Integer start) {
388 public Integer getColspan() {
391 public void setColspan(Integer colspan) {
392 this.colspan = colspan;
394 public String getDataMiningCol() {
395 return dataMiningCol;
397 public void setDataMiningCol(String dataMiningCol) {
398 this.dataMiningCol = dataMiningCol;
400 public String getColId() {
403 public void setColId(String colId) {
410 private String displayValue;
411 private String dataType;
412 private String colId;
413 private boolean visible;
416 public boolean isVisible() {
419 public void setVisible(boolean visible) {
420 this.visible = visible;
422 public String getDisplayValue() {
425 public void setDisplayValue(String displayValue) {
426 this.displayValue = displayValue;
428 public String getDataType() {
431 public void setDataType(String dataType) {
432 this.dataType = dataType;
434 public String getColId() {
437 public void setColId(String colId) {
443 class FormFieldJSON {
444 private String fieldId;
445 private String fieldDisplayName;
446 private String fieldType;
447 private String validationType;
448 private boolean required;
449 //private String defaultValue;
451 private Calendar rangeStartDate;
452 private Calendar rangeEndDate;
453 private String multiSelectListSize;
454 private String helpText;
455 private boolean visible;
456 private boolean triggerOtherFormFields;
457 private ArrayList<IdNameValue> formFieldValues;
459 public String getFieldId() {
462 public void setFieldId(String fieldId) {
463 this.fieldId = fieldId;
465 public String getFieldDisplayName() {
466 return fieldDisplayName;
468 public void setFieldDisplayName(String fieldDisplayName) {
469 this.fieldDisplayName = fieldDisplayName;
471 public String getFieldType() {
474 public void setFieldType(String fieldType) {
475 this.fieldType = fieldType;
477 public String getValidationType() {
478 return validationType;
480 public void setValidationType(String validationType) {
481 this.validationType = validationType;
483 public boolean isRequired() {
486 public void setRequired(boolean required) {
487 this.required = required;
489 public Calendar getRangeStartDate() {
490 return rangeStartDate;
492 public void setRangeStartDate(Calendar rangeStartDate) {
493 this.rangeStartDate = rangeStartDate;
495 public Calendar getRangeEndDate() {
498 public void setRangeEndDate(Calendar rangeEndDate) {
499 this.rangeEndDate = rangeEndDate;
501 public String getMultiSelectListSize() {
502 return multiSelectListSize;
504 public void setMultiSelectListSize(String multiSelectListSize) {
505 this.multiSelectListSize = multiSelectListSize;
507 public String getHelpText() {
510 public void setHelpText(String helpText) {
511 this.helpText = helpText;
513 public boolean isVisible() {
516 public void setVisible(boolean visible) {
517 this.visible = visible;
519 public boolean isTriggerOtherFormFields() {
520 return triggerOtherFormFields;
522 public void setTriggerOtherFormFields(boolean triggerOtherFormFields) {
523 this.triggerOtherFormFields = triggerOtherFormFields;
525 public ArrayList<IdNameValue> getFormFieldValues() {
526 return formFieldValues;
528 public void setFormFieldValues(ArrayList<IdNameValue> formFieldValues) {
529 this.formFieldValues = formFieldValues;
534 public class ReportJSONRuntime {
536 private String reportID;
537 private String reportName;
538 private String reportDescr;
539 private String reportTitle;
540 private String reportSubTitle;
541 private boolean allowSchedule;
542 private boolean allowEdit;
543 private ArrayList <FormFieldJSON> formFieldList;
544 private String formfield_comments;
545 private ArrayList<ColumnHeader> reportDataColumns;
546 private ArrayList<Map<String,Object>> reportDataRows;
547 private ArrayList<ColumnHeader> reportTotalDataColumns;
548 private ArrayList<Map<String,Object>> reportTotalDataRows;
549 private int totalRows;
550 private int pageSize;
551 private String sqlWhole;
552 private boolean chartAvailable;
553 private boolean chartWizardAvailable;
554 private boolean displayData;
555 private boolean displayForm;
556 private boolean displayExcel;
557 private boolean displayPDF;
558 private String backBtnURL;
559 private String colIdxTobeFreezed;
560 private int numFormCols;
561 private String message;
562 private boolean hideFormFieldsAfterRun;
565 public boolean isChartAvailable() {
566 return chartAvailable;
568 public void setChartAvailable(boolean chartAvailable) {
569 this.chartAvailable = chartAvailable;
571 public ArrayList<Map<String,Object>> getReportDataRows() {
572 return reportDataRows;
574 public void setReportDataRows(ArrayList<Map<String,Object>> reportDataRows) {
575 this.reportDataRows = reportDataRows;
577 public String getReportID() {
580 public void setReportID(String reportID) {
581 this.reportID = reportID;
583 public String getReportName() {
586 public void setReportName(String reportName) {
587 this.reportName = reportName;
589 public String getReportDescr() {
592 public void setReportDescr(String reportDescr) {
593 this.reportDescr = reportDescr;
595 public String getReportTitle() {
598 public void setReportTitle(String reportTitle) {
599 this.reportTitle = reportTitle;
601 public String getReportSubTitle() {
602 return reportSubTitle;
604 public void setReportSubTitle(String reportSubTitle) {
605 this.reportSubTitle = reportSubTitle;
607 public boolean isAllowSchedule() {
608 return allowSchedule;
610 public void setAllowSchedule(boolean allowSchedule) {
611 this.allowSchedule = allowSchedule;
613 public ArrayList getFormFieldList() {
614 return formFieldList;
616 public void setFormFieldList(ArrayList formFieldList) {
617 this.formFieldList = formFieldList;
619 public String getFormfield_comments() {
620 return formfield_comments;
622 public void setFormfield_comments(String formfield_comments) {
623 this.formfield_comments = formfield_comments;
625 public ArrayList<ColumnHeader> getReportDataColumns() {
626 return reportDataColumns;
628 public void setReportDataColumns(ArrayList<ColumnHeader> reportDataColumns) {
629 this.reportDataColumns = reportDataColumns;
632 public int getTotalRows() {
635 public void setTotalRows(int totalRows) {
636 this.totalRows = totalRows;
638 public int getPageSize() {
641 public void setPageSize(int pageSize) {
642 this.pageSize = pageSize;
644 public String getSqlWhole() {
647 public void setSqlWhole(String sqlWhole) {
648 this.sqlWhole = sqlWhole;
651 public boolean isAllowEdit() {
654 public void setAllowEdit(boolean allowEdit) {
655 this.allowEdit = allowEdit;
657 public String getBackBtnURL() {
660 public void setBackBtnURL(String backBtnURL) {
661 this.backBtnURL = backBtnURL;
663 public String getColIdxTobeFreezed() {
664 return colIdxTobeFreezed;
666 public void setColIdxTobeFreezed(String colIdxTobeFreezed) {
667 this.colIdxTobeFreezed = colIdxTobeFreezed;
669 public int getNumFormCols() {
672 public void setNumFormCols(int numFormCols) {
673 this.numFormCols = numFormCols;
675 public boolean isDisplayData() {
678 public void setDisplayData(boolean displayData) {
679 this.displayData = displayData;
681 public boolean isDisplayForm() {
684 public void setDisplayForm(boolean displayForm) {
685 this.displayForm = displayForm;
687 public boolean isDisplayExcel() {
690 public void setDisplayExcel(boolean displayExcel) {
691 this.displayExcel = displayExcel;
693 public boolean isDisplayPDF() {
696 public void setDisplayPDF(boolean displayPDF) {
697 this.displayPDF = displayPDF;
699 public String getMessage() {
702 public void setMessage(String message) {
703 this.message = message;
705 public boolean isChartWizardAvailable() {
706 return chartWizardAvailable;
708 public void setChartWizardAvailable(boolean chartWizardAvilable) {
709 this.chartWizardAvailable = chartWizardAvilable;
711 public boolean isHideFormFieldsAfterRun() {
712 return hideFormFieldsAfterRun;
714 public void setHideFormFieldsAfterRun(boolean hideFormFieldsAfterRun) {
715 this.hideFormFieldsAfterRun = hideFormFieldsAfterRun;
717 public ArrayList<ColumnHeader> getReportTotalDataColumns() {
718 return reportTotalDataColumns;
720 public void setReportTotalDataColumns(ArrayList<ColumnHeader> reportTotalDataColumns) {
721 this.reportTotalDataColumns = reportTotalDataColumns;
723 public ArrayList<Map<String, Object>> getReportTotalDataRows() {
724 return reportTotalDataRows;
726 public void setReportTotalDataRows(ArrayList<Map<String, Object>> reportTotalDataRows) {
727 this.reportTotalDataRows = reportTotalDataRows;