1 package org.onap.portalapp.portal.transport;
3 * ============LICENSE_START==========================================
5 * ===================================================================
6 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
7 * ===================================================================
9 * Unless otherwise specified, all software contained herein is licensed
10 * under the Apache License, Version 2.0 (the "License");
11 * you may not use this software except in compliance with the License.
12 * You may obtain a copy of the License at
14 * http://www.apache.org/licenses/LICENSE-2.0
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
22 * Unless otherwise specified, all documentation contained herein is licensed
23 * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
24 * you may not use this documentation except in compliance with the License.
25 * You may obtain a copy of the License at
27 * https://creativecommons.org/licenses/by/4.0/
29 * Unless required by applicable law or agreed to in writing, documentation
30 * distributed under the License is distributed on an "AS IS" BASIS,
31 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32 * See the License for the specific language governing permissions and
33 * limitations under the License.
35 * ============LICENSE_END============================================
39 /*package org.onap.portalapp.portal.transport;
41 import javax.persistence.Column;
42 import javax.persistence.Entity;
43 import javax.persistence.GeneratedValue;
44 import javax.persistence.GenerationType;
45 import javax.persistence.Id;
46 import javax.persistence.Table;
48 import org.onap.portalsdk.core.domain.support.DomainVo;
49 import com.fasterxml.jackson.annotation.JsonInclude;
52 * This is to handle portal admins
55 @Table(name="fn_event_widget_data")
56 @JsonInclude(JsonInclude.Include.NON_NULL)
57 public class EventWidget extends DomainVo{
62 private static final long serialVersionUID = -2784849102886421352L;
66 @GeneratedValue(strategy=GenerationType.AUTO)
70 @Column(name = "category")
71 private String category;
73 @Column(name = "title")
76 @Column(name = "href")
79 @Column(name = "content")
80 private String content;
82 @Column(name = "month_val")
85 @Column(name = "day_val")
88 @Column(name = "year_val")
91 @Column(name = "sort_order")
92 private Integer sortOrder;
94 public String getTitle() {
98 public void setTitle(String title) {
102 public String getHref() {
106 public void setHref(String href) {
110 public String getContent() {
114 public void setContent(String content) {
115 this.content = content;
118 public String getMon() {
122 public void setMonth(String mon) {
126 public Integer getDay() {
130 public void setDay(Integer day) {
134 public Integer getYear() {
138 public void setYear(Integer year) {
142 public Integer getSortOrder() {
146 public String getCategory() {
150 public void setCategory(String category) {
151 this.category = category;