Catalog alignment
[sdc.git] / catalog-model / src / main / java / org / openecomp / sdc / be / ui / model / UiServiceMetadata.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
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  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.sdc.be.ui.model;
22
23 import org.openecomp.sdc.be.datatypes.components.ServiceMetadataDataDefinition;
24 import org.openecomp.sdc.be.model.category.CategoryDefinition;
25
26 import java.util.List;
27
28 public class UiServiceMetadata extends UiComponentMetadata {
29         
30         private String distributionStatus;
31         private Boolean ecompGeneratedNaming;
32         private String namingPolicy;
33         private String serviceType;
34         private String serviceRole;
35         private String environmentContext;
36         private String instantiationType;
37         private String serviceFunction;
38
39         public UiServiceMetadata(List<CategoryDefinition> categories, ServiceMetadataDataDefinition metadata) {
40                 super(categories, metadata);
41                 this.distributionStatus = metadata.getDistributionStatus();
42                 this.ecompGeneratedNaming = metadata.isEcompGeneratedNaming();
43                 this.namingPolicy = metadata.getNamingPolicy();
44                 this.serviceType = metadata.getServiceType();
45                 this.serviceRole = metadata.getServiceRole();
46                 this.environmentContext = metadata.getEnvironmentContext();
47                 this.instantiationType = metadata.getInstantiationType();
48                 this.serviceFunction = metadata.getServiceFunction();
49         }
50         
51         public String getDistributionStatus() {
52                 return distributionStatus;
53         }
54
55     public void setDistributionStatus(String distributionStatus) {
56         this.distributionStatus = distributionStatus;
57     }
58
59     public Boolean getEcompGeneratedNaming() {
60         return ecompGeneratedNaming;
61     }
62
63     public void setEcompGeneratedNaming(Boolean ecompGeneratedNaming) {
64         this.ecompGeneratedNaming = ecompGeneratedNaming;
65     }
66
67     public String getNamingPolicy() {
68         return namingPolicy;
69     }
70
71     public void setNamingPolicy(String namingPolicy) {
72         this.namingPolicy = namingPolicy;
73     }
74
75     public String getServiceType() {
76         return serviceType;
77     }
78
79     public void setServiceType(String serviceType) {
80         this.serviceType = serviceType;
81     }
82
83     public String getServiceRole() {
84         return serviceRole;
85     }
86
87         public void setServiceRole(String serviceRole) {
88                 this.serviceRole = serviceRole;
89         }
90
91         public String getInstantiationType() {
92                 return instantiationType;
93         }
94
95         public void setInstantiationType(String instantiationType) {
96                 this.instantiationType = instantiationType;
97         }
98
99     public String getEnvironmentContext() { return environmentContext; }
100
101     public void setEnvironmentContext(String environmentContext) { this.environmentContext = environmentContext; }
102
103         public String getServiceFunction() {
104                 return serviceFunction;
105         }
106
107         public void setServiceFunction(String serviceFunction) {
108                 this.serviceFunction = serviceFunction;
109         }
110 }