[SDC] rebase 1710 code
[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 java.util.List;
24
25 import org.openecomp.sdc.be.datatypes.components.ServiceMetadataDataDefinition;
26 import org.openecomp.sdc.be.model.category.CategoryDefinition;
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
36         public UiServiceMetadata(List<CategoryDefinition> categories, ServiceMetadataDataDefinition metadata) {
37                 super(categories, metadata);
38                 this.distributionStatus = metadata.getDistributionStatus();
39                 this.ecompGeneratedNaming = metadata.isEcompGeneratedNaming();
40                 this.namingPolicy = metadata.getNamingPolicy();
41                 this.serviceType = metadata.getServiceType();
42                 this.serviceRole = metadata.getServiceRole();
43         }       
44         
45         public String getDistributionStatus() {
46                 return distributionStatus;
47         }
48
49         public void setDistributionStatus(String distributionStatus) {
50                 this.distributionStatus = distributionStatus;
51         }
52         
53         public Boolean getEcompGeneratedNaming() {
54                 return ecompGeneratedNaming;
55         }
56
57         public void setEcompGeneratedNaming(Boolean ecompGeneratedNaming) {
58                 this.ecompGeneratedNaming = ecompGeneratedNaming;
59         }
60
61         public String getNamingPolicy() {
62                 return namingPolicy;
63         }
64
65         public void setNamingPolicy(String namingPolicy) {
66                 this.namingPolicy = namingPolicy;
67         }
68         
69         public String getServiceType() {
70                 return serviceType;
71         }
72
73         public void setServiceType(String serviceType) {
74                 this.serviceType = serviceType;
75         }
76         
77         public String getServiceRole() {
78                 return serviceRole;
79         }
80
81         public void setServiceRole(String serviceRole) {
82                 this.serviceRole = serviceRole;
83         }
84
85 }