nexus site path corrected
[portal.git] / ecomp-portal-BE / src / main / java / org / openecomp / portalapp / portal / transport / OnboardingApp.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 public class OnboardingApp {
23
24         public Long id;
25
26         public String name;
27
28         public String imageUrl;
29
30         public String description;
31
32         public String notes;
33
34         public String url;
35
36         public String alternateUrl;
37
38         public String restUrl;
39
40         public Boolean isOpen;
41
42         public Boolean isEnabled;
43
44         public String username;
45
46         public String appPassword;
47
48         public String thumbnail;
49         
50         public String uebTopicName;
51         
52         public String uebKey;
53         
54         public String uebSecret;
55         
56         public Boolean restrictedApp;
57
58         public void normalize() {
59                 this.name = (this.name == null) ? "" : this.name.trim();
60                 this.username = (this.username == null) ? "" : this.username.trim();
61                 this.appPassword = (this.appPassword == null) ? "" : this.appPassword.trim();
62         }
63
64         public void setUebTopicName(String topicName) {
65                 this.uebTopicName = topicName;
66         }
67
68         public void setUebKey(String key) {
69                 this.uebKey = key;
70         }
71         
72         public void setUebSecret(String secret) {
73                 this.uebSecret = secret;
74         }
75         
76         // Hide the implementation of restricted and normal app from the front end.
77         // The json sent and received will include restrictedApp but not appType.
78         
79         public void setRestrictedApp(Boolean restrictedApp) {
80                 this.restrictedApp = restrictedApp;
81         }
82 }
83