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 imageLink;
32 public String description;
38 public String alternateUrl;
40 public String restUrl;
42 public Boolean isOpen;
44 public Boolean isEnabled;
46 public String username;
48 public String appPassword;
50 public String thumbnail;
52 public String uebTopicName;
56 public String uebSecret;
58 public Boolean restrictedApp;
60 public Boolean isCentralAuth;
62 public String nameSpace;
64 public void normalize() {
65 this.name = (this.name == null) ? "" : this.name.trim();
66 this.username = (this.username == null) ? "" : this.username.trim();
67 this.appPassword = (this.appPassword == null) ? "" : this.appPassword.trim();
70 public void setUebTopicName(String topicName) {
71 this.uebTopicName = topicName;
74 public void setUebKey(String key) {
78 public void setUebSecret(String secret) {
79 this.uebSecret = secret;
82 // Hide the implementation of restricted and normal app from the front end.
83 // The json sent and received will include restrictedApp but not appType.
85 public void setRestrictedApp(Boolean restrictedApp) {
86 this.restrictedApp = restrictedApp;