2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 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.model.catalog;
23 import com.google.common.collect.ImmutableList;
24 import org.openecomp.sdc.be.datatypes.enums.ComponentTypeEnum;
26 import java.util.ArrayList;
27 import java.util.Collections;
28 import java.util.List;
30 import static java.util.Objects.requireNonNull;
32 public class CatalogComponent {
34 private String version;
35 private ComponentTypeEnum componentType;
37 private String uniqueId;
38 private String lifecycleState;
39 private long lastUpdateDate;
41 private String resourceType;
42 private String categoryNormalizedName;
43 private String subCategoryNormalizedName;
44 private String distributionStatus;
45 private List<String> tags;
47 public String getCategoryNormalizedName() {
48 return categoryNormalizedName;
51 public void setCategoryNormalizedName(String categoryNormalizedName) {
52 this.categoryNormalizedName = categoryNormalizedName;
55 public String getSubCategoryNormalizedName() {
56 return subCategoryNormalizedName;
59 public void setSubCategoryNormalizedName(String subCategoryNormalizedName) {
60 this.subCategoryNormalizedName = subCategoryNormalizedName;
63 public String getResourceType() {
67 public void setResourceType(String resourceType) {
68 this.resourceType = resourceType;
71 public String getName() {
75 public void setName(String name) {
79 public long getLastUpdateDate() {
80 return lastUpdateDate;
83 public void setLastUpdateDate(long lastUpdateDate) {
84 this.lastUpdateDate = lastUpdateDate;
87 public void setVersion(String version) {
88 this.version = version;
91 public void setComponentType(ComponentTypeEnum componentType) {
92 this.componentType = componentType;
95 public void setIcon(String icon) {
99 public void setUniqueId(String uniqueId) {
100 this.uniqueId = uniqueId;
103 public String getVersion() {
107 public ComponentTypeEnum getComponentType() {
108 return componentType;
111 public String getIcon() {
115 public String getUniqueId() {
119 public String getLifecycleState() {
120 return lifecycleState;
123 public void setLifecycleState(String lifecycleState) {
124 this.lifecycleState = lifecycleState;
127 public String getDistributionStatus() {
128 return distributionStatus;
131 public void setDistributionStatus(String distributionStatus) {
132 this.distributionStatus = distributionStatus;
135 public List<String> getTags() {
136 return tags == null ? Collections.emptyList() : ImmutableList.copyOf(tags);
139 public void setTags(List<String> tags) {
140 requireNonNull(tags);
141 this.tags = new ArrayList<>(tags);