1 /* Copyright (c) 2019 AT&T Intellectual Property. #
\r
3 # Licensed under the Apache License, Version 2.0 (the "License"); #
\r
4 # you may not use this file except in compliance with the License. #
\r
5 # You may obtain a copy of the License at #
\r
7 # http://www.apache.org/licenses/LICENSE-2.0 #
\r
9 # Unless required by applicable law or agreed to in writing, software #
\r
10 # distributed under the License is distributed on an "AS IS" BASIS, #
\r
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
\r
12 # See the License for the specific language governing permissions and #
\r
13 # limitations under the License. #
\r
14 ##############################################################################*/
\r
17 package org.oran.otf.common.model;
\r
19 import org.oran.otf.common.model.local.BpmnInstance;
\r
20 import org.oran.otf.common.utility.gson.Convert;
\r
21 import java.io.Serializable;
\r
22 import java.util.Date;
\r
23 import java.util.List;
\r
24 import org.bson.types.ObjectId;
\r
25 import org.springframework.data.annotation.Id;
\r
26 import org.springframework.data.mongodb.core.mapping.Document;
\r
28 @Document(collection = "testDefinitions")
\r
29 public class TestDefinition implements Serializable {
\r
31 private static final long serialVersionUID = 1L;
\r
33 @Id private ObjectId _id;
\r
34 private String testName;
\r
35 private String testDescription;
\r
36 private String processDefinitionKey;
\r
37 private List<BpmnInstance> bpmnInstances;
\r
38 private ObjectId groupId;
\r
39 private Date createdAt;
\r
40 private Date updatedAt;
\r
41 private ObjectId createdBy;
\r
42 private ObjectId updatedBy;
\r
43 private boolean disabled;
\r
45 public ObjectId get_id() {
\r
49 public void set_id(ObjectId _id) {
\r
53 public String getTestName() {
\r
57 public void setTestName(String testName) {
\r
58 this.testName = testName;
\r
61 public String getTestDescription() {
\r
62 return testDescription;
\r
65 public void setTestDescription(String testDescription) {
\r
66 this.testDescription = testDescription;
\r
69 public String getProcessDefinitionKey() {
\r
70 return processDefinitionKey;
\r
73 public void setProcessDefinitionKey(String processDefinitionKey) {
\r
74 this.processDefinitionKey = processDefinitionKey;
\r
77 public List<BpmnInstance> getBpmnInstances() {
\r
78 return bpmnInstances;
\r
81 public void setBpmnInstances(List<BpmnInstance> bpmnInstances) {
\r
82 this.bpmnInstances = bpmnInstances;
\r
85 public ObjectId getGroupId() {
\r
89 public void setGroupId(ObjectId groupId) {
\r
90 this.groupId = groupId;
\r
93 public Date getCreatedAt() {
\r
97 public void setCreatedAt(Date createdAt) {
\r
98 this.createdAt = createdAt;
\r
101 public Date getUpdatedAt() {
\r
105 public void setUpdatedAt(Date updatedAt) {
\r
106 this.updatedAt = updatedAt;
\r
109 public ObjectId getCreatedBy() {
\r
113 public void setCreatedBy(ObjectId createdBy) {
\r
114 this.createdBy = createdBy;
\r
117 public ObjectId getUpdatedBy() {
\r
121 public void setUpdatedBy(ObjectId updatedBy) {
\r
122 this.updatedBy = updatedBy;
\r
125 public boolean isDisabled() {
\r
129 public void setDisabled(boolean disabled) {
\r
130 this.disabled = disabled;
\r
134 public String toString() {
\r
135 return Convert.objectToJson(this);
\r