diff --git a/api/src/com/cloud/storage/snapshot/SnapshotService.java b/api/src/com/cloud/storage/snapshot/SnapshotService.java index 967c2ccfd5d..0c024211469 100644 --- a/api/src/com/cloud/storage/snapshot/SnapshotService.java +++ b/api/src/com/cloud/storage/snapshot/SnapshotService.java @@ -18,11 +18,11 @@ package com.cloud.storage.snapshot; import java.util.List; -import com.cloud.api.commands.CreateSnapshotPolicyCmd; -import com.cloud.api.commands.DeleteSnapshotPoliciesCmd; +import org.apache.cloudstack.api.user.snapshot.command.CreateSnapshotPolicyCmd; +import org.apache.cloudstack.api.user.snapshot.command.DeleteSnapshotPoliciesCmd; import com.cloud.api.commands.ListRecurringSnapshotScheduleCmd; -import com.cloud.api.commands.ListSnapshotPoliciesCmd; -import com.cloud.api.commands.ListSnapshotsCmd; +import org.apache.cloudstack.api.user.snapshot.command.ListSnapshotPoliciesCmd; +import org.apache.cloudstack.api.user.snapshot.command.ListSnapshotsCmd; import com.cloud.exception.PermissionDeniedException; import com.cloud.exception.ResourceAllocationException; import com.cloud.storage.Snapshot; diff --git a/api/src/com/cloud/api/commands/CreateSnapshotCmd.java b/api/src/org/apache/cloudstack/api/user/snapshot/command/CreateSnapshotCmd.java similarity index 99% rename from api/src/com/cloud/api/commands/CreateSnapshotCmd.java rename to api/src/org/apache/cloudstack/api/user/snapshot/command/CreateSnapshotCmd.java index f8bb6f72317..443b53bb607 100755 --- a/api/src/com/cloud/api/commands/CreateSnapshotCmd.java +++ b/api/src/org/apache/cloudstack/api/user/snapshot/command/CreateSnapshotCmd.java @@ -14,7 +14,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. -package com.cloud.api.commands; +package org.apache.cloudstack.api.user.snapshot.command; import org.apache.log4j.Logger; diff --git a/api/src/com/cloud/api/commands/CreateSnapshotPolicyCmd.java b/api/src/org/apache/cloudstack/api/user/snapshot/command/CreateSnapshotPolicyCmd.java similarity index 99% rename from api/src/com/cloud/api/commands/CreateSnapshotPolicyCmd.java rename to api/src/org/apache/cloudstack/api/user/snapshot/command/CreateSnapshotPolicyCmd.java index 09ae81da0c9..b025abe37f9 100644 --- a/api/src/com/cloud/api/commands/CreateSnapshotPolicyCmd.java +++ b/api/src/org/apache/cloudstack/api/user/snapshot/command/CreateSnapshotPolicyCmd.java @@ -14,7 +14,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. -package com.cloud.api.commands; +package org.apache.cloudstack.api.user.snapshot.command; import org.apache.log4j.Logger; diff --git a/api/src/com/cloud/api/commands/DeleteSnapshotCmd.java b/api/src/org/apache/cloudstack/api/user/snapshot/command/DeleteSnapshotCmd.java similarity index 98% rename from api/src/com/cloud/api/commands/DeleteSnapshotCmd.java rename to api/src/org/apache/cloudstack/api/user/snapshot/command/DeleteSnapshotCmd.java index df0fa56b5a7..a9e172911b4 100644 --- a/api/src/com/cloud/api/commands/DeleteSnapshotCmd.java +++ b/api/src/org/apache/cloudstack/api/user/snapshot/command/DeleteSnapshotCmd.java @@ -14,7 +14,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. -package com.cloud.api.commands; +package org.apache.cloudstack.api.user.snapshot.command; import org.apache.log4j.Logger; diff --git a/api/src/com/cloud/api/commands/DeleteSnapshotPoliciesCmd.java b/api/src/org/apache/cloudstack/api/user/snapshot/command/DeleteSnapshotPoliciesCmd.java similarity index 98% rename from api/src/com/cloud/api/commands/DeleteSnapshotPoliciesCmd.java rename to api/src/org/apache/cloudstack/api/user/snapshot/command/DeleteSnapshotPoliciesCmd.java index 96f9de05c48..6e3207603f9 100755 --- a/api/src/com/cloud/api/commands/DeleteSnapshotPoliciesCmd.java +++ b/api/src/org/apache/cloudstack/api/user/snapshot/command/DeleteSnapshotPoliciesCmd.java @@ -14,7 +14,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. -package com.cloud.api.commands; +package org.apache.cloudstack.api.user.snapshot.command; import java.util.List; diff --git a/api/src/com/cloud/api/commands/ListSnapshotPoliciesCmd.java b/api/src/org/apache/cloudstack/api/user/snapshot/command/ListSnapshotPoliciesCmd.java similarity index 98% rename from api/src/com/cloud/api/commands/ListSnapshotPoliciesCmd.java rename to api/src/org/apache/cloudstack/api/user/snapshot/command/ListSnapshotPoliciesCmd.java index 79105bb04df..aea7eda5744 100644 --- a/api/src/com/cloud/api/commands/ListSnapshotPoliciesCmd.java +++ b/api/src/org/apache/cloudstack/api/user/snapshot/command/ListSnapshotPoliciesCmd.java @@ -14,7 +14,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. -package com.cloud.api.commands; +package org.apache.cloudstack.api.user.snapshot.command; import java.util.ArrayList; import java.util.List; diff --git a/api/src/com/cloud/api/commands/ListSnapshotsCmd.java b/api/src/org/apache/cloudstack/api/user/snapshot/command/ListSnapshotsCmd.java similarity index 98% rename from api/src/com/cloud/api/commands/ListSnapshotsCmd.java rename to api/src/org/apache/cloudstack/api/user/snapshot/command/ListSnapshotsCmd.java index 44b192b06c0..22890018808 100644 --- a/api/src/com/cloud/api/commands/ListSnapshotsCmd.java +++ b/api/src/org/apache/cloudstack/api/user/snapshot/command/ListSnapshotsCmd.java @@ -14,7 +14,7 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. -package com.cloud.api.commands; +package org.apache.cloudstack.api.user.snapshot.command; import java.util.ArrayList; import java.util.List; diff --git a/client/tomcatconf/commands.properties.in b/client/tomcatconf/commands.properties.in index 6bff53df320..bd59f0c1621 100755 --- a/client/tomcatconf/commands.properties.in +++ b/client/tomcatconf/commands.properties.in @@ -70,12 +70,12 @@ migrateVirtualMachine=org.apache.cloudstack.api.admin.vm.command.MigrateVMCmd;1 recoverVirtualMachine=org.apache.cloudstack.api.admin.vm.command.RecoverVMCmd;7 #### snapshot commands -createSnapshot=com.cloud.api.commands.CreateSnapshotCmd;15 -listSnapshots=com.cloud.api.commands.ListSnapshotsCmd;15 -deleteSnapshot=com.cloud.api.commands.DeleteSnapshotCmd;15 -createSnapshotPolicy=com.cloud.api.commands.CreateSnapshotPolicyCmd;15 -deleteSnapshotPolicies=com.cloud.api.commands.DeleteSnapshotPoliciesCmd;15 -listSnapshotPolicies=com.cloud.api.commands.ListSnapshotPoliciesCmd;15 +createSnapshot=org.apache.cloudstack.api.user.snapshot.command.CreateSnapshotCmd;15 +listSnapshots=org.apache.cloudstack.api.user.snapshot.command.ListSnapshotsCmd;15 +deleteSnapshot=org.apache.cloudstack.api.user.snapshot.command.DeleteSnapshotCmd;15 +createSnapshotPolicy=org.apache.cloudstack.api.user.snapshot.command.CreateSnapshotPolicyCmd;15 +deleteSnapshotPolicies=org.apache.cloudstack.api.user.snapshot.command.DeleteSnapshotPoliciesCmd;15 +listSnapshotPolicies=org.apache.cloudstack.api.user.snapshot.command.ListSnapshotPoliciesCmd;15 #### template commands diff --git a/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java b/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java index 32e37e63c0d..d3ca3902813 100755 --- a/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java +++ b/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java @@ -25,6 +25,7 @@ import java.util.TimeZone; import javax.ejb.Local; import javax.naming.ConfigurationException; +import org.apache.cloudstack.api.user.snapshot.command.*; import org.apache.log4j.Logger; import com.cloud.agent.AgentManager; @@ -39,11 +40,9 @@ import com.cloud.agent.api.ManageSnapshotCommand; import com.cloud.agent.api.downloadSnapshotFromSwiftCommand; import com.cloud.agent.api.to.SwiftTO; import com.cloud.alert.AlertManager; -import com.cloud.api.commands.CreateSnapshotPolicyCmd; -import com.cloud.api.commands.DeleteSnapshotPoliciesCmd; +import org.apache.cloudstack.api.user.snapshot.command.DeleteSnapshotPoliciesCmd; import com.cloud.api.commands.ListRecurringSnapshotScheduleCmd; -import com.cloud.api.commands.ListSnapshotPoliciesCmd; -import com.cloud.api.commands.ListSnapshotsCmd; +import org.apache.cloudstack.api.user.snapshot.command.ListSnapshotPoliciesCmd; import com.cloud.configuration.Config; import com.cloud.configuration.Resource.ResourceType; import com.cloud.configuration.dao.ConfigurationDao; diff --git a/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java b/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java index 16de2e1493c..c42e5fbbeef 100644 --- a/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java +++ b/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java @@ -26,12 +26,12 @@ import java.util.TimerTask; import javax.ejb.Local; import javax.naming.ConfigurationException; +import org.apache.cloudstack.api.user.snapshot.command.CreateSnapshotCmd; import org.apache.log4j.Logger; import org.apache.cloudstack.api.ApiConstants; import com.cloud.api.ApiDispatcher; import com.cloud.api.ApiGsonHelper; -import com.cloud.api.commands.CreateSnapshotCmd; import com.cloud.user.Account; import com.cloud.async.AsyncJobManager; import com.cloud.async.AsyncJobResult;