nexus site path corrected
[portal.git] / ecomp-portal-BE / src / main / java / org / openecomp / portalapp / portal / domain / AppsResponse.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 public class AppsResponse {
23         
24         public AppsResponse(Long id, String name, Boolean restrictedApp, Boolean enabled) {
25                 this.index = id;
26                 this.title = this.value = name;
27                 this.restrictedApp = restrictedApp;
28                 this.enabled = enabled;
29         }
30
31         public Long getIndex() {
32                 return index;
33         }
34
35         public void setIndex(Long index) {
36                 this.index = index;
37         }
38
39         public String getTitle() {
40                 return title;
41         }
42
43         public void setTitle(String title) {
44                 this.title = title;
45         }
46
47         public String getValue() {
48                 return value;
49         }
50
51         public void setValue(String value) {
52                 this.value = value;
53         }
54
55         // Hide the implementation of restricted and normal app from the front end.
56         // The json sent and received will include restrictedApp but not appType.
57         
58         public void setRestrictedApp(Boolean restrictedApp) {
59                 this.restrictedApp = restrictedApp;
60         }
61         
62         public Boolean getEnabled() {
63                 return enabled;
64         }
65         
66         public void setEnabled(Boolean enabled) {
67                 this.enabled = enabled;
68         }
69
70         private Long index;
71         private String title;
72         private String value;
73         public Boolean restrictedApp;
74         public Boolean enabled;
75
76 }