XSS Vulnerability fix in AppsController
[portal.git] / ecomp-portal-BE-common / src / main / java / org / onap / portalapp / portal / transport / EPAppsManualPreference.java
1 /*-
2  * ============LICENSE_START==========================================
3  * ONAP Portal
4  * ===================================================================
5  * Copyright (C) 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.portalapp.portal.transport;
39
40 import org.hibernate.validator.constraints.SafeHtml;
41
42 public class EPAppsManualPreference {
43         
44         private Long appid;
45         private int col;
46         @SafeHtml
47         private String headerText;
48         @SafeHtml
49         private String imageLink;
50         private int order;
51         private boolean restrictedApp;
52         private int row;
53         private int sizeX;
54         private int sizeY;
55         @SafeHtml
56         private String subHeaderText;
57         @SafeHtml
58         private String url;
59         private boolean addRemoveApps;
60         
61         
62         public boolean isAddRemoveApps() {
63                 return addRemoveApps;
64         }
65         public void setAddRemoveApps(boolean addRemoveApps) {
66                 this.addRemoveApps = addRemoveApps;
67         }
68         public Long getAppid() {
69                 return appid;
70         }
71         public void setAppid(Long appid) {
72                 this.appid = appid;
73         }
74         public int getCol() {
75                 return col;
76         }
77         public void setCol(int col) {
78                 this.col = col;
79         }
80         public String getHeaderText() {
81                 return headerText;
82         }
83         public void setHeaderText(String headerText) {
84                 this.headerText = headerText;
85         }
86         public String getImageLink() {
87                 return imageLink;
88         }
89         public void setImageLink(String imageLink) {
90                 this.imageLink = imageLink;
91         }
92         public int getOrder() {
93                 return order;
94         }
95         public void setOrder(int order) {
96                 this.order = order;
97         }
98         public boolean isRestrictedApp() {
99                 return restrictedApp;
100         }
101         public void setRestrictedApp(boolean restrictedApp) {
102                 this.restrictedApp = restrictedApp;
103         }
104         public int getRow() {
105                 return row;
106         }
107         public void setRow(int row) {
108                 this.row = row;
109         }
110         public int getSizeX() {
111                 return sizeX;
112         }
113         public void setSizeX(int sizeX) {
114                 this.sizeX = sizeX;
115         }
116         public int getSizeY() {
117                 return sizeY;
118         }
119         public void setSizeY(int sizeY) {
120                 this.sizeY = sizeY;
121         }
122         public String getSubHeaderText() {
123                 return subHeaderText;
124         }
125         public void setSubHeaderText(String subHeaderText) {
126                 this.subHeaderText = subHeaderText;
127         }
128         public String getUrl() {
129                 return url;
130         }
131         public void setUrl(String url) {
132                 this.url = url;
133         }
134         
135         public boolean isValid(){
136                 return appid != null;
137         }
138 }