added svcapi ui and camunda code
[it/otf.git] / otf-service-api / src / main / java / org / oran / otf / common / model / TestHead.java
diff --git a/otf-service-api/src/main/java/org/oran/otf/common/model/TestHead.java b/otf-service-api/src/main/java/org/oran/otf/common/model/TestHead.java
new file mode 100644 (file)
index 0000000..7f4bcbc
--- /dev/null
@@ -0,0 +1,224 @@
+/*  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.utility.gson.Convert;\r
+import java.io.Serializable;\r
+import java.util.Date;\r
+import java.util.Map;\r
+\r
+import org.bson.types.ObjectId;\r
+import org.springframework.data.annotation.Id;\r
+import org.springframework.data.mongodb.core.index.Indexed;\r
+import org.springframework.data.mongodb.core.mapping.Document;\r
+\r
+@Document(collection = "testHeads")\r
+public class TestHead implements Serializable {\r
+\r
+  private static final long serialVersionUID = 1L;\r
+\r
+  @Id\r
+  private ObjectId _id;\r
+\r
+  @Indexed(unique = true)\r
+  private String testHeadName;\r
+\r
+  private String testHeadDescription;\r
+  private String hostname;\r
+  private String port;\r
+  private String resourcePath;\r
+  private ObjectId creatorId;\r
+  private ObjectId groupId;\r
+  private String authorizationType;\r
+  private String authorizationCredential;\r
+  private Boolean authorizationEnabled;\r
+  private Map<String, Object> vthInputTemplate;\r
+  private Date createdAt;\r
+  private Date updatedAt;\r
+  private ObjectId updatedBy;\r
+  private Boolean isPublic;\r
+  public TestHead() {\r
+  }\r
+\r
+  public TestHead(\r
+          ObjectId _id,\r
+          String testHeadName,\r
+          String testHeadDescription,\r
+          String hostname,\r
+          String port,\r
+          String resourcePath,\r
+          ObjectId creatorId,\r
+          ObjectId groupId,\r
+          String authorizationType,\r
+          String authorizationCredential,\r
+          boolean authorizationEnabled,\r
+          Map<String, Object> vthInputTemplate,\r
+          Date createdAt,\r
+          Date updatedAt,\r
+          ObjectId updatedBy,\r
+          Boolean isPublic) {\r
+    this._id = _id;\r
+    this.testHeadName = testHeadName;\r
+    this.testHeadDescription = testHeadDescription;\r
+    this.hostname = hostname;\r
+    this.port = port;\r
+    this.resourcePath = resourcePath;\r
+    this.creatorId = creatorId;\r
+    this.groupId = groupId;\r
+    this.authorizationType = authorizationType;\r
+    this.authorizationCredential = authorizationCredential;\r
+    this.authorizationEnabled = authorizationEnabled;\r
+    this.vthInputTemplate = vthInputTemplate;\r
+    this.createdAt = createdAt;\r
+    this.updatedAt = updatedAt;\r
+    this.updatedBy = updatedBy;\r
+    this.isPublic = isPublic;\r
+  }\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 getTestHeadName() {\r
+    return testHeadName;\r
+  }\r
+\r
+  public void setTestHeadName(String testHeadName) {\r
+    this.testHeadName = testHeadName;\r
+  }\r
+\r
+  public String getTestHeadDescription() {\r
+    return testHeadDescription;\r
+  }\r
+\r
+  public void setTestHeadDescription(String testHeadDescription) {\r
+    this.testHeadDescription = testHeadDescription;\r
+  }\r
+\r
+  public String getHostname() {\r
+    return hostname;\r
+  }\r
+\r
+  public void setHostname(String hostname) {\r
+    this.hostname = hostname;\r
+  }\r
+\r
+  public String getPort() {\r
+    return port;\r
+  }\r
+\r
+  public void setPort(String port) {\r
+    this.port = port;\r
+  }\r
+\r
+  public String getResourcePath() {\r
+    return resourcePath;\r
+  }\r
+\r
+  public void setResourcePath(String resourcePath) {\r
+    this.resourcePath = resourcePath;\r
+  }\r
+\r
+  public ObjectId getCreatorId() {\r
+    return creatorId;\r
+  }\r
+\r
+  public void setCreatorId(ObjectId creatorId) {\r
+    this.creatorId = creatorId;\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 String getAuthorizationCredential() {\r
+    return authorizationCredential;\r
+  }\r
+\r
+  public String getAuthorizationType() {\r
+    return authorizationType;\r
+  }\r
+\r
+  public void setAuthorizationType(String authorizationType) {\r
+    this.authorizationType = authorizationType;\r
+  }\r
+\r
+  public void setAuthorizationCredential(String authorizationCredential) {\r
+    this.authorizationCredential = authorizationCredential;\r
+  }\r
+\r
+  public Boolean getAuthorizationEnabled() {\r
+    return authorizationEnabled;\r
+  }\r
+\r
+  public void setAuthorizationEnabled(Boolean authorizationEnabled) {\r
+    this.authorizationEnabled = authorizationEnabled;\r
+  }\r
+\r
+  public Map<String, Object> getVthInputTemplate() {\r
+    return vthInputTemplate;\r
+  }\r
+\r
+  public void setVthInputTemplate(Map<String, Object> vthInputTemplate) {\r
+    this.vthInputTemplate = vthInputTemplate;\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 getUpdatedBy() {\r
+    return updatedBy;\r
+  }\r
+\r
+  public void setUpdatedBy(ObjectId updatedBy) {\r
+    this.updatedBy = updatedBy;\r
+  }\r
+\r
+  public Boolean isPublic() {\r
+    return isPublic;\r
+  }\r
+\r
+  public void setPublic(Boolean aPublic) {\r
+    isPublic = aPublic;\r
+  }\r
+\r
+  @Override\r
+  public String toString() {\r
+    return Convert.objectToJson(this);\r
+  }\r
+}\r