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 public class OnboardingApp {
28 public String imageUrl;
30 public String description;
36 public String alternateUrl;
38 public String restUrl;
40 public Boolean isOpen;
42 public Boolean isEnabled;
44 public String username;
46 public String appPassword;
48 public String thumbnail;
50 public String uebTopicName;
54 public String uebSecret;
56 public Boolean restrictedApp;
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();
64 public void setUebTopicName(String topicName) {
65 this.uebTopicName = topicName;
68 public void setUebKey(String key) {
72 public void setUebSecret(String secret) {
73 this.uebSecret = secret;
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.
79 public void setRestrictedApp(Boolean restrictedApp) {
80 this.restrictedApp = restrictedApp;