2 * ================================================================================
\r
4 * ================================================================================
\r
5 * Copyright (C) 2017 AT&T Intellectual Property
\r
6 * ================================================================================
\r
7 * Licensed under the Apache License, Version 2.0 (the "License");
\r
8 * you may not use this file except in compliance with the License.
\r
9 * You may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * Unless required by applicable law or agreed to in writing, software
\r
14 * distributed under the License is distributed on an "AS IS" BASIS,
\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 * See the License for the specific language governing permissions and
\r
17 * limitations under the License.
\r
18 * ================================================================================
\r
20 package org.openecomp.portalapp.portal.transport;
\r
22 import javax.persistence.Column;
\r
23 import javax.persistence.Entity;
\r
24 import javax.persistence.GeneratedValue;
\r
25 import javax.persistence.GenerationType;
\r
26 import javax.persistence.Id;
\r
27 import javax.persistence.Table;
\r
29 import org.openecomp.portalsdk.core.domain.support.DomainVo;
\r
30 import com.fasterxml.jackson.annotation.JsonInclude;
\r
33 * This is to handle portal admins
\r
37 @Table(name="fn_common_widget_data")
\r
38 @JsonInclude(JsonInclude.Include.NON_NULL)
\r
39 public class CommonWidget extends DomainVo{
\r
41 private static final long serialVersionUID = 7897021982887364557L;
\r
44 @GeneratedValue(strategy=GenerationType.AUTO)
\r
45 @Column(name = "id")
\r
48 @Column(name = "category")
\r
49 public String category;
\r
51 @Column(name = "href")
\r
54 @Column(name = "title")
\r
55 public String title;
\r
57 @Column(name = "content")
\r
58 public String content;
\r
60 @Column(name = "event_date")
\r
61 public String eventDate;
\r
63 @Column(name = "sort_order")
\r
64 public Integer sortOrder;
\r
67 public CommonWidget(){
\r
71 public CommonWidget(String category, String href, String title, String content, String eventDate, Integer sortOrder){
\r
72 this.category = category;
\r
75 this.content = content;
\r
76 this.eventDate = eventDate;
\r
77 this.sortOrder = sortOrder;
\r
80 public String getCategory() {
\r
84 public void setCategory(String category) {
\r
85 this.category = category;
\r
88 public String getHref() {
\r
92 public void setHref(String href) {
\r
96 public String getTitle() {
\r
100 public void setTitle(String title) {
\r
101 this.title = title;
\r
104 public Integer getSortOrder() {
\r
108 public void setSortOrder(Integer sortOrder) {
\r
109 this.sortOrder = sortOrder;
\r
112 public static long getSerialversionuid() {
\r
113 return serialVersionUID;
\r
116 public Long getId() {
\r
120 public void setId(Long id) {
\r
124 public String getContent() {
\r
128 public void setContent(String content) {
\r
129 this.content = content;
\r
132 public String getEventDate() {
\r
136 public void setEventDate(String eventDate) {
\r
137 this.eventDate = eventDate;
\r