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;
22 import javax.persistence.Column;
23 import javax.persistence.Entity;
24 import javax.persistence.GeneratedValue;
25 import javax.persistence.GenerationType;
26 import javax.persistence.Id;
27 import javax.persistence.Table;
29 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_common_widget_data")
39 @JsonInclude(JsonInclude.Include.NON_NULL)
40 public class CommonWidget extends DomainVo{
42 private static final long serialVersionUID = 7897021982887364557L;
45 @GeneratedValue(strategy=GenerationType.AUTO)
49 @Column(name = "category")
50 public String category;
52 @Column(name = "href")
55 @Column(name = "title")
58 @Column(name = "content")
59 public String content;
61 @Column(name = "event_date")
62 public String eventDate;
64 @Column(name = "sort_order")
65 public Integer sortOrder;
68 public CommonWidget(){
72 public CommonWidget(String category, String href, String title, String content, String eventDate, Integer sortOrder){
73 this.category = category;
76 this.content = content;
77 this.eventDate = eventDate;
78 this.sortOrder = sortOrder;
81 public String getCategory() {
85 public void setCategory(String category) {
86 this.category = category;
89 public String getHref() {
93 public void setHref(String href) {
97 public String getTitle() {
101 public void setTitle(String title) {
105 public Integer getSortOrder() {
109 public void setSortOrder(Integer sortOrder) {
110 this.sortOrder = sortOrder;
113 public static long getSerialversionuid() {
114 return serialVersionUID;
117 public Long getId() {
121 public void setId(Long id) {
125 public String getContent() {
129 public void setContent(String content) {
130 this.content = content;
133 public String getEventDate() {
137 public void setEventDate(String eventDate) {
138 this.eventDate = eventDate;