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;
22 import java.util.Date;
24 import org.openecomp.portalsdk.analytics.system.Globals;
25 import org.openecomp.portalsdk.core.domain.support.DomainVo;;
27 public class RaptorSearch extends DomainVo {
32 private String ownerName;
33 private Date createDate;
34 private String canEdit;
35 private String readOnly;
36 private String schedule;
37 // private Long countRows;
42 public Long getRepId() {
50 public void setRepId(Long repId) {
57 public String getTitle() {
65 public void setTitle(String title) {
72 public String getDescr() {
80 public void setDescr(String descr) {
85 * @return the createDate
87 public Date getCreateDate() {
93 * the createDate to set
95 public void setCreateDate(Date createDate) {
96 this.createDate = createDate;
100 * @return the ownerName
102 public String getOwnerName() {
108 * the ownerName to set
110 public void setOwnerName(String ownerName) {
111 this.ownerName = ownerName;
115 * @return the schedule
117 public String getSchedule() {
123 * the schedule to set
125 public void setSchedule(String schedule) {
126 this.schedule = schedule;
130 * @return the canEdit
132 public String getCanEdit() {
140 public void setCanEdit(String canEdit) {
141 this.canEdit = canEdit;
145 * @return the canDelete
147 public boolean canDelete() {
148 String s = getCanEdit();
149 if (s != null && s.length() > 0 && s.equals("Y")) {
156 * @return the canCopy
158 public boolean canCopy() {
159 String s = getReadOnly();
160 if (returnTrueOrFalse(s)) {
161 return Globals.getCanCopyOnReadOnly() ? true : returnTrueOrFalse(getCanEdit());
167 * @return the readOnly
169 public String getReadOnly() {
175 * the readOnly to set
177 public void setReadOnly(String readOnly) {
178 this.readOnly = readOnly;
181 private boolean returnTrueOrFalse(String s) {
182 if (s != null && s.length() > 0 && s.equals("Y")) {