e30d9cad0e8f01eb9ebae81debe022cb1398e313
[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  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
37  */
38 package org.onap.portalsdk.analytics.system.fusion.domain;
39
40
41 import java.util.*;
42
43 import org.onap.portalsdk.core.domain.User;
44 import org.onap.portalsdk.core.domain.support.DomainVo;;
45
46 /**
47  * <p>CR_Report.java</p>
48  * <p>Represents a RAPTOR report data object.</p>
49  *
50  * @author Sundar Ramalingam
51  * @version 1.0
52  */
53 public class CR_Report extends DomainVo {
54
55     private String title;
56     private String descr;
57     private String public_yn;
58     //private String report_xml;
59     private Date   createDate;
60     private Date   maintDate;
61     private String menuId;
62     private String menuApproved_YN;
63     private User  ownerId;
64     private Long   folderId;
65     private String dashboard_type_YN;
66     private String dashboard_yn;
67     private User createId;
68     private User maintId;
69
70 /*
71     //New Buttons
72     private String copyImagePath = "/static/fusion/raptor/img/cross-small.png" ; 
73     private String editImagePath = "/static/fusion/raptor/img/pencil-small.png" ; 
74     private String deleteImagePath = "/static/fusion/raptor/img/DeleteCross-16x16.png" ; 
75     private String scheduleImagePath = "/static/fusion/raptor/img/Calendar-16x16.png" ; 
76     private String runImagePath = "/static/fusion/raptor/img/tick-small.png" ; 
77     
78 */  
79     //private Set     reportAccess  = new TreeSet();
80
81     public CR_Report() {}
82
83     
84
85     /**
86          * @return the title
87          */
88         public String getTitle() {
89                 return title;
90         }
91
92
93
94         /**
95          * @param title the title to set
96          */
97         public void setTitle(String title) {
98                 this.title = title;
99         }
100
101
102
103         /**
104          * @return the descr
105          */
106         public String getDescr() {
107                 return descr;
108         }
109
110
111
112         /**
113          * @param descr the descr to set
114          */
115         public void setDescr(String descr) {
116                 this.descr = descr;
117         }
118
119
120
121         /**
122          * @return the public_yn
123          */
124         public String getPublic_yn() {
125                 return public_yn;
126         }
127
128
129
130         /**
131          * @param public_yn the public_yn to set
132          */
133         public void setPublic_yn(String public_yn) {
134                 this.public_yn = public_yn;
135         }
136
137
138         /**
139          * @return the createDate
140          */
141         public Date getCreateDate() {
142                 return createDate;
143         }
144
145
146
147         /**
148          * @param createDate the createDate to set
149          */
150         public void setCreateDate(Date createDate) {
151                 this.createDate = createDate;
152         }
153
154
155         /**
156          * @return the maintDate
157          */
158         public Date getMaintDate() {
159                 return maintDate;
160         }
161
162
163
164         /**
165          * @param maintDate the maintDate to set
166          */
167         public void setMaintDate(Date maintDate) {
168                 this.maintDate = maintDate;
169         }
170
171
172
173         /**
174          * @return the menuId
175          */
176         public String getMenuId() {
177                 return menuId;
178         }
179
180
181
182         /**
183          * @param menuId the menuId to set
184          */
185         public void setMenuId(String menuId) {
186                 this.menuId = menuId;
187         }
188
189
190
191         /**
192          * @return the menuApproved_YN
193          */
194         public String getMenuApproved_YN() {
195                 return menuApproved_YN;
196         }
197
198
199
200         /**
201          * @param menuApproved_YN the menuApproved_YN to set
202          */
203         public void setMenuApproved_YN(String menuApproved_YN) {
204                 this.menuApproved_YN = menuApproved_YN;
205         }
206
207
208
209
210         /**
211          * @return the folderId
212          */
213         public Long getFolderId() {
214                 return folderId;
215         }
216
217
218
219         /**
220          * @param folderId the folderId to set
221          */
222         public void setFolderId(Long folderId) {
223                 this.folderId = folderId;
224         }
225
226
227
228         /**
229          * @return the dashboard_type_YN
230          */
231         public String getDashboard_type_YN() {
232                 return dashboard_type_YN;
233         }
234
235
236
237         /**
238          * @param dashboard_type_YN the dashboard_type_YN to set
239          */
240         public void setDashboard_type_YN(String dashboard_type_YN) {
241                 this.dashboard_type_YN = dashboard_type_YN;
242         }
243
244
245
246         /**
247          * @return the dashboard_yn
248          */
249         public String getDashboard_yn() {
250                 return dashboard_yn;
251         }
252
253
254
255         /**
256          * @param dashboard_yn the dashboard_yn to set
257          */
258         public void setDashboard_yn(String dashboard_yn) {
259                 this.dashboard_yn = dashboard_yn;
260         }
261
262
263
264         /**
265          * @return the ownerId
266          */
267         public User getOwnerId() {
268                 return ownerId;
269         }
270
271
272
273         /**
274          * @param ownerId the ownerId to set
275          */
276         public void setOwnerId(User ownerId) {
277                 this.ownerId = ownerId;
278         }
279
280
281
282         /**
283          * @return the createId
284          */
285         public User getCreateId() {
286                 return createId;
287         }
288
289
290
291         /**
292          * @param createId the createId to set
293          */
294         public void setCreateId(User createId) {
295                 this.createId = createId;
296         }
297
298
299
300         /**
301          * @return the maintId
302          */
303         public User getMaintId() {
304                 return maintId;
305         }
306
307
308
309         /**
310          * @param maintId the maintId to set
311          */
312         public void setMaintId(User maintId) {
313                 this.maintId = maintId;
314         }
315
316
317
318         public int compareTo(Object obj){
319       String c1 = getTitle();
320       String c2 = ((CR_Report)obj).getTitle();
321
322       return (c1 == null || c2 == null) ? 1 : c1.compareTo(c2);
323     }
324
325 }