t reCommit 14 for Create Optimized Sched API 39/83239/2
authorJerry Flood <jflood@att.com>
Mon, 25 Mar 2019 16:27:19 +0000 (12:27 -0400)
committerJerry Flood <jflood@att.com>
Tue, 26 Mar 2019 10:48:00 +0000 (06:48 -0400)
Multiple commits required due to commit size limitation.

Change-Id: Iad72f1a8f79d6e7949d6f983106340e02e61706d
Issue-ID: OPTFRA-458
Signed-off-by: Jerry Flood <jflood@att.com>
cmso-service/src/main/java/org/onap/optf/cmso/service/rs/models/CmsoInfo.java [new file with mode: 0644]
cmso-service/src/main/java/org/onap/optf/cmso/service/rs/models/CmsoMessage.java [new file with mode: 0644]
cmso-service/src/main/java/org/onap/optf/cmso/service/rs/models/HealthCheckComponent.java
cmso-service/src/main/java/org/onap/optf/cmso/service/rs/models/HealthCheckMessage.java
cmso-service/src/main/java/org/onap/optf/cmso/service/rs/models/ScheduleMessage.java
cmso-service/src/main/java/org/onap/optf/cmso/service/rs/models/VnfDetailsMessage.java
cmso-service/src/main/java/org/onap/optf/cmso/service/rs/models/v2/ChangeWindow.java

diff --git a/cmso-service/src/main/java/org/onap/optf/cmso/service/rs/models/CmsoInfo.java b/cmso-service/src/main/java/org/onap/optf/cmso/service/rs/models/CmsoInfo.java
new file mode 100644 (file)
index 0000000..e2e4f10
--- /dev/null
@@ -0,0 +1,176 @@
+/*
+ * Copyright © 2017-2018 AT&T Intellectual Property.
+ * Modifications Copyright © 2018 IBM.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *         http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ * Unless otherwise specified, all documentation contained herein is licensed
+ * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+ * you may not use this documentation except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *         https://creativecommons.org/licenses/by/4.0/
+ *
+ * Unless required by applicable law or agreed to in writing, documentation
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+*/
+
+package org.onap.optf.cmso.service.rs.models;
+
+import com.att.eelf.configuration.EELFLogger;
+import com.att.eelf.configuration.EELFManager;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * The persistent class for the approval_types database table.
+ *
+ */
+@ApiModel(value = "Change Management Scheduling Info", description = "Details of schedule being requested")
+public class CmsoInfo implements Serializable {
+    private static EELFLogger log = EELFManager.getInstance().getLogger(CmsoInfo.class);
+
+    private static final long serialVersionUID = 1L;
+
+    @ApiModelProperty(value = "Expected duration (in seconds) of a successful execution of a single VNF change.")
+    private Integer normalDurationInSeconds;
+
+    @ApiModelProperty(
+            value = "Additional duration (in seconds) to be added to support backout of an unsuccessful VNF change.")
+    private Integer additionalDurationInSeconds;
+
+    @ApiModelProperty(value = "Maximum number of VNF changes to schedule concurrently")
+    private Integer concurrencyLimit;
+
+    @ApiModelProperty(
+            value = "Name of schedule optimization policy used by"
+                            + " the change management cmso optimizer to determine available time slot")
+    private String policyId;
+
+    @ApiModelProperty(value = "Lists of the VNFs to be changed and the desired change windows")
+    private List<VnfDetailsMessage> vnfDetails;
+
+    /**
+     * To string.
+     *
+     * @return the string
+     */
+    @Override
+    public String toString() {
+        ObjectMapper mapper = new ObjectMapper();
+        try {
+            return mapper.writeValueAsString(this);
+        } catch (JsonProcessingException e) {
+            log.debug("Error in toString()", e);
+        }
+        return "";
+    }
+
+    /**
+     * Gets the normal duration in seconds.
+     *
+     * @return the normal duration in seconds
+     */
+    public Integer getNormalDurationInSeconds() {
+        return normalDurationInSeconds;
+    }
+
+    /**
+     * Sets the normal duration in seconds.
+     *
+     * @param normalDurationInSeconds the new normal duration in seconds
+     */
+    public void setNormalDurationInSeconds(Integer normalDurationInSeconds) {
+        this.normalDurationInSeconds = normalDurationInSeconds;
+    }
+
+    /**
+     * Gets the additional duration in seconds.
+     *
+     * @return the additional duration in seconds
+     */
+    public Integer getAdditionalDurationInSeconds() {
+        return additionalDurationInSeconds;
+    }
+
+    /**
+     * Sets the additional duration in seconds.
+     *
+     * @param additionalDurationInSeconds the new additional duration in seconds
+     */
+    public void setAdditionalDurationInSeconds(Integer additionalDurationInSeconds) {
+        this.additionalDurationInSeconds = additionalDurationInSeconds;
+    }
+
+    /**
+     * Gets the concurrency limit.
+     *
+     * @return the concurrency limit
+     */
+    public Integer getConcurrencyLimit() {
+        return concurrencyLimit;
+    }
+
+    /**
+     * Sets the concurrency limit.
+     *
+     * @param concurrencyLimit the new concurrency limit
+     */
+    public void setConcurrencyLimit(Integer concurrencyLimit) {
+        this.concurrencyLimit = concurrencyLimit;
+    }
+
+    /**
+     * Gets the policy id.
+     *
+     * @return the policy id
+     */
+    public String getPolicyId() {
+        return policyId;
+    }
+
+    /**
+     * Sets the policy id.
+     *
+     * @param policyId the new policy id
+     */
+    public void setPolicyId(String policyId) {
+        this.policyId = policyId;
+    }
+
+    /**
+     * Gets the vnf details.
+     *
+     * @return the vnf details
+     */
+    public List<VnfDetailsMessage> getVnfDetails() {
+        return vnfDetails;
+    }
+
+    /**
+     * Sets the vnf details.
+     *
+     * @param vnfDetails the new vnf details
+     */
+    public void setVnfDetails(List<VnfDetailsMessage> vnfDetails) {
+        this.vnfDetails = vnfDetails;
+    }
+}
diff --git a/cmso-service/src/main/java/org/onap/optf/cmso/service/rs/models/CmsoMessage.java b/cmso-service/src/main/java/org/onap/optf/cmso/service/rs/models/CmsoMessage.java
new file mode 100644 (file)
index 0000000..e81e212
--- /dev/null
@@ -0,0 +1,73 @@
+/*
+ * Copyright © 2017-2018 AT&T Intellectual Property.
+ * Modifications Copyright © 2018 IBM.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *         http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ * 
+ * Unless otherwise specified, all documentation contained herein is licensed
+ * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+ * you may not use this documentation except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *         https://creativecommons.org/licenses/by/4.0/
+ * 
+ * Unless required by applicable law or agreed to in writing, documentation
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+*/
+
+package org.onap.optf.cmso.service.rs.models;
+
+import com.att.eelf.configuration.EELFLogger;
+import com.att.eelf.configuration.EELFManager;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import io.swagger.annotations.ApiModel;
+import java.io.Serializable;
+import org.onap.optf.cmso.common.LogMessages;
+
+/**
+ * The persistent class for the approval_types database table.
+ * 
+ */
+@ApiModel
+public class CmsoMessage extends ScheduleMessage implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+    private static EELFLogger errors = EELFManager.getInstance().getErrorLogger();
+    private static EELFLogger debug = EELFManager.getInstance().getDebugLogger();
+
+    private CmsoInfo schedulingInfo;
+
+    @Override
+    public CmsoInfo getSchedulingInfo() {
+        // TODO Auto-generated method stub
+        return schedulingInfo;
+    }
+
+    @Override
+    public void setSchedulingInfo(Object info) {
+        ObjectMapper mapper = new ObjectMapper();
+        try {
+            String jsonString = mapper.writeValueAsString(info);
+            schedulingInfo = mapper.readValue(jsonString, CmsoInfo.class);
+        } catch (Exception e) {
+            debug.debug(LogMessages.UNEXPECTED_EXCEPTION, e, e.getMessage());
+            errors.error(LogMessages.UNEXPECTED_EXCEPTION, e, e.getMessage());
+        }
+
+    }
+
+}
index 47d8d57..a9995c2 100644 (file)
@@ -1,27 +1,27 @@
 /*\r
- * Copyright © 2017-2018 AT&T Intellectual Property.\r
- * Modifications Copyright © 2018 IBM.\r
- * \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
+ *\r
  *         http://www.apache.org/licenses/LICENSE-2.0\r
- * \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
+ *\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
+ *\r
  *         https://creativecommons.org/licenses/by/4.0/\r
- * \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
 \r
 package org.onap.optf.cmso.service.rs.models;\r
 \r
-import java.io.Serializable;\r
 import com.att.eelf.configuration.EELFLogger;\r
 import com.att.eelf.configuration.EELFManager;\r
 import com.fasterxml.jackson.core.JsonProcessingException;\r
 import com.fasterxml.jackson.databind.ObjectMapper;\r
 import io.swagger.annotations.ApiModel;\r
+import java.io.Serializable;\r
 \r
+/**\r
+ * The Class HealthCheckComponent.\r
+ */\r
 @ApiModel\r
 public class HealthCheckComponent implements Serializable {\r
     private static final long serialVersionUID = 1L;\r
@@ -48,38 +51,84 @@ public class HealthCheckComponent implements Serializable {
     private String status;\r
     private Boolean healthy = false;\r
 \r
+    /**\r
+     * Gets the healthy.\r
+     *\r
+     * @return the healthy\r
+     */\r
     public Boolean getHealthy() {\r
         return healthy;\r
     }\r
 \r
+    /**\r
+     * Sets the healthy.\r
+     *\r
+     * @param healthy the new healthy\r
+     */\r
     public void setHealthy(Boolean healthy) {\r
         this.healthy = healthy;\r
     }\r
 \r
+    /**\r
+     * Gets the name.\r
+     *\r
+     * @return the name\r
+     */\r
     public String getName() {\r
         return name;\r
     }\r
 \r
+    /**\r
+     * Sets the name.\r
+     *\r
+     * @param name the new name\r
+     */\r
     public void setName(String name) {\r
         this.name = name;\r
     }\r
 \r
+    /**\r
+     * Gets the url.\r
+     *\r
+     * @return the url\r
+     */\r
     public String getUrl() {\r
         return url;\r
     }\r
 \r
+    /**\r
+     * Sets the url.\r
+     *\r
+     * @param url the new url\r
+     */\r
     public void setUrl(String url) {\r
         this.url = url;\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
+     * To string.\r
+     *\r
+     * @return the string\r
+     */\r
+    @Override\r
     public String toString() {\r
         ObjectMapper mapper = new ObjectMapper();\r
         try {\r
index 02cc65f..2108c13 100644 (file)
@@ -1,27 +1,27 @@
 /*\r
- * Copyright © 2017-2018 AT&T Intellectual Property.\r
- * Modifications Copyright © 2018 IBM.\r
- * \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
+ *\r
  *         http://www.apache.org/licenses/LICENSE-2.0\r
- * \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
+ *\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
+ *\r
  *         https://creativecommons.org/licenses/by/4.0/\r
- * \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
 \r
 package org.onap.optf.cmso.service.rs.models;\r
 \r
-import java.io.Serializable;\r
-import java.util.ArrayList;\r
-import java.util.List;\r
 import com.att.eelf.configuration.EELFLogger;\r
 import com.att.eelf.configuration.EELFManager;\r
 import com.fasterxml.jackson.core.JsonProcessingException;\r
 import com.fasterxml.jackson.databind.ObjectMapper;\r
 import io.swagger.annotations.ApiModel;\r
+import java.io.Serializable;\r
+import java.util.ArrayList;\r
+import java.util.List;\r
 \r
+/**\r
+ * The Class HealthCheckMessage.\r
+ */\r
 @ApiModel\r
 public class HealthCheckMessage implements Serializable {\r
     private static final long serialVersionUID = 1L;\r
@@ -52,50 +55,111 @@ public class HealthCheckMessage implements Serializable {
 \r
     private List<HealthCheckComponent> components = new ArrayList<HealthCheckComponent>();\r
 \r
+    /**\r
+     * Gets the healthy.\r
+     *\r
+     * @return the healthy\r
+     */\r
     public Boolean getHealthy() {\r
         return healthy;\r
     }\r
 \r
+    /**\r
+     * Sets the healthy.\r
+     *\r
+     * @param healthy the new healthy\r
+     */\r
     public void setHealthy(Boolean healthy) {\r
         this.healthy = healthy;\r
     }\r
 \r
+    /**\r
+     * Gets the builds the info.\r
+     *\r
+     * @return the builds the info\r
+     */\r
     public String getBuildInfo() {\r
         return buildInfo;\r
     }\r
 \r
+    /**\r
+     * Sets the builds the info.\r
+     *\r
+     * @param buildInfo the new builds the info\r
+     */\r
     public void setBuildInfo(String buildInfo) {\r
         this.buildInfo = buildInfo;\r
     }\r
 \r
+    /**\r
+     * Gets the current time.\r
+     *\r
+     * @return the current time\r
+     */\r
     public String getCurrentTime() {\r
         return currentTime;\r
     }\r
 \r
+    /**\r
+     * Sets the current time.\r
+     *\r
+     * @param currentTime the new current time\r
+     */\r
     public void setCurrentTime(String currentTime) {\r
         this.currentTime = currentTime;\r
     }\r
 \r
+    /**\r
+     * Gets the hostname.\r
+     *\r
+     * @return the hostname\r
+     */\r
     public String getHostname() {\r
         return hostname;\r
     }\r
 \r
+    /**\r
+     * Sets the hostname.\r
+     *\r
+     * @param hostname the new hostname\r
+     */\r
     public void setHostname(String hostname) {\r
         this.hostname = hostname;\r
     }\r
 \r
+    /**\r
+     * Gets the components.\r
+     *\r
+     * @return the components\r
+     */\r
     public List<HealthCheckComponent> getComponents() {\r
         return components;\r
     }\r
 \r
+    /**\r
+     * Sets the components.\r
+     *\r
+     * @param components the new components\r
+     */\r
     public void setComponents(List<HealthCheckComponent> components) {\r
         this.components = components;\r
     }\r
 \r
+    /**\r
+     * Adds the component.\r
+     *\r
+     * @param components the components\r
+     */\r
     public void addComponent(HealthCheckComponent components) {\r
         this.components.add(components);\r
     }\r
 \r
+    /**\r
+     * To string.\r
+     *\r
+     * @return the string\r
+     */\r
+    @Override\r
     public String toString() {\r
         ObjectMapper mapper = new ObjectMapper();\r
         try {\r
index a89e818..6fb422a 100644 (file)
@@ -1,27 +1,27 @@
 /*\r
- * Copyright © 2017-2018 AT&T Intellectual Property.\r
- * Modifications Copyright © 2018 IBM.\r
- * \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
+ *\r
  *         http://www.apache.org/licenses/LICENSE-2.0\r
- * \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
+ *\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
+ *\r
  *         https://creativecommons.org/licenses/by/4.0/\r
- * \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
 \r
 package org.onap.optf.cmso.service.rs.models;\r
 \r
-import java.io.Serializable;\r
-import java.util.List;\r
-import java.util.Map;\r
 import com.att.eelf.configuration.EELFLogger;\r
 import com.att.eelf.configuration.EELFManager;\r
 import com.fasterxml.jackson.core.JsonProcessingException;\r
 import com.fasterxml.jackson.databind.ObjectMapper;\r
 import io.swagger.annotations.ApiModel;\r
 import io.swagger.annotations.ApiModelProperty;\r
+import java.io.Serializable;\r
+import java.util.List;\r
+import java.util.Map;\r
 \r
 /**\r
  * The persistent class for the approval_types database table.\r
- * \r
+ *\r
  */\r
 @ApiModel(value = "Schedule Request", description = "Request to schedule VNF change management workflow(s).")\r
 public abstract class ScheduleMessage implements Serializable {\r
     private static final long serialVersionUID = 1L;\r
     private static EELFLogger log = EELFManager.getInstance().getLogger(ScheduleMessage.class);\r
 \r
+    /**\r
+     * Gets the scheduling info.\r
+     *\r
+     * @return the scheduling info\r
+     */\r
     public abstract Object getSchedulingInfo();\r
 \r
+    /**\r
+     * Sets the scheduling info.\r
+     *\r
+     * @param info the new scheduling info\r
+     */\r
     public abstract void setSchedulingInfo(Object info);\r
 \r
     // public abstract void setSchedulingInfo(Object schedulingInfo);\r
@@ -71,46 +81,102 @@ public abstract class ScheduleMessage implements Serializable {
     @ApiModelProperty(value = "Domain data as name value/pairs. (i.e. CallbackUrl, CallbackData, WorkflowName)")\r
     private List<Map<String, String>> domainData;\r
 \r
+    /**\r
+     * Gets the domain.\r
+     *\r
+     * @return the domain\r
+     */\r
     public String getDomain() {\r
         return domain;\r
     }\r
 \r
+    /**\r
+     * Sets the domain.\r
+     *\r
+     * @param domain the new domain\r
+     */\r
     public void setDomain(String domain) {\r
         this.domain = domain;\r
     }\r
 \r
+    /**\r
+     * Gets the schedule id.\r
+     *\r
+     * @return the schedule id\r
+     */\r
     public String getScheduleId() {\r
         return scheduleId;\r
     }\r
 \r
+    /**\r
+     * Sets the schedule id.\r
+     *\r
+     * @param scheduleId the new schedule id\r
+     */\r
     public void setScheduleId(String scheduleId) {\r
         this.scheduleId = scheduleId;\r
     }\r
 \r
+    /**\r
+     * Gets the schedule name.\r
+     *\r
+     * @return the schedule name\r
+     */\r
     public String getScheduleName() {\r
         return scheduleName;\r
     }\r
 \r
+    /**\r
+     * Sets the schedule name.\r
+     *\r
+     * @param scheduleName the new schedule name\r
+     */\r
     public void setScheduleName(String scheduleName) {\r
         this.scheduleName = scheduleName;\r
     }\r
 \r
+    /**\r
+     * Gets the user id.\r
+     *\r
+     * @return the user id\r
+     */\r
     public String getUserId() {\r
         return userId;\r
     }\r
 \r
+    /**\r
+     * Sets the user id.\r
+     *\r
+     * @param userId the new user id\r
+     */\r
     public void setUserId(String userId) {\r
         this.userId = userId;\r
     }\r
 \r
+    /**\r
+     * Gets the domain data.\r
+     *\r
+     * @return the domain data\r
+     */\r
     public List<Map<String, String>> getDomainData() {\r
         return domainData;\r
     }\r
 \r
+    /**\r
+     * Sets the domain data.\r
+     *\r
+     * @param domainData the domain data\r
+     */\r
     public void setDomainData(List<Map<String, String>> domainData) {\r
         this.domainData = domainData;\r
     }\r
 \r
+    /**\r
+     * To string.\r
+     *\r
+     * @return the string\r
+     */\r
+    @Override\r
     public String toString() {\r
         ObjectMapper mapper = new ObjectMapper();\r
         try {\r
index b1dde5d..4940c98 100644 (file)
@@ -1,27 +1,27 @@
 /*\r
- * Copyright © 2017-2018 AT&T Intellectual Property.\r
- * Modifications Copyright © 2018 IBM.\r
- * \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
+ *\r
  *         http://www.apache.org/licenses/LICENSE-2.0\r
- * \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
+ *\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
+ *\r
  *         https://creativecommons.org/licenses/by/4.0/\r
- * \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
 \r
 package org.onap.optf.cmso.service.rs.models;\r
 \r
-import java.io.Serializable;\r
-import java.util.List;\r
 import com.att.eelf.configuration.EELFLogger;\r
 import com.att.eelf.configuration.EELFManager;\r
 import com.fasterxml.jackson.core.JsonProcessingException;\r
 import com.fasterxml.jackson.databind.ObjectMapper;\r
 import io.swagger.annotations.ApiModel;\r
 import io.swagger.annotations.ApiModelProperty;\r
+import java.io.Serializable;\r
+import java.util.List;\r
 \r
+/**\r
+ * The Class VnfDetailsMessage.\r
+ */\r
 @ApiModel(value = "VNF Details", description = "Details and scheduling criteria for the VNFs to be changed.")\r
 public class VnfDetailsMessage implements Serializable {\r
     private static final long serialVersionUID = 1L;\r
@@ -52,33 +55,70 @@ public class VnfDetailsMessage implements Serializable {
     private List<String> node;\r
 \r
     @ApiModelProperty(\r
-            value = "Lists of desired change windows that the optimizer can select from. (Only 1 change window supported at this time)")\r
+            value = "Lists of desired change windows that the optimize"\r
+                            + "r can select from. (Only 1 change window supported at this time)")\r
     private List<ChangeWindowMessage> changeWindow;\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 node.\r
+     *\r
+     * @return the node\r
+     */\r
     public List<String> getNode() {\r
         return node;\r
     }\r
 \r
+    /**\r
+     * Sets the node.\r
+     *\r
+     * @param node the new node\r
+     */\r
     public void setNode(List<String> node) {\r
         this.node = node;\r
     }\r
 \r
+    /**\r
+     * Gets the change window.\r
+     *\r
+     * @return the change window\r
+     */\r
     public List<ChangeWindowMessage> getChangeWindow() {\r
         return changeWindow;\r
     }\r
 \r
+    /**\r
+     * Sets the change window.\r
+     *\r
+     * @param changeWindow the new change window\r
+     */\r
     public void setChangeWindow(List<ChangeWindowMessage> changeWindow) {\r
         this.changeWindow = changeWindow;\r
     }\r
 \r
+    /**\r
+     * To string.\r
+     *\r
+     * @return the string\r
+     */\r
+    @Override\r
     public String toString() {\r
         ObjectMapper mapper = new ObjectMapper();\r
         try {\r
index 7553c87..5aab6ac 100644 (file)
@@ -1,79 +1,99 @@
 /*
- * Copyright © 2017-2018 AT&T Intellectual Property.
- * Modifications Copyright © 2018 IBM.
- * 
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *         http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
+ * Copyright © 2017-2018 AT&T Intellectual Property. Modifications Copyright © 2018 IBM.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
+ * in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the License
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+ * or implied. See the License for the specific language governing permissions and limitations under
+ * the License.
+ *
+ *
+ * Unless otherwise specified, all documentation contained herein is licensed under the Creative
+ * Commons License, Attribution 4.0 Intl. (the "License"); you may not use this documentation except
+ * in compliance with the License. You may obtain a copy of the License at
+ *
+ * https://creativecommons.org/licenses/by/4.0/
+ *
+ * Unless required by applicable law or agreed to in writing, documentation distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing permissions and
  * limitations under the License.
- * 
- * 
- * Unless otherwise specified, all documentation contained herein is licensed
- * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
- * you may not use this documentation except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *         https://creativecommons.org/licenses/by/4.0/
- * 
- * Unless required by applicable law or agreed to in writing, documentation
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
-*/
+ */
 
 package org.onap.optf.cmso.service.rs.models.v2;
 
-import java.io.Serializable;
-import java.util.Date;
-
-import org.springframework.format.annotation.DateTimeFormat;
-
 import com.att.eelf.configuration.EELFLogger;
 import com.att.eelf.configuration.EELFManager;
 import com.fasterxml.jackson.core.JsonProcessingException;
 import com.fasterxml.jackson.databind.ObjectMapper;
-
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
+import java.io.Serializable;
+import java.util.Date;
+import org.springframework.format.annotation.DateTimeFormat;
 
-@ApiModel(value = "Change Window",
-        description = "Time window for which tickets are to returned")
+/**
+ * The Class ChangeWindow.
+ */
+@ApiModel(value = "Change Window", description = "Time window for which tickets are to returned")
 public class ChangeWindow implements Serializable {
     private static final long serialVersionUID = 1L;
     private static EELFLogger log = EELFManager.getInstance().getLogger(ChangeWindow.class);
 
     @ApiModelProperty(value = "Earliest time for which changes may begin.")
-    @DateTimeFormat(pattern="yyyy-MM-dd'T'hh:mm:ss'Z'")
+    @DateTimeFormat(pattern = "yyyy-MM-dd'T'hh:mm:ss'Z'")
     private Date startTime;
 
     @ApiModelProperty(value = "Latest time by which all changes must be completed.")
-    @DateTimeFormat(pattern="yyyy-MM-dd'T'hh:mm:ss'Z'")
+    @DateTimeFormat(pattern = "yyyy-MM-dd'T'hh:mm:ss'Z'")
     private Date endTime;
 
+    /**
+     * Gets the start time.
+     *
+     * @return the start time
+     */
     public Date getStartTime() {
         return startTime;
     }
 
+    /**
+     * Sets the start time.
+     *
+     * @param startTime the new start time
+     */
     public void setStartTime(Date startTime) {
         this.startTime = startTime;
     }
 
+    /**
+     * Gets the end time.
+     *
+     * @return the end time
+     */
     public Date getEndTime() {
         return endTime;
     }
 
+    /**
+     * Sets the end time.
+     *
+     * @param endTime the new end time
+     */
     public void setEndTime(Date endTime) {
         this.endTime = endTime;
     }
 
+    /**
+     * To string.
+     *
+     * @return the string
+     */
+    @Override
     public String toString() {
         ObjectMapper mapper = new ObjectMapper();
         try {