4ec7a5466dcf32e2d319353b3c5f3373979a470e
[portal/sdk.git] /
1 /*-
2  * ================================================================================
3  * ECOMP Portal SDK
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ================================================================================
19  */
20 package org.openecomp.portalsdk.analytics.system.fusion.domain;
21
22
23 import java.util.*;
24
25 import org.openecomp.portalsdk.core.domain.User;
26 import org.openecomp.portalsdk.core.domain.support.DomainVo;;
27
28 /**
29  * <p>CR_Report.java</p>
30  * <p>Represents a RAPTOR report data object.</p>
31  *
32  * @author Sundar Ramalingam
33  * @version 1.0
34  */
35 public class CR_Report extends DomainVo {
36
37     private String title;
38     private String descr;
39     private String public_yn;
40     //private String report_xml;
41     private Date   createDate;
42     private Date   maintDate;
43     private String menuId;
44     private String menuApproved_YN;
45     private User  ownerId;
46     private Long   folderId;
47     private String dashboard_type_YN;
48     private String dashboard_yn;
49     private User createId;
50     private User maintId;
51
52 /*
53     //New Buttons
54     private String copyImagePath = "/static/fusion/raptor/img/cross-small.png" ; 
55     private String editImagePath = "/static/fusion/raptor/img/pencil-small.png" ; 
56     private String deleteImagePath = "/static/fusion/raptor/img/DeleteCross-16x16.png" ; 
57     private String scheduleImagePath = "/static/fusion/raptor/img/Calendar-16x16.png" ; 
58     private String runImagePath = "/static/fusion/raptor/img/tick-small.png" ; 
59     
60 */  
61     //private Set     reportAccess  = new TreeSet();
62
63     public CR_Report() {}
64
65     
66
67     /**
68          * @return the title
69          */
70         public String getTitle() {
71                 return title;
72         }
73
74
75
76         /**
77          * @param title the title to set
78          */
79         public void setTitle(String title) {
80                 this.title = title;
81         }
82
83
84
85         /**
86          * @return the descr
87          */
88         public String getDescr() {
89                 return descr;
90         }
91
92
93
94         /**
95          * @param descr the descr to set
96          */
97         public void setDescr(String descr) {
98                 this.descr = descr;
99         }
100
101
102
103         /**
104          * @return the public_yn
105          */
106         public String getPublic_yn() {
107                 return public_yn;
108         }
109
110
111
112         /**
113          * @param public_yn the public_yn to set
114          */
115         public void setPublic_yn(String public_yn) {
116                 this.public_yn = public_yn;
117         }
118
119
120         /**
121          * @return the createDate
122          */
123         public Date getCreateDate() {
124                 return createDate;
125         }
126
127
128
129         /**
130          * @param createDate the createDate to set
131          */
132         public void setCreateDate(Date createDate) {
133                 this.createDate = createDate;
134         }
135
136
137         /**
138          * @return the maintDate
139          */
140         public Date getMaintDate() {
141                 return maintDate;
142         }
143
144
145
146         /**
147          * @param maintDate the maintDate to set
148          */
149         public void setMaintDate(Date maintDate) {
150                 this.maintDate = maintDate;
151         }
152
153
154
155         /**
156          * @return the menuId
157          */
158         public String getMenuId() {
159                 return menuId;
160         }
161
162
163
164         /**
165          * @param menuId the menuId to set
166          */
167         public void setMenuId(String menuId) {
168                 this.menuId = menuId;
169         }
170
171
172
173         /**
174          * @return the menuApproved_YN
175          */
176         public String getMenuApproved_YN() {
177                 return menuApproved_YN;
178         }
179
180
181
182         /**
183          * @param menuApproved_YN the menuApproved_YN to set
184          */
185         public void setMenuApproved_YN(String menuApproved_YN) {
186                 this.menuApproved_YN = menuApproved_YN;
187         }
188
189
190
191
192         /**
193          * @return the folderId
194          */
195         public Long getFolderId() {
196                 return folderId;
197         }
198
199
200
201         /**
202          * @param folderId the folderId to set
203          */
204         public void setFolderId(Long folderId) {
205                 this.folderId = folderId;
206         }
207
208
209
210         /**
211          * @return the dashboard_type_YN
212          */
213         public String getDashboard_type_YN() {
214                 return dashboard_type_YN;
215         }
216
217
218
219         /**
220          * @param dashboard_type_YN the dashboard_type_YN to set
221          */
222         public void setDashboard_type_YN(String dashboard_type_YN) {
223                 this.dashboard_type_YN = dashboard_type_YN;
224         }
225
226
227
228         /**
229          * @return the dashboard_yn
230          */
231         public String getDashboard_yn() {
232                 return dashboard_yn;
233         }
234
235
236
237         /**
238          * @param dashboard_yn the dashboard_yn to set
239          */
240         public void setDashboard_yn(String dashboard_yn) {
241                 this.dashboard_yn = dashboard_yn;
242         }
243
244
245
246         /**
247          * @return the ownerId
248          */
249         public User getOwnerId() {
250                 return ownerId;
251         }
252
253
254
255         /**
256          * @param ownerId the ownerId to set
257          */
258         public void setOwnerId(User ownerId) {
259                 this.ownerId = ownerId;
260         }
261
262
263
264         /**
265          * @return the createId
266          */
267         public User getCreateId() {
268                 return createId;
269         }
270
271
272
273         /**
274          * @param createId the createId to set
275          */
276         public void setCreateId(User createId) {
277                 this.createId = createId;
278         }
279
280
281
282         /**
283          * @return the maintId
284          */
285         public User getMaintId() {
286                 return maintId;
287         }
288
289
290
291         /**
292          * @param maintId the maintId to set
293          */
294         public void setMaintId(User maintId) {
295                 this.maintId = maintId;
296         }
297
298
299
300         public int compareTo(Object obj){
301       String c1 = getTitle();
302       String c2 = ((CR_Report)obj).getTitle();
303
304       return (c1 == null || c2 == null) ? 1 : c1.compareTo(c2);
305     }
306
307 }