5481a22f6994d2fe3d2fda46b2039aae155d0ec8
[portal.git] / ecomp-portal-BE-common / src / main / java / org / openecomp / portalapp / portal / domain / WidgetCatalog.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.domain;
21
22 import java.io.Serializable;
23 import java.util.Set;
24
25 public class WidgetCatalog implements Serializable{
26
27         private static final long serialVersionUID = 1L;
28
29         private long id;
30         
31         private String name;
32         
33         private String desc;
34         
35         private String fileLocation;
36         
37         private String allowAllUser;
38         
39         private Long serviceId;
40         
41         private String sortOrder;
42
43         private String statusCode;
44         
45         private Set<RoleApp> widgetRoles;
46         
47         public long getId() {
48                 return id;
49         }
50         public void setId(long id) {
51                 this.id = id;
52         }
53         public String getName() {
54                 return name;
55         }
56         public void setName(String name) {
57                 this.name = name;
58         }
59         
60         public Long getServiceId() {
61                 return serviceId;
62         }
63         public void setServiceId(Long serviceId) {
64                 this.serviceId = serviceId;
65         }
66         public String getDesc() {
67                 return desc;
68         }
69         public void setDesc(String desc) {
70                 this.desc = desc;
71         }
72         public String getFileLocation() {
73                 return fileLocation;
74         }
75         public void setFileLocation(String fileLocation) {
76                 this.fileLocation = fileLocation;
77         }
78         
79         public String getAllowAllUser() {
80                 return allowAllUser;
81         }
82         public void setAllowAllUser(String allowAllUser) {
83                 this.allowAllUser = allowAllUser;
84         }
85         public Set<RoleApp> getWidgetRoles() {
86                 return widgetRoles;
87         }
88         public void setWidgetRoles(Set<RoleApp> widgetRoles) {
89                 this.widgetRoles = widgetRoles;
90         }
91         
92         public String getSortOrder() {
93                 return sortOrder;
94         }
95         public void setSortOrder(String sortOrder) {
96                 this.sortOrder = sortOrder;
97         }
98         public String getStatusCode() {
99                 return statusCode;
100         }
101         public void setStatusCode(String statusCode) {
102                 this.statusCode = statusCode;
103         }
104         @Override
105         public String toString() {
106                 return "WidgetCatalog [id=" + id + ", name=" + name + ", desc=" + desc + ", fileLocation=" + fileLocation
107                                 + ", allowAllUser=" + allowAllUser + "]";
108         }
109 }