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============================================
36 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
38 package org.onap.portalsdk.analytics.system.fusion.domain;
41 import java.util.Date;
43 import org.onap.portalsdk.core.domain.User;
44 import org.onap.portalsdk.core.domain.support.DomainVo;;
47 * <p>CR_Report.java</p>
48 * <p>Represents a RAPTOR report data object.</p>
50 * @author Sundar Ramalingam
53 public class CR_Report extends DomainVo {
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;
64 private Long folderId;
65 private String dashboard_type_YN;
66 private String dashboard_yn;
67 private User createId;
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" ;
79 //private Set reportAccess = new TreeSet();
88 public String getTitle() {
95 * @param title the title to set
97 public void setTitle(String title) {
106 public String getDescr() {
113 * @param descr the descr to set
115 public void setDescr(String descr) {
122 * @return the public_yn
124 public String getPublic_yn() {
131 * @param public_yn the public_yn to set
133 public void setPublic_yn(String public_yn) {
134 this.public_yn = public_yn;
139 * @return the createDate
141 public Date getCreateDate() {
148 * @param createDate the createDate to set
150 public void setCreateDate(Date createDate) {
151 this.createDate = createDate;
156 * @return the maintDate
158 public Date getMaintDate() {
165 * @param maintDate the maintDate to set
167 public void setMaintDate(Date maintDate) {
168 this.maintDate = maintDate;
176 public String getMenuId() {
183 * @param menuId the menuId to set
185 public void setMenuId(String menuId) {
186 this.menuId = menuId;
192 * @return the menuApproved_YN
194 public String getMenuApproved_YN() {
195 return menuApproved_YN;
201 * @param menuApproved_YN the menuApproved_YN to set
203 public void setMenuApproved_YN(String menuApproved_YN) {
204 this.menuApproved_YN = menuApproved_YN;
211 * @return the folderId
213 public Long getFolderId() {
220 * @param folderId the folderId to set
222 public void setFolderId(Long folderId) {
223 this.folderId = folderId;
229 * @return the dashboard_type_YN
231 public String getDashboard_type_YN() {
232 return dashboard_type_YN;
238 * @param dashboard_type_YN the dashboard_type_YN to set
240 public void setDashboard_type_YN(String dashboard_type_YN) {
241 this.dashboard_type_YN = dashboard_type_YN;
247 * @return the dashboard_yn
249 public String getDashboard_yn() {
256 * @param dashboard_yn the dashboard_yn to set
258 public void setDashboard_yn(String dashboard_yn) {
259 this.dashboard_yn = dashboard_yn;
265 * @return the ownerId
267 public User getOwnerId() {
274 * @param ownerId the ownerId to set
276 public void setOwnerId(User ownerId) {
277 this.ownerId = ownerId;
283 * @return the createId
285 public User getCreateId() {
292 * @param createId the createId to set
294 public void setCreateId(User createId) {
295 this.createId = createId;
301 * @return the maintId
303 public User getMaintId() {
310 * @param maintId the maintId to set
312 public void setMaintId(User maintId) {
313 this.maintId = maintId;
318 public int compareTo(Object obj){
319 String c1 = getTitle();
320 String c2 = ((CR_Report)obj).getTitle();
322 return (c1 == null || c2 == null) ? 1 : c1.compareTo(c2);