nexus site path corrected
[portal.git] / ecomp-portal-BE / src / main / java / org / openecomp / portalapp / portal / ecomp / model / AppCatalogItem.java
1 /*-
2  * ================================================================================
3  * eCOMP Portal
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.portalapp.portal.ecomp.model;
21
22
23 import javax.persistence.Entity;
24 import javax.persistence.Id;
25
26 import org.openecomp.portalsdk.core.domain.support.DomainVo;
27 import com.fasterxml.jackson.annotation.JsonInclude;
28
29 /**
30  * This model of an application catalog entry has some EPApp fields plus
31  * additional fields to indicate access(ible) and select(ed) statuses.
32  */
33 @Entity
34 @JsonInclude(JsonInclude.Include.NON_NULL)
35 public class AppCatalogItem extends DomainVo {
36
37         private static final long serialVersionUID = 6619663784935017846L;
38
39         @Id
40         private Long id;
41         private String name;
42         private String imageUrl;
43         private String description;
44         private String notes;
45         private String url;
46         private String alternateUrl;
47         private Boolean restricted;
48         private Boolean open;
49         private Boolean access;
50         private Boolean select;
51         private Boolean pending;
52
53         public Long getId() {
54                 return id;
55         }
56
57         public void setId(Long id) {
58                 this.id = id;
59         }
60
61         public String getName() {
62                 return name;
63         }
64
65         public void setName(String name) {
66                 this.name = name;
67         }
68
69         public String getImageUrl() {
70                 return imageUrl;
71         }
72
73         public void setImageUrl(String imageUrl) {
74                 this.imageUrl = imageUrl;
75         }
76
77         public String getDescription() {
78                 return description;
79         }
80
81         public void setDescription(String description) {
82                 this.description = description;
83         }
84
85         public String getNotes() {
86                 return notes;
87         }
88
89         public void setNotes(String notes) {
90                 this.notes = notes;
91         }
92
93         public String getUrl() {
94                 return url;
95         }
96
97         public void setUrl(String url) {
98                 this.url = url;
99         }
100
101         public String getAlternateUrl() {
102                 return alternateUrl;
103         }
104
105         public void setAlternateUrl(String alternateUrl) {
106                 this.alternateUrl = alternateUrl;
107         }
108
109         public Boolean getRestricted() {
110                 return restricted;
111         }
112
113         public void setRestricted(Boolean restricted) {
114                 this.restricted = restricted;
115         }
116
117         public Boolean getOpen() {
118                 return open;
119         }
120
121         public void setOpen(Boolean open) {
122                 this.open = open;
123         }
124
125         public Boolean getAccess() {
126                 return access;
127         }
128
129         public void setAccess(Boolean access) {
130                 this.access = access;
131         }
132
133         public Boolean getSelect() {
134                 return select;
135         }
136
137         public void setSelect(Boolean select) {
138                 this.select = select;
139         }
140
141         public Boolean getPending() {
142                 return pending;
143         }
144
145         public void setPending(Boolean pending) {
146                 this.pending = pending;
147         }
148
149         public static long getSerialversionuid() {
150                 return serialVersionUID;
151         }
152
153         @Override
154         public String toString() {
155                 return "AppCatalogItem [id=" + id + ", name=" + name + ", access=" + access + ", select=" + select
156                                 + ", pending=" + pending + "]";
157         }
158
159 }