From d928014a75461d21cd8eeca628150445440e9b08 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Fri, 28 Dec 2012 01:49:43 -0800 Subject: [PATCH] api: Add CopyIsoCmd, boilerplate cmd class for api copyIso Two apis, copyIso and copyTemplate point to the same Cmd class, the commit adds the child class CopyIsoCmd that extends on CopyTemplateCmd. This just serves as the boilerplate class. Every api cmd name maps 1:1 to a cmd class. Signed-off-by: Rohit Yadav --- .../api/command/user/iso/CopyIsoCmd.java | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 api/src/org/apache/cloudstack/api/command/user/iso/CopyIsoCmd.java diff --git a/api/src/org/apache/cloudstack/api/command/user/iso/CopyIsoCmd.java b/api/src/org/apache/cloudstack/api/command/user/iso/CopyIsoCmd.java new file mode 100644 index 00000000000..b449ff59180 --- /dev/null +++ b/api/src/org/apache/cloudstack/api/command/user/iso/CopyIsoCmd.java @@ -0,0 +1,30 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you 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. +package org.apache.cloudstack.api.command.user.iso; + +import org.apache.log4j.Logger; + +import org.apache.cloudstack.api.APICommand; +import org.apache.cloudstack.api.response.TemplateResponse; +import org.apache.cloudstack.api.command.user.template.CopyTemplateCmd; + +@APICommand(name = "copyIso", description="Copies an iso from one zone to another.", responseObject=TemplateResponse.class) +public class CopyIsoCmd extends CopyTemplateCmd { + public static final Logger s_logger = Logger.getLogger(CopyIsoCmd.class.getName()); + private static final String s_name = "copyisoresponse"; +} +