Commit 5 for Create Optimized Sched API 25/83225/1
authorJerry Flood <jflood@att.com>
Mon, 25 Mar 2019 16:23:19 +0000 (12:23 -0400)
committerJerry Flood <jflood@att.com>
Mon, 25 Mar 2019 16:43:50 +0000 (12:43 -0400)
Multiple commits required due to commit size limitation.

Change-Id: Id13a2559b296b6d83585dde9f442f15feddcaebb
Issue-ID: OPTFRA-458
Signed-off-by: Jerry Flood <jflood@att.com>
cmso-service/src/main/java/org/onap/optf/cmso/model/ChangeManagementDetail.java

index 4f0e804..304eb03 100644 (file)
@@ -1,52 +1,46 @@
 /*\r
- * Copyright © 2017-2018 AT&T Intellectual Property.\r
- * Modifications Copyright © 2018 IBM.\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
+ * Copyright © 2017-2018 AT&T Intellectual Property. Modifications Copyright © 2018 IBM.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except\r
+ * in compliance with the License. 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 distributed under the License\r
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\r
+ * or implied. See the License for the specific language governing permissions and limitations under\r
+ * the License.\r
+ *\r
+ *\r
+ * Unless otherwise specified, all documentation contained herein is licensed under the Creative\r
+ * Commons License, Attribution 4.0 Intl. (the "License"); you may not use this documentation except\r
+ * in compliance with the License. You may obtain a copy of the License at\r
+ *\r
+ * https://creativecommons.org/licenses/by/4.0/\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, documentation distributed under the\r
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either\r
+ * express or implied. See the License for the specific language governing permissions and\r
  * limitations under the License.\r
- * \r
- * \r
- * Unless otherwise specified, all documentation contained herein is licensed\r
- * under the Creative Commons License, Attribution 4.0 Intl. (the "License");\r
- * you may not use this documentation except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- * \r
- *         https://creativecommons.org/licenses/by/4.0/\r
- * \r
- * Unless required by applicable law or agreed to in writing, documentation\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.onap.optf.cmso.model;\r
 \r
+import com.fasterxml.jackson.annotation.JsonIgnore;\r
+import com.fasterxml.jackson.annotation.JsonProperty;\r
+import io.swagger.annotations.ApiModel;\r
+import io.swagger.annotations.ApiModelProperty;\r
 import java.util.UUID;\r
-\r
 import javax.persistence.Column;\r
 import javax.persistence.Entity;\r
 import javax.persistence.Id;\r
 import javax.persistence.Lob;\r
 import javax.persistence.Transient;\r
-\r
 import org.joda.time.format.ISODateTimeFormat;\r
 \r
-import com.fasterxml.jackson.annotation.JsonIgnore;\r
-import com.fasterxml.jackson.annotation.JsonProperty;\r
-\r
-import io.swagger.annotations.ApiModel;\r
-import io.swagger.annotations.ApiModelProperty;\r
-\r
+/**\r
+ * The Class ChangeManagementDetail.\r
+ */\r
 @Entity\r
 \r
 // @NamedNativeQueries({\r
@@ -58,7 +52,7 @@ import io.swagger.annotations.ApiModelProperty;
 // ),\r
 // })\r
 @ApiModel(value = "Change Management Details",\r
-        description = "VNF information  returned for Change Management Schedule Search request")\r
+                description = "VNF information  returned for Change Management Schedule Search request")\r
 public class ChangeManagementDetail {\r
     @Id\r
     @JsonIgnore\r
@@ -93,7 +87,9 @@ public class ChangeManagementDetail {
     private Long startTimeMillis;\r
 \r
     @ApiModelProperty(\r
-            value = "Start time of this VNF workflow assigned by Scheduler based upon the group start time returned by the optimizer and concurrency.")\r
+                    value = "Start time of this VNF workflow"\r
+                                    + " assigned by Scheduler based upon the"\r
+                                    + " group start time returned by the optimizer and concurrency.")\r
     @JsonProperty\r
     @Transient\r
     private String startTime;\r
@@ -173,216 +169,479 @@ public class ChangeManagementDetail {
     @Column(name = "schedules_uuid")\r
     private UUID schedulesUuid;\r
 \r
+    /**\r
+     * Gets the vnf name.\r
+     *\r
+     * @return the vnf name\r
+     */\r
     public String getVnfName() {\r
         return vnfName;\r
     }\r
 \r
+    /**\r
+     * Sets the vnf name.\r
+     *\r
+     * @param vnfName the new vnf name\r
+     */\r
     public void setVnfName(String vnfName) {\r
         this.vnfName = vnfName;\r
     }\r
 \r
+    /**\r
+     * Gets the vnf id.\r
+     *\r
+     * @return the vnf id\r
+     */\r
     public String getVnfId() {\r
         return vnfId;\r
     }\r
 \r
+    /**\r
+     * Sets the vnf id.\r
+     *\r
+     * @param vnfId the new vnf id\r
+     */\r
     public void setVnfId(String vnfId) {\r
         this.vnfId = vnfId;\r
     }\r
 \r
+    /**\r
+     * Gets the status.\r
+     *\r
+     * @return the status\r
+     */\r
     public String getStatus() {\r
         return status;\r
     }\r
 \r
+    /**\r
+     * Sets the status.\r
+     *\r
+     * @param status the new status\r
+     */\r
     public void setStatus(String status) {\r
         this.status = status;\r
     }\r
 \r
+    /**\r
+     * Gets the tm change id.\r
+     *\r
+     * @return the tm change id\r
+     */\r
     public String getTmChangeId() {\r
         return tmChangeId;\r
     }\r
 \r
+    /**\r
+     * Sets the tm change id.\r
+     *\r
+     * @param tmChangeId the new tm change id\r
+     */\r
     public void setTmChangeId(String tmChangeId) {\r
         this.tmChangeId = tmChangeId;\r
     }\r
 \r
+    /**\r
+     * Gets the start time.\r
+     *\r
+     * @return the start time\r
+     */\r
     public String getStartTime() {\r
         if (startTimeMillis != null)\r
             return ISODateTimeFormat.dateTimeNoMillis().print(startTimeMillis);\r
         return null;\r
     }\r
 \r
+    /**\r
+     * Sets the start time.\r
+     *\r
+     * @param startTime the new start time\r
+     */\r
     public void setStartTime(String startTime) {}\r
 \r
+    /**\r
+     * Gets the finish time.\r
+     *\r
+     * @return the finish time\r
+     */\r
     public String getFinishTime() {\r
         if (finishTimeMillis != null)\r
             return ISODateTimeFormat.dateTimeNoMillis().print(finishTimeMillis);\r
         return null;\r
     }\r
 \r
+    /**\r
+     * Sets the finish time.\r
+     *\r
+     * @param finishTime the new finish time\r
+     */\r
     public void setFinishTime(String finishTime) {}\r
 \r
+    /**\r
+     * Gets the group id.\r
+     *\r
+     * @return the group id\r
+     */\r
     public String getGroupId() {\r
         return groupId;\r
     }\r
 \r
+    /**\r
+     * Sets the group id.\r
+     *\r
+     * @param groupId the new group id\r
+     */\r
     public void setGroupId(String groupId) {\r
         this.groupId = groupId;\r
     }\r
 \r
+    /**\r
+     * Gets the last instance start time.\r
+     *\r
+     * @return the last instance start time\r
+     */\r
     public String getLastInstanceStartTime() {\r
-        if (lastInstanceStartTimeMillis != null)\r
+        if (lastInstanceStartTimeMillis != null) {\r
             return ISODateTimeFormat.dateTimeNoMillis().print(lastInstanceStartTimeMillis);\r
+        }\r
         return null;\r
     }\r
 \r
+    /**\r
+     * Sets the last instance start time.\r
+     *\r
+     * @param lastInstanceStartTime the new last instance start time\r
+     */\r
     public void setLastInstanceStartTime(String lastInstanceStartTime) {}\r
 \r
+    /**\r
+     * Gets the policy id.\r
+     *\r
+     * @return the policy id\r
+     */\r
     public String getPolicyId() {\r
         return policyId;\r
     }\r
 \r
+    /**\r
+     * Sets the policy id.\r
+     *\r
+     * @param policyId the new policy id\r
+     */\r
     public void setPolicyId(String policyId) {\r
         this.policyId = policyId;\r
     }\r
 \r
 \r
+    /**\r
+     * Gets the uuid.\r
+     *\r
+     * @return the uuid\r
+     */\r
     public UUID getUuid() {\r
-               return uuid;\r
-       }\r
-\r
-       public void setUuid(UUID uuid) {\r
-               this.uuid = uuid;\r
-       }\r
+        return uuid;\r
+    }\r
 \r
+    /**\r
+     * Sets the uuid.\r
+     *\r
+     * @param uuid the new uuid\r
+     */\r
+    public void setUuid(UUID uuid) {\r
+        this.uuid = uuid;\r
+    }\r
 \r
 \r
 \r
-       public UUID getSchedulesUuid() {\r
-               return schedulesUuid;\r
-       }\r
+    /**\r
+     * Gets the schedules uuid.\r
+     *\r
+     * @return the schedules uuid\r
+     */\r
+    public UUID getSchedulesUuid() {\r
+        return schedulesUuid;\r
+    }\r
 \r
-       public void setSchedulesUuid(UUID schedulesUuid) {\r
-               this.schedulesUuid = schedulesUuid;\r
-       }\r
+    /**\r
+     * Sets the schedules uuid.\r
+     *\r
+     * @param schedulesUuid the new schedules uuid\r
+     */\r
+    public void setSchedulesUuid(UUID schedulesUuid) {\r
+        this.schedulesUuid = schedulesUuid;\r
+    }\r
 \r
-       public Long getStartTimeMillis() {\r
+    /**\r
+     * Gets the start time millis.\r
+     *\r
+     * @return the start time millis\r
+     */\r
+    public Long getStartTimeMillis() {\r
         return startTimeMillis;\r
     }\r
 \r
+    /**\r
+     * Sets the start time millis.\r
+     *\r
+     * @param startTimeMillis the new start time millis\r
+     */\r
     public void setStartTimeMillis(Long startTimeMillis) {\r
         this.startTimeMillis = startTimeMillis;\r
     }\r
 \r
+    /**\r
+     * Gets the finish time millis.\r
+     *\r
+     * @return the finish time millis\r
+     */\r
     public Long getFinishTimeMillis() {\r
         return finishTimeMillis;\r
     }\r
 \r
+    /**\r
+     * Sets the finish time millis.\r
+     *\r
+     * @param finishTimeMillis the new finish time millis\r
+     */\r
     public void setFinishTimeMillis(Long finishTimeMillis) {\r
         this.finishTimeMillis = finishTimeMillis;\r
     }\r
 \r
+    /**\r
+     * Gets the last instance start time millis.\r
+     *\r
+     * @return the last instance start time millis\r
+     */\r
     public Long getLastInstanceStartTimeMillis() {\r
         return lastInstanceStartTimeMillis;\r
     }\r
 \r
+    /**\r
+     * Sets the last instance start time millis.\r
+     *\r
+     * @param lastInstanceStartTimeMillis the new last instance start time millis\r
+     */\r
     public void setLastInstanceStartTimeMillis(Long lastInstanceStartTimeMillis) {\r
         this.lastInstanceStartTimeMillis = lastInstanceStartTimeMillis;\r
     }\r
 \r
+    /**\r
+     * Gets the tm status.\r
+     *\r
+     * @return the tm status\r
+     */\r
     public String getTmStatus() {\r
         return tmStatus;\r
     }\r
 \r
+    /**\r
+     * Sets the tm status.\r
+     *\r
+     * @param tmStatus the new tm status\r
+     */\r
     public void setTmStatus(String tmStatus) {\r
         this.tmStatus = tmStatus;\r
     }\r
 \r
+    /**\r
+     * Gets the tm approval status.\r
+     *\r
+     * @return the tm approval status\r
+     */\r
     public String getTmApprovalStatus() {\r
         return tmApprovalStatus;\r
     }\r
 \r
+    /**\r
+     * Sets the tm approval status.\r
+     *\r
+     * @param tmApprovalStatus the new tm approval status\r
+     */\r
     public void setTmApprovalStatus(String tmApprovalStatus) {\r
         this.tmApprovalStatus = tmApprovalStatus;\r
     }\r
 \r
+    /**\r
+     * Gets the mso request id.\r
+     *\r
+     * @return the mso request id\r
+     */\r
     public String getMsoRequestId() {\r
         return msoRequestId;\r
     }\r
 \r
+    /**\r
+     * Sets the mso request id.\r
+     *\r
+     * @param msoRequestId the new mso request id\r
+     */\r
     public void setMsoRequestId(String msoRequestId) {\r
         this.msoRequestId = msoRequestId;\r
     }\r
 \r
+    /**\r
+     * Gets the mso status.\r
+     *\r
+     * @return the mso status\r
+     */\r
     public String getMsoStatus() {\r
         return msoStatus;\r
     }\r
 \r
+    /**\r
+     * Sets the mso status.\r
+     *\r
+     * @param msoStatus the new mso status\r
+     */\r
     public void setMsoStatus(String msoStatus) {\r
         this.msoStatus = msoStatus;\r
     }\r
 \r
+    /**\r
+     * Gets the mso message.\r
+     *\r
+     * @return the mso message\r
+     */\r
     public String getMsoMessage() {\r
         return msoMessage;\r
     }\r
 \r
+    /**\r
+     * Sets the mso message.\r
+     *\r
+     * @param msoMessage the new mso message\r
+     */\r
     public void setMsoMessage(String msoMessage) {\r
         this.msoMessage = msoMessage;\r
     }\r
 \r
+    /**\r
+     * Gets the dispatch time millis.\r
+     *\r
+     * @return the dispatch time millis\r
+     */\r
     public Long getDispatchTimeMillis() {\r
         return dispatchTimeMillis;\r
     }\r
 \r
+    /**\r
+     * Sets the dispatch time millis.\r
+     *\r
+     * @param dispatchTimeMillis the new dispatch time millis\r
+     */\r
     public void setDispatchTimeMillis(Long dispatchTimeMillis) {\r
         this.dispatchTimeMillis = dispatchTimeMillis;\r
     }\r
 \r
+    /**\r
+     * Gets the dispatch time.\r
+     *\r
+     * @return the dispatch time\r
+     */\r
     public String getDispatchTime() {\r
-        if (dispatchTimeMillis != null)\r
+        if (dispatchTimeMillis != null) {\r
             return ISODateTimeFormat.dateTimeNoMillis().print(dispatchTimeMillis);\r
+        }\r
         return null;\r
     }\r
 \r
+    /**\r
+     * Sets the dispatch time.\r
+     *\r
+     * @param dispatchTime the new dispatch time\r
+     */\r
     public void setDispatchTime(String dispatchTime) {}\r
 \r
+    /**\r
+     * Gets the execution completed time millis.\r
+     *\r
+     * @return the execution completed time millis\r
+     */\r
     public Long getExecutionCompletedTimeMillis() {\r
         return executionCompletedTimeMillis;\r
     }\r
 \r
+    /**\r
+     * Sets the execution completed time millis.\r
+     *\r
+     * @param executionCompletedTimeMillis the new execution completed time millis\r
+     */\r
     public void setExecutionCompletedTimeMillis(Long executionCompletedTimeMillis) {\r
         this.executionCompletedTimeMillis = executionCompletedTimeMillis;\r
     }\r
 \r
+    /**\r
+     * Gets the execution completed time.\r
+     *\r
+     * @return the execution completed time\r
+     */\r
     public String getExecutionCompletedTime() {\r
-        if (executionCompletedTimeMillis != null)\r
+        if (executionCompletedTimeMillis != null) {\r
             return ISODateTimeFormat.dateTimeNoMillis().print(executionCompletedTimeMillis);\r
+        }\r
         return null;\r
     }\r
 \r
+    /**\r
+     * Sets the execution completed time.\r
+     *\r
+     * @param executionCompletedTime the new execution completed time\r
+     */\r
     public void setExecutionCompletedTime(String executionCompletedTime) {}\r
 \r
+    /**\r
+     * Gets the status message.\r
+     *\r
+     * @return the status message\r
+     */\r
     public String getStatusMessage() {\r
         return statusMessage;\r
     }\r
 \r
+    /**\r
+     * Sets the status message.\r
+     *\r
+     * @param statusMessage the new status message\r
+     */\r
     public void setStatusMessage(String statusMessage) {\r
         this.statusMessage = statusMessage;\r
     }\r
 \r
+    /**\r
+     * Gets the mso time millis.\r
+     *\r
+     * @return the mso time millis\r
+     */\r
     public Long getMsoTimeMillis() {\r
         return msoTimeMillis;\r
     }\r
 \r
+    /**\r
+     * Sets the mso time millis.\r
+     *\r
+     * @param msoTimeMillis the new mso time millis\r
+     */\r
     public void setMsoTimeMillis(Long msoTimeMillis) {\r
         this.msoTimeMillis = msoTimeMillis;\r
     }\r
 \r
+    /**\r
+     * Gets the mso time.\r
+     *\r
+     * @return the mso time\r
+     */\r
     public String getMsoTime() {\r
-        if (msoTimeMillis != null)\r
+        if (msoTimeMillis != null) {\r
             return ISODateTimeFormat.dateTimeNoMillis().print(msoTimeMillis);\r
+        }\r
         return null;\r
     }\r
 \r
+    /**\r
+     * Sets the mso time.\r
+     *\r
+     * @param msoTime the new mso time\r
+     */\r
     public void setMsoTime(String msoTime) {}\r
 \r
 }\r