diff options
author | aribeiro <anderson.ribeiro@est.tech> | 2021-10-19 09:11:16 +0100 |
---|---|---|
committer | Andr� Schmid <andre.schmid@est.tech> | 2021-11-02 18:11:49 +0000 |
commit | 2b55a906b7115ff2b156b35a4ff66811157111ee (patch) | |
tree | 2ba977ca1e12eacc3cf300c3d63ed08737abf10b /common-be/src/main/java/org | |
parent | db7e56a11d52e3f89039add0b209eedb9552ac5a (diff) |
Support for adding artifact types
Issue-ID: SDC-3763
Change-Id: Ideb63cbb3eb4e383adebaa11de49e91414a2c9a7
Signed-off-by: aribeiro <anderson.ribeiro@est.tech>
Diffstat (limited to 'common-be/src/main/java/org')
-rw-r--r-- | common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ArtifactTypeDataDefinition.java | 50 | ||||
-rw-r--r-- | common-be/src/main/java/org/openecomp/sdc/be/datatypes/enums/NodeTypeEnum.java | 3 |
2 files changed, 52 insertions, 1 deletions
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ArtifactTypeDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ArtifactTypeDataDefinition.java new file mode 100644 index 0000000000..576c60b0a1 --- /dev/null +++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ArtifactTypeDataDefinition.java @@ -0,0 +1,50 @@ +/* + * ============LICENSE_START======================================================= + * Copyright (C) 2021 Nordix Foundation + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ +package org.openecomp.sdc.be.datatypes.elements; + +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; +import lombok.ToString; +import org.openecomp.sdc.be.datatypes.tosca.ToscaDataDefinition; + +@Getter +@Setter +@NoArgsConstructor +@ToString +public class ArtifactTypeDataDefinition extends ToscaDataDefinition { + + private String name; + private String uniqueId; + private String derivedFrom; + private String description; + private String model; + private Long creationDate; + private Long lastUpdated; + + public ArtifactTypeDataDefinition(ArtifactTypeDataDefinition p) { + this.name = p.name; + this.uniqueId = p.uniqueId; + this.derivedFrom = p.derivedFrom; + this.description = p.description; + this.creationDate = p.creationDate; + this.lastUpdated = p.lastUpdated; + this.model = p.model; + } +} diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/enums/NodeTypeEnum.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/enums/NodeTypeEnum.java index 2a927b8f4a..1711e7f1dc 100644 --- a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/enums/NodeTypeEnum.java +++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/enums/NodeTypeEnum.java @@ -64,7 +64,8 @@ public enum NodeTypeEnum { GroupInstance("groupInstance"), AnnotationType("annotationType"), Component("component"), - Model("model"); + Model("model"), + ArtifactType("artifactType"); // @formatter:on private final String name; |