2 * ============LICENSE_START=======================================================
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
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 * ============LICENSE_END=========================================================
21 package org.openecomp.sdc.be.ui.model;
23 import org.openecomp.sdc.be.datatypes.components.ServiceMetadataDataDefinition;
24 import org.openecomp.sdc.be.model.category.CategoryDefinition;
26 import java.util.List;
28 public class UiServiceMetadata extends UiComponentMetadata {
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;
38 public UiServiceMetadata(List<CategoryDefinition> categories, ServiceMetadataDataDefinition metadata) {
39 super(categories, metadata);
40 this.distributionStatus = metadata.getDistributionStatus();
41 this.ecompGeneratedNaming = metadata.isEcompGeneratedNaming();
42 this.namingPolicy = metadata.getNamingPolicy();
43 this.serviceType = metadata.getServiceType();
44 this.serviceRole = metadata.getServiceRole();
45 this.environmentContext = metadata.getEnvironmentContext();
46 this.instantiationType = metadata.getInstantiationType();
49 public String getDistributionStatus() {
50 return distributionStatus;
53 public void setDistributionStatus(String distributionStatus) {
54 this.distributionStatus = distributionStatus;
57 public Boolean getEcompGeneratedNaming() {
58 return ecompGeneratedNaming;
61 public void setEcompGeneratedNaming(Boolean ecompGeneratedNaming) {
62 this.ecompGeneratedNaming = ecompGeneratedNaming;
65 public String getNamingPolicy() {
69 public void setNamingPolicy(String namingPolicy) {
70 this.namingPolicy = namingPolicy;
73 public String getServiceType() {
77 public void setServiceType(String serviceType) {
78 this.serviceType = serviceType;
81 public String getServiceRole() {
85 public void setServiceRole(String serviceRole) {
86 this.serviceRole = serviceRole;
89 public String getInstantiationType() {
90 return instantiationType;
93 public void setInstantiationType(String instantiationType) {
94 this.instantiationType = instantiationType;
97 public String getEnvironmentContext() { return environmentContext; }
99 public void setEnvironmentContext(String environmentContext) { this.environmentContext = environmentContext; }