nexus site path corrected
[portal.git] / ecomp-portal-BE / src / main / java / org / openecomp / portalapp / portal / transport / CommonWidget.java
1 /*-
2  * ================================================================================
3  * eCOMP Portal
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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  * ================================================================================
19  */
20 package org.openecomp.portalapp.portal.transport;
21
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;
28
29 import org.openecomp.portalsdk.core.domain.support.DomainVo;
30
31 import com.fasterxml.jackson.annotation.JsonInclude;
32
33 /**
34  * This is to handle portal admins
35  * @author aw3218
36  */
37 @Entity 
38 @Table(name="fn_common_widget_data")
39 @JsonInclude(JsonInclude.Include.NON_NULL)
40 public class CommonWidget extends DomainVo{
41
42         private static final long serialVersionUID = 7897021982887364557L;
43         
44         @Id
45         @GeneratedValue(strategy=GenerationType.AUTO)
46         @Column(name = "id")
47         private Long id;
48
49         @Column(name = "category")
50         public String category;
51         
52         @Column(name = "href")
53         public String href;
54
55         @Column(name = "title")
56         public String title;
57         
58         @Column(name = "content")
59         public String content;
60
61         @Column(name = "event_date")
62         public String eventDate;
63         
64         @Column(name = "sort_order")
65         public Integer sortOrder;
66
67         
68         public CommonWidget(){
69                 
70         }
71         
72         public CommonWidget(String category, String href, String title, String content, String eventDate, Integer sortOrder){
73                 this.category = category;
74                 this.href = href;
75                 this.title = title;
76                 this.content = content;
77                 this.eventDate = eventDate;
78                 this.sortOrder = sortOrder;
79         }
80
81         public String getCategory() {
82                 return category;
83         }
84
85         public void setCategory(String category) {
86                 this.category = category;
87         }
88
89         public String getHref() {
90                 return href;
91         }
92
93         public void setHref(String href) {
94                 this.href = href;
95         }
96
97         public String getTitle() {
98                 return title;
99         }
100
101         public void setTitle(String title) {
102                 this.title = title;
103         }
104
105         public Integer getSortOrder() {
106                 return sortOrder;
107         }
108
109         public void setSortOrder(Integer sortOrder) {
110                 this.sortOrder = sortOrder;
111         }
112
113         public static long getSerialversionuid() {
114                 return serialVersionUID;
115         }
116
117         public Long getId() {
118                 return id;
119         }
120
121         public void setId(Long id) {            
122                 this.id = id;
123         }
124
125         public String getContent() {
126                 return content;
127         }
128
129         public void setContent(String content) {
130                 this.content = content;
131         }
132
133         public String getEventDate() {
134                 return eventDate;
135         }
136
137         public void setEventDate(String eventDate) {
138                 this.eventDate = eventDate;
139         }       
140 }