api_refactor: rename sg to securitygroup

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
Rohit Yadav 2012-12-04 00:25:22 -08:00
parent 1e51d6c1ab
commit 73d1099c76
10 changed files with 19 additions and 24 deletions

View File

@ -18,10 +18,9 @@ package com.cloud.network.security;
import java.util.List;
import org.apache.cloudstack.api.user.sg.command.*;
import org.apache.cloudstack.api.user.sg.command.AuthorizeSecurityGroupIngressCmd;
import org.apache.cloudstack.api.user.sg.command.CreateSecurityGroupCmd;
import org.apache.cloudstack.api.user.sg.command.RevokeSecurityGroupEgressCmd;
import org.apache.cloudstack.api.user.securitygroup.command.*;
import org.apache.cloudstack.api.user.securitygroup.command.AuthorizeSecurityGroupIngressCmd;
import org.apache.cloudstack.api.user.securitygroup.command.CreateSecurityGroupCmd;
import com.cloud.exception.InvalidParameterValueException;
import com.cloud.exception.PermissionDeniedException;
import com.cloud.exception.ResourceInUseException;

View File

@ -14,7 +14,7 @@
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
package org.apache.cloudstack.api.user.sg.command;
package org.apache.cloudstack.api.user.securitygroup.command;
import java.util.Collection;
import java.util.HashMap;

View File

@ -14,7 +14,7 @@
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
package org.apache.cloudstack.api.user.sg.command;
package org.apache.cloudstack.api.user.securitygroup.command;
import java.util.Collection;
import java.util.HashMap;

View File

@ -14,7 +14,7 @@
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
package org.apache.cloudstack.api.user.sg.command;
package org.apache.cloudstack.api.user.securitygroup.command;
import org.apache.log4j.Logger;

View File

@ -14,7 +14,7 @@
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
package org.apache.cloudstack.api.user.sg.command;
package org.apache.cloudstack.api.user.securitygroup.command;
import org.apache.log4j.Logger;

View File

@ -14,7 +14,7 @@
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
package org.apache.cloudstack.api.user.sg.command;
package org.apache.cloudstack.api.user.securitygroup.command;
import java.util.List;

View File

@ -14,7 +14,7 @@
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
package org.apache.cloudstack.api.user.sg.command;
package org.apache.cloudstack.api.user.securitygroup.command;
import org.apache.log4j.Logger;

View File

@ -14,7 +14,7 @@
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
package org.apache.cloudstack.api.user.sg.command;
package org.apache.cloudstack.api.user.securitygroup.command;
import org.apache.log4j.Logger;

View File

@ -272,13 +272,13 @@ enableStorageMaintenance=com.cloud.api.commands.PreparePrimaryStorageForMaintena
cancelStorageMaintenance=com.cloud.api.commands.CancelPrimaryStorageMaintenanceCmd;1
#### security group commands
createSecurityGroup=org.apache.cloudstack.api.user.sg.command.CreateSecurityGroupCmd;15
deleteSecurityGroup=org.apache.cloudstack.api.user.sg.command.DeleteSecurityGroupCmd;15
authorizeSecurityGroupIngress=org.apache.cloudstack.api.user.sg.command.AuthorizeSecurityGroupIngressCmd;15
revokeSecurityGroupIngress=org.apache.cloudstack.api.user.sg.command.RevokeSecurityGroupIngressCmd;15
authorizeSecurityGroupEgress=org.apache.cloudstack.api.user.sg.command.AuthorizeSecurityGroupEgressCmd;15
revokeSecurityGroupEgress=org.apache.cloudstack.api.user.sg.command.RevokeSecurityGroupEgressCmd;15
listSecurityGroups=org.apache.cloudstack.api.user.sg.command.ListSecurityGroupsCmd;15
createSecurityGroup=org.apache.cloudstack.api.user.securitygroup.command.CreateSecurityGroupCmd;15
deleteSecurityGroup=org.apache.cloudstack.api.user.securitygroup.command.DeleteSecurityGroupCmd;15
authorizeSecurityGroupIngress=org.apache.cloudstack.api.user.securitygroup.command.AuthorizeSecurityGroupIngressCmd;15
revokeSecurityGroupIngress=org.apache.cloudstack.api.user.securitygroup.command.RevokeSecurityGroupIngressCmd;15
authorizeSecurityGroupEgress=org.apache.cloudstack.api.user.securitygroup.command.AuthorizeSecurityGroupEgressCmd;15
revokeSecurityGroupEgress=org.apache.cloudstack.api.user.securitygroup.command.RevokeSecurityGroupEgressCmd;15
listSecurityGroups=org.apache.cloudstack.api.user.securitygroup.command.ListSecurityGroupsCmd;15
#### vm group commands
createInstanceGroup=org.apache.cloudstack.api.user.vmgroup.command.CreateVMGroupCmd;15

View File

@ -36,7 +36,7 @@ import java.util.concurrent.TimeUnit;
import javax.ejb.Local;
import javax.naming.ConfigurationException;
import org.apache.cloudstack.api.user.sg.command.*;
import org.apache.cloudstack.api.user.securitygroup.command.*;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.log4j.Logger;
@ -45,11 +45,7 @@ import com.cloud.agent.api.NetworkRulesSystemVmCommand;
import com.cloud.agent.api.SecurityGroupRulesCmd;
import com.cloud.agent.api.SecurityGroupRulesCmd.IpPortAndProto;
import com.cloud.agent.manager.Commands;
import org.apache.cloudstack.api.user.sg.command.AuthorizeSecurityGroupEgressCmd;
import org.apache.cloudstack.api.user.sg.command.CreateSecurityGroupCmd;
import org.apache.cloudstack.api.user.sg.command.DeleteSecurityGroupCmd;
import org.apache.cloudstack.api.user.sg.command.ListSecurityGroupsCmd;
import org.apache.cloudstack.api.user.sg.command.RevokeSecurityGroupEgressCmd;
import org.apache.cloudstack.api.user.securitygroup.command.RevokeSecurityGroupEgressCmd;
import com.cloud.configuration.Config;
import com.cloud.configuration.dao.ConfigurationDao;
import com.cloud.domain.dao.DomainDao;