Skip to content

Commit 2140ff5

Browse files
committed
api: Refactor and move VPN related api cmd classes to command.user.vpn
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
1 parent a15da04 commit 2140ff5

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

api/src/com/cloud/network/vpn/RemoteAccessVpnService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
import java.util.List;
2020

21-
import org.apache.cloudstack.api.command.user.user.ListVpnUsersCmd;
21+
import org.apache.cloudstack.api.command.user.vpn.ListVpnUsersCmd;
2222
import org.apache.cloudstack.api.command.user.vpn.ListRemoteAccessVpnsCmd;
2323
import com.cloud.exception.NetworkRuleConflictException;
2424
import com.cloud.exception.ResourceUnavailableException;

api/src/org/apache/cloudstack/api/command/user/user/AddVpnUserCmd.java renamed to api/src/org/apache/cloudstack/api/command/user/vpn/AddVpnUserCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17-
package org.apache.cloudstack.api.command.user.user;
17+
package org.apache.cloudstack.api.command.user.vpn;
1818

1919
import org.apache.log4j.Logger;
2020

api/src/org/apache/cloudstack/api/command/user/user/ListVpnUsersCmd.java renamed to api/src/org/apache/cloudstack/api/command/user/vpn/ListVpnUsersCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17-
package org.apache.cloudstack.api.command.user.user;
17+
package org.apache.cloudstack.api.command.user.vpn;
1818

1919
import java.util.ArrayList;
2020
import java.util.List;

api/src/org/apache/cloudstack/api/command/user/user/RemoveVpnUserCmd.java renamed to api/src/org/apache/cloudstack/api/command/user/vpn/RemoveVpnUserCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17-
package org.apache.cloudstack.api.command.user.user;
17+
package org.apache.cloudstack.api.command.user.vpn;
1818

1919
import org.apache.log4j.Logger;
2020

api/test/src/com/cloud/api/commands/test/AddVpnUserCmdTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import junit.framework.Assert;
2020
import junit.framework.TestCase;
2121

22-
import org.apache.cloudstack.api.command.user.user.AddVpnUserCmd;
22+
import org.apache.cloudstack.api.command.user.vpn.AddVpnUserCmd;
2323
import org.junit.Before;
2424
import org.junit.Rule;
2525
import org.junit.Test;

client/tomcatconf/commands.properties.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,9 @@ createRemoteAccessVpn=org.apache.cloudstack.api.command.user.vpn.CreateRemoteAcc
298298
deleteRemoteAccessVpn=org.apache.cloudstack.api.command.user.vpn.DeleteRemoteAccessVpnCmd;15
299299
listRemoteAccessVpns=org.apache.cloudstack.api.command.user.vpn.ListRemoteAccessVpnsCmd;15
300300

301-
addVpnUser=org.apache.cloudstack.api.command.user.user.AddVpnUserCmd;15
302-
removeVpnUser=org.apache.cloudstack.api.command.user.user.RemoveVpnUserCmd;15
303-
listVpnUsers=org.apache.cloudstack.api.command.user.user.ListVpnUsersCmd;15
301+
addVpnUser=org.apache.cloudstack.api.command.user.vpn.AddVpnUserCmd;15
302+
removeVpnUser=org.apache.cloudstack.api.command.user.vpn.RemoveVpnUserCmd;15
303+
listVpnUsers=org.apache.cloudstack.api.command.user.vpn.ListVpnUsersCmd;15
304304

305305
#### network offering commands
306306
createNetworkOffering=org.apache.cloudstack.api.command.admin.network.CreateNetworkOfferingCmd;1

server/src/com/cloud/network/vpn/RemoteAccessVpnManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import javax.ejb.Local;
2424
import javax.naming.ConfigurationException;
2525

26-
import org.apache.cloudstack.api.command.user.user.ListVpnUsersCmd;
26+
import org.apache.cloudstack.api.command.user.vpn.ListVpnUsersCmd;
2727
import org.apache.log4j.Logger;
2828

2929
import org.apache.cloudstack.api.command.user.vpn.ListRemoteAccessVpnsCmd;

0 commit comments

Comments
 (0)