You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2012/12/28 10:52:06 UTC

[2/2] git commit: api: Add CopyIsoCmd, boilerplate cmd class for api copyIso

Updated Branches:
  refs/heads/api_refactoring 774cb29b0 -> d928014a7


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 <bh...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/d928014a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/d928014a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/d928014a

Branch: refs/heads/api_refactoring
Commit: d928014a75461d21cd8eeca628150445440e9b08
Parents: 983fe97
Author: Rohit Yadav <bh...@apache.org>
Authored: Fri Dec 28 01:49:43 2012 -0800
Committer: Rohit Yadav <bh...@apache.org>
Committed: Fri Dec 28 01:49:43 2012 -0800

----------------------------------------------------------------------
 .../api/command/user/iso/CopyIsoCmd.java           |   30 +++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/d928014a/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 0000000..b449ff5
--- /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";
+}
+