Device Software version management
[oam/tr069-adapter.git] / common / src / main / java / org / commscope / tr069adapter / common / deviceversion / ProfileDefinition.java
diff --git a/common/src/main/java/org/commscope/tr069adapter/common/deviceversion/ProfileDefinition.java b/common/src/main/java/org/commscope/tr069adapter/common/deviceversion/ProfileDefinition.java
new file mode 100644 (file)
index 0000000..ca36382
--- /dev/null
@@ -0,0 +1,103 @@
+/*\r
+ * ============LICENSE_START========================================================================\r
+ * ONAP : tr-069-adapter\r
+ * =================================================================================================\r
+ * Copyright (C) 2020 CommScope Inc Intellectual Property.\r
+ * =================================================================================================\r
+ * This tr-069-adapter software file is distributed by CommScope Inc under the Apache License,\r
+ * Version 2.0 (the "License"); you may not use this file except in compliance with the License. You\r
+ * may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,\r
+ * either express or implied. See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ * ===============LICENSE_END=======================================================================\r
+ */\r
+\r
+package org.commscope.tr069adapter.common.deviceversion;\r
+\r
+import com.fasterxml.jackson.annotation.JsonInclude;\r
+import com.fasterxml.jackson.annotation.JsonProperty;\r
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;\r
+\r
+@JsonInclude(JsonInclude.Include.NON_NULL)\r
+@JsonPropertyOrder({"profile-id", "software-version", "hardware-version", "netconf-schema-dir-path",\r
+    "csdm-mapping-dir-path", "extends-from"})\r
+public class ProfileDefinition {\r
+  @JsonProperty("profile-id")\r
+  private String profileId;\r
+  @JsonProperty("software-version")\r
+  private String softwareVersion;\r
+  @JsonProperty("hardware-version")\r
+  private String hardwareVersion;\r
+  @JsonProperty("netconf-schema-dir-path")\r
+  private String netConfSchemaPath;\r
+  @JsonProperty("csdm-mapping-dir-path")\r
+  private String csdmMappingPath;\r
+  @JsonProperty("extends-from")\r
+  private String parent;\r
+\r
+  public ProfileDefinition() {}\r
+\r
+  public ProfileDefinition(String profileId, String software, String hardware, String schemaPath,\r
+      String mappingFile, String parent) {\r
+    super();\r
+    this.profileId = profileId;\r
+    this.softwareVersion = software;\r
+    this.hardwareVersion = hardware;\r
+    this.netConfSchemaPath = schemaPath;\r
+    this.csdmMappingPath = mappingFile;\r
+    this.parent = parent;\r
+  }\r
+\r
+  public String getProfileId() {\r
+    return profileId;\r
+  }\r
+\r
+  public void setProfileId(String profileId) {\r
+    this.profileId = profileId;\r
+  }\r
+\r
+  public String getSoftwareVersion() {\r
+    return softwareVersion;\r
+  }\r
+\r
+  public void setSoftwareVersion(String softwareVersion) {\r
+    this.softwareVersion = softwareVersion;\r
+  }\r
+\r
+  public String getHardwareVersion() {\r
+    return hardwareVersion;\r
+  }\r
+\r
+  public void setHardwareVersion(String hardwareVersion) {\r
+    this.hardwareVersion = hardwareVersion;\r
+  }\r
+\r
+  public String getNetConfSchemaPath() {\r
+    return netConfSchemaPath;\r
+  }\r
+\r
+  public void setNetConfSchemaPath(String netConfSchemaPath) {\r
+    this.netConfSchemaPath = netConfSchemaPath;\r
+  }\r
+\r
+  public String getCsdmMappingPath() {\r
+    return csdmMappingPath;\r
+  }\r
+\r
+  public void setCsdmMappingPath(String csdmMappingPath) {\r
+    this.csdmMappingPath = csdmMappingPath;\r
+  }\r
+\r
+  public String getParent() {\r
+    return parent;\r
+  }\r
+\r
+  public void setParent(String parent) {\r
+    this.parent = parent;\r
+  }\r
+\r
+}\r