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;
30 import com.fasterxml.jackson.annotation.JsonInclude;
33 * This is to handle portal admins
37 @Table(name="fn_common_widget_data")
38 @JsonInclude(JsonInclude.Include.NON_NULL)
39 public class CommonWidget extends DomainVo{
41 private static final long serialVersionUID = 7897021982887364557L;
44 @GeneratedValue(strategy=GenerationType.AUTO)
48 @Column(name = "category")
49 public String category;
51 @Column(name = "href")
54 @Column(name = "title")
57 @Column(name = "content")
58 public String content;
60 @Column(name = "event_date")
61 public String eventDate;
63 @Column(name = "sort_order")
64 public Integer sortOrder;
67 public CommonWidget(){
71 public CommonWidget(String category, String href, String title, String content, String eventDate, Integer sortOrder){
72 this.category = category;
75 this.content = content;
76 this.eventDate = eventDate;
77 this.sortOrder = sortOrder;
80 public String getCategory() {
84 public void setCategory(String category) {
85 this.category = category;
88 public String getHref() {
92 public void setHref(String href) {
96 public String getTitle() {
100 public void setTitle(String title) {
104 public Integer getSortOrder() {
108 public void setSortOrder(Integer sortOrder) {
109 this.sortOrder = sortOrder;
112 public static long getSerialversionuid() {
113 return serialVersionUID;
116 public Long getId() {
120 public void setId(Long id) {
124 public String getContent() {
128 public void setContent(String content) {
129 this.content = content;
132 public String getEventDate() {
136 public void setEventDate(String eventDate) {
137 this.eventDate = eventDate;