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.portalapp.portal.transport;
21 /*package org.openecomp.portalapp.portal.transport;
23 import javax.persistence.Column;
24 import javax.persistence.Entity;
25 import javax.persistence.GeneratedValue;
26 import javax.persistence.GenerationType;
27 import javax.persistence.Id;
28 import javax.persistence.Table;
30 import org.openecomp.portalsdk.core.domain.support.DomainVo;
31 import com.fasterxml.jackson.annotation.JsonInclude;
34 * This is to handle portal admins
38 @Table(name="fn_event_widget_data")
39 @JsonInclude(JsonInclude.Include.NON_NULL)
40 public class EventWidget extends DomainVo{
45 private static final long serialVersionUID = -2784849102886421352L;
49 @GeneratedValue(strategy=GenerationType.AUTO)
53 @Column(name = "category")
54 private String category;
56 @Column(name = "title")
59 @Column(name = "href")
62 @Column(name = "content")
63 private String content;
65 @Column(name = "month_val")
68 @Column(name = "day_val")
71 @Column(name = "year_val")
74 @Column(name = "sort_order")
75 private Integer sortOrder;
77 public String getTitle() {
81 public void setTitle(String title) {
85 public String getHref() {
89 public void setHref(String href) {
93 public String getContent() {
97 public void setContent(String content) {
98 this.content = content;
101 public String getMon() {
105 public void setMonth(String mon) {
109 public Integer getDay() {
113 public void setDay(Integer day) {
117 public Integer getYear() {
121 public void setYear(Integer year) {
125 public Integer getSortOrder() {
129 public String getCategory() {
133 public void setCategory(String category) {
134 this.category = category;