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.datatypes.elements;
23 import java.io.Serializable;
24 import java.util.List;
27 public class PolicyTypeDataDefinition implements Serializable {
32 private static final long serialVersionUID = -3783390539788578388L;
34 private String uniqueId;
38 private String version;
40 private String derivedFrom;
42 private List<String> targets;
44 private Map<String, String> metadata;
46 private String description;
49 * Timestamp of data type creation
51 private Long creationTime;
54 * Timestamp of the data type last update
56 private Long modificationTime;
58 private boolean highestVersion;
60 public PolicyTypeDataDefinition() {
64 public PolicyTypeDataDefinition(PolicyTypeDataDefinition p) {
65 this.uniqueId = p.uniqueId;
67 this.version = p.version;
68 this.targets = p.targets;
69 this.metadata = p.metadata;
70 // this.derivedFromName = p.derivedFromName;
71 this.description = p.description;
72 this.creationTime = p.creationTime;
73 this.modificationTime = p.modificationTime;
76 public String getType() {
80 public void setType(String type) {
84 public String getVersion() {
88 public void setVersion(String version) {
89 this.version = version;
92 public List<String> getTargets() {
96 public void setTargets(List<String> members) {
97 this.targets = members;
100 public Map<String, String> getMetadata() {
104 public void setMetadata(Map<String, String> metadata) {
105 this.metadata = metadata;
108 public String getDescription() {
112 public void setDescription(String description) {
113 this.description = description;
116 public String getUniqueId() {
120 public void setUniqueId(String uniqueId) {
121 this.uniqueId = uniqueId;
124 public Long getCreationTime() {
128 public void setCreationTime(Long creationTime) {
129 this.creationTime = creationTime;
132 public Long getModificationTime() {
133 return modificationTime;
136 public void setModificationTime(Long modificationTime) {
137 this.modificationTime = modificationTime;
141 public String toString() {
142 return "PolicyTypeDataDefinition [uniqueId=" + uniqueId + ", type=" + type + ", version=" + version
143 + ", targets=" + targets + ", metadata=" + metadata + ", description=" + description + ", creationTime="
144 + creationTime + ", modificationTime=" + modificationTime + "]";
147 public String getDerivedFrom() {
151 public void setDerivedFrom(String derivedFrom) {
152 this.derivedFrom = derivedFrom;
155 public boolean isHighestVersion() {
156 return highestVersion;
159 public void setHighestVersion(boolean isLatestVersion) {
160 this.highestVersion = isLatestVersion;