Sync Integ to Master
[sdc.git] / common-be / src / main / java / org / openecomp / sdc / be / datatypes / elements / GroupTypeDataDefinition.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.datatypes.elements;
22
23 import org.openecomp.sdc.be.datatypes.tosca.ToscaDataDefinition;
24
25 import java.io.Serializable;
26 import java.util.List;
27 import java.util.Map;
28
29 public class GroupTypeDataDefinition extends ToscaDataDefinition implements Serializable {
30
31         /**
32          * 
33          */
34         private static final long serialVersionUID = -7001817818907172496L;
35
36         private String uniqueId;
37
38         private String type;
39
40         private String version;
41
42         private String derivedFrom;
43
44         private List<String> members;
45
46         private Map<String, String> metadata;
47
48         private String description;
49
50         /**
51          * Timestamp of data type creation
52          */
53         private Long creationTime;
54
55         /**
56          * Timestamp of the data type last update
57          */
58         private Long modificationTime;
59
60         private boolean highestVersion;
61
62         public GroupTypeDataDefinition() {
63
64         }
65
66         public GroupTypeDataDefinition(GroupTypeDataDefinition p) {
67                 this.uniqueId = p.uniqueId;
68                 this.type = p.type;
69                 this.version = p.version;
70                 this.members = p.members;
71                 this.metadata = p.metadata;
72                 // this.derivedFromName = p.derivedFromName;
73                 this.description = p.description;
74                 this.creationTime = p.creationTime;
75                 this.modificationTime = p.modificationTime;
76         }
77
78         public String getType() {
79                 return type;
80         }
81
82         public void setType(String type) {
83                 this.type = type;
84         }
85
86         public String getVersion() {
87                 return version;
88         }
89
90         public void setVersion(String version) {
91                 this.version = version;
92         }
93
94         public List<String> getMembers() {
95                 return members;
96         }
97
98         public void setMembers(List<String> members) {
99                 this.members = members;
100         }
101
102         public Map<String, String> getMetadata() {
103                 return metadata;
104         }
105
106         public void setMetadata(Map<String, String> metadata) {
107                 this.metadata = metadata;
108         }
109
110         public String getDescription() {
111                 return description;
112         }
113
114         public void setDescription(String description) {
115                 this.description = description;
116         }
117
118         public String getUniqueId() {
119                 return uniqueId;
120         }
121
122         public void setUniqueId(String uniqueId) {
123                 this.uniqueId = uniqueId;
124         }
125
126         public Long getCreationTime() {
127                 return creationTime;
128         }
129
130         public void setCreationTime(Long creationTime) {
131                 this.creationTime = creationTime;
132         }
133
134         public Long getModificationTime() {
135                 return modificationTime;
136         }
137
138         public void setModificationTime(Long modificationTime) {
139                 this.modificationTime = modificationTime;
140         }
141
142         @Override
143         public String toString() {
144                 return "GroupTypeDataDefinition [uniqueId=" + uniqueId + ", type=" + type + ", version=" + version
145                                 + ", members=" + members + ", metadata=" + metadata + ", description=" + description + ", creationTime="
146                                 + creationTime + ", modificationTime=" + modificationTime + "]";
147         }
148
149         public String getDerivedFrom() {
150                 return derivedFrom;
151         }
152
153         public void setDerivedFrom(String derivedFrom) {
154                 this.derivedFrom = derivedFrom;
155         }
156
157         public boolean isHighestVersion() {
158                 return highestVersion;
159         }
160
161         public void setHighestVersion(boolean isLatestVersion) {
162                 this.highestVersion = isLatestVersion;
163         }
164
165 }