2 * ================================================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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 * ================================================================================
20 package org.openecomp.portalsdk.analytics.system.fusion.domain;
25 import org.openecomp.portalsdk.core.domain.User;
26 import org.openecomp.portalsdk.core.domain.support.DomainVo;;
29 * <p>CR_Report.java</p>
30 * <p>Represents a RAPTOR report data object.</p>
32 * @author Sundar Ramalingam
35 public class CR_Report extends DomainVo {
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;
46 private Long folderId;
47 private String dashboard_type_YN;
48 private String dashboard_yn;
49 private User createId;
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" ;
61 //private Set reportAccess = new TreeSet();
70 public String getTitle() {
77 * @param title the title to set
79 public void setTitle(String title) {
88 public String getDescr() {
95 * @param descr the descr to set
97 public void setDescr(String descr) {
104 * @return the public_yn
106 public String getPublic_yn() {
113 * @param public_yn the public_yn to set
115 public void setPublic_yn(String public_yn) {
116 this.public_yn = public_yn;
121 * @return the createDate
123 public Date getCreateDate() {
130 * @param createDate the createDate to set
132 public void setCreateDate(Date createDate) {
133 this.createDate = createDate;
138 * @return the maintDate
140 public Date getMaintDate() {
147 * @param maintDate the maintDate to set
149 public void setMaintDate(Date maintDate) {
150 this.maintDate = maintDate;
158 public String getMenuId() {
165 * @param menuId the menuId to set
167 public void setMenuId(String menuId) {
168 this.menuId = menuId;
174 * @return the menuApproved_YN
176 public String getMenuApproved_YN() {
177 return menuApproved_YN;
183 * @param menuApproved_YN the menuApproved_YN to set
185 public void setMenuApproved_YN(String menuApproved_YN) {
186 this.menuApproved_YN = menuApproved_YN;
193 * @return the folderId
195 public Long getFolderId() {
202 * @param folderId the folderId to set
204 public void setFolderId(Long folderId) {
205 this.folderId = folderId;
211 * @return the dashboard_type_YN
213 public String getDashboard_type_YN() {
214 return dashboard_type_YN;
220 * @param dashboard_type_YN the dashboard_type_YN to set
222 public void setDashboard_type_YN(String dashboard_type_YN) {
223 this.dashboard_type_YN = dashboard_type_YN;
229 * @return the dashboard_yn
231 public String getDashboard_yn() {
238 * @param dashboard_yn the dashboard_yn to set
240 public void setDashboard_yn(String dashboard_yn) {
241 this.dashboard_yn = dashboard_yn;
247 * @return the ownerId
249 public User getOwnerId() {
256 * @param ownerId the ownerId to set
258 public void setOwnerId(User ownerId) {
259 this.ownerId = ownerId;
265 * @return the createId
267 public User getCreateId() {
274 * @param createId the createId to set
276 public void setCreateId(User createId) {
277 this.createId = createId;
283 * @return the maintId
285 public User getMaintId() {
292 * @param maintId the maintId to set
294 public void setMaintId(User maintId) {
295 this.maintId = maintId;
300 public int compareTo(Object obj){
301 String c1 = getTitle();
302 String c2 = ((CR_Report)obj).getTitle();
304 return (c1 == null || c2 == null) ? 1 : c1.compareTo(c2);