added svcapi ui and camunda code
[it/otf.git] / otf-service-api / src / main / java / org / oran / otf / common / model / TestDefinition.java
diff --git a/otf-service-api/src/main/java/org/oran/otf/common/model/TestDefinition.java b/otf-service-api/src/main/java/org/oran/otf/common/model/TestDefinition.java
new file mode 100644 (file)
index 0000000..2a66fa2
--- /dev/null
@@ -0,0 +1,137 @@
+/*  Copyright (c) 2019 AT&T Intellectual Property.                             #\r
+#                                                                              #\r
+#   Licensed under the Apache License, Version 2.0 (the "License");            #\r
+#   you may not use this file except in compliance with the License.           #\r
+#   You may obtain a copy of the License at                                    #\r
+#                                                                              #\r
+#       http://www.apache.org/licenses/LICENSE-2.0                             #\r
+#                                                                              #\r
+#   Unless required by applicable law or agreed to in writing, software        #\r
+#   distributed under the License is distributed on an "AS IS" BASIS,          #\r
+#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #\r
+#   See the License for the specific language governing permissions and        #\r
+#   limitations under the License.                                             #\r
+##############################################################################*/\r
+\r
+\r
+package org.oran.otf.common.model;\r
+\r
+import org.oran.otf.common.model.local.BpmnInstance;\r
+import org.oran.otf.common.utility.gson.Convert;\r
+import java.io.Serializable;\r
+import java.util.Date;\r
+import java.util.List;\r
+import org.bson.types.ObjectId;\r
+import org.springframework.data.annotation.Id;\r
+import org.springframework.data.mongodb.core.mapping.Document;\r
+\r
+@Document(collection = "testDefinitions")\r
+public class TestDefinition implements Serializable {\r
+\r
+  private static final long serialVersionUID = 1L;\r
+\r
+  @Id private ObjectId _id;\r
+  private String testName;\r
+  private String testDescription;\r
+  private String processDefinitionKey;\r
+  private List<BpmnInstance> bpmnInstances;\r
+  private ObjectId groupId;\r
+  private Date createdAt;\r
+  private Date updatedAt;\r
+  private ObjectId createdBy;\r
+  private ObjectId updatedBy;\r
+  private boolean disabled;\r
+\r
+  public ObjectId get_id() {\r
+    return _id;\r
+  }\r
+\r
+  public void set_id(ObjectId _id) {\r
+    this._id = _id;\r
+  }\r
+\r
+  public String getTestName() {\r
+    return testName;\r
+  }\r
+\r
+  public void setTestName(String testName) {\r
+    this.testName = testName;\r
+  }\r
+\r
+  public String getTestDescription() {\r
+    return testDescription;\r
+  }\r
+\r
+  public void setTestDescription(String testDescription) {\r
+    this.testDescription = testDescription;\r
+  }\r
+\r
+  public String getProcessDefinitionKey() {\r
+    return processDefinitionKey;\r
+  }\r
+\r
+  public void setProcessDefinitionKey(String processDefinitionKey) {\r
+    this.processDefinitionKey = processDefinitionKey;\r
+  }\r
+\r
+  public List<BpmnInstance> getBpmnInstances() {\r
+    return bpmnInstances;\r
+  }\r
+\r
+  public void setBpmnInstances(List<BpmnInstance> bpmnInstances) {\r
+    this.bpmnInstances = bpmnInstances;\r
+  }\r
+\r
+  public ObjectId getGroupId() {\r
+    return groupId;\r
+  }\r
+\r
+  public void setGroupId(ObjectId groupId) {\r
+    this.groupId = groupId;\r
+  }\r
+\r
+  public Date getCreatedAt() {\r
+    return createdAt;\r
+  }\r
+\r
+  public void setCreatedAt(Date createdAt) {\r
+    this.createdAt = createdAt;\r
+  }\r
+\r
+  public Date getUpdatedAt() {\r
+    return updatedAt;\r
+  }\r
+\r
+  public void setUpdatedAt(Date updatedAt) {\r
+    this.updatedAt = updatedAt;\r
+  }\r
+\r
+  public ObjectId getCreatedBy() {\r
+    return createdBy;\r
+  }\r
+\r
+  public void setCreatedBy(ObjectId createdBy) {\r
+    this.createdBy = createdBy;\r
+  }\r
+\r
+  public ObjectId getUpdatedBy() {\r
+    return updatedBy;\r
+  }\r
+\r
+  public void setUpdatedBy(ObjectId updatedBy) {\r
+    this.updatedBy = updatedBy;\r
+  }\r
+\r
+  public boolean isDisabled() {\r
+    return disabled;\r
+  }\r
+\r
+  public void setDisabled(boolean disabled) {\r
+    this.disabled = disabled;\r
+  }\r
+\r
+  @Override\r
+  public String toString() {\r
+    return Convert.objectToJson(this);\r
+  }\r
+}\r