new action Reboot to the LCM API
[appc.git] / appc-dispatcher / appc-request-handler / appc-request-handler-core / src / main / java / org / onap / appc / requesthandler / conv / Converter.java
index 68352c1..6ec8ea9 100644 (file)
@@ -18,7 +18,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  * 
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
  * ============LICENSE_END=========================================================
  */
 
@@ -177,6 +176,11 @@ public class Converter {
                 ((RebuildOutputBuilder)outObj).setCommonHeader(commonHeader);
                 ((RebuildOutputBuilder)outObj).setStatus(status);
                 return outObj;
+            case Reboot:
+                outObj = new RebootOutputBuilder();
+                ((RebootOutputBuilder)outObj).setCommonHeader(commonHeader);
+                ((RebootOutputBuilder)outObj).setStatus(status);
+                return outObj;
             case Migrate:
                 outObj = new MigrateOutputBuilder();
                 ((MigrateOutputBuilder)outObj).setCommonHeader(commonHeader);
@@ -254,6 +258,16 @@ public class Converter {
                 ((UpgradePreCheckOutputBuilder)outObj).setCommonHeader(commonHeader);
                 ((UpgradePreCheckOutputBuilder)outObj).setStatus(status);
                 return outObj;
+            case AttachVolume:
+                outObj = new AttachVolumeOutputBuilder();
+                ((AttachVolumeOutputBuilder)outObj).setCommonHeader(commonHeader);
+                ((AttachVolumeOutputBuilder)outObj).setStatus(status);
+                return outObj;  
+            case DetachVolume:
+                outObj = new DetachVolumeOutputBuilder();
+                ((DetachVolumeOutputBuilder)outObj).setCommonHeader(commonHeader);
+                ((DetachVolumeOutputBuilder)outObj).setStatus(status);
+                return outObj;
             default:
                 throw new IllegalArgumentException(action+" action is not supported");
         }