Skip to content

Commit ceddaf1

Browse files
committed
api_refactor: refactor user apis
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
1 parent ba8e61b commit ceddaf1

11 files changed

Lines changed: 23 additions & 23 deletions

File tree

‎api/src/com/cloud/user/AccountService.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121

2222
import com.cloud.acl.ControlledEntity;
2323
import com.cloud.acl.SecurityChecker.AccessType;
24-
import com.cloud.api.commands.DeleteUserCmd;
24+
import org.apache.cloudstack.api.admin.user.command.DeleteUserCmd;
25+
import org.apache.cloudstack.api.admin.user.command.UpdateUserCmd;
2526
import org.apache.cloudstack.api.user.account.command.ListAccountsCmd;
26-
import com.cloud.api.commands.ListUsersCmd;
27+
import org.apache.cloudstack.api.admin.user.command.ListUsersCmd;
2728
import com.cloud.api.commands.RegisterCmd;
2829
import com.cloud.api.commands.UpdateAccountCmd;
29-
import com.cloud.api.commands.UpdateUserCmd;
3030
import com.cloud.domain.Domain;
3131
import com.cloud.exception.ConcurrentOperationException;
3232
import com.cloud.exception.PermissionDeniedException;

api/src/com/cloud/api/commands/CreateUserCmd.java renamed to api/src/org/apache/cloudstack/api/admin/user/command/CreateUserCmd.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 com.cloud.api.commands;
17+
package org.apache.cloudstack.api.admin.user.command;
1818

1919
import org.apache.log4j.Logger;
2020

api/src/com/cloud/api/commands/DeleteUserCmd.java renamed to api/src/org/apache/cloudstack/api/admin/user/command/DeleteUserCmd.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 com.cloud.api.commands;
17+
package org.apache.cloudstack.api.admin.user.command;
1818

1919
import org.apache.log4j.Logger;
2020

api/src/com/cloud/api/commands/DisableUserCmd.java renamed to api/src/org/apache/cloudstack/api/admin/user/command/DisableUserCmd.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 com.cloud.api.commands;
17+
package org.apache.cloudstack.api.admin.user.command;
1818

1919
import org.apache.log4j.Logger;
2020

api/src/com/cloud/api/commands/EnableUserCmd.java renamed to api/src/org/apache/cloudstack/api/admin/user/command/EnableUserCmd.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 com.cloud.api.commands;
17+
package org.apache.cloudstack.api.admin.user.command;
1818

1919
import org.apache.log4j.Logger;
2020

api/src/com/cloud/api/commands/GetUserCmd.java renamed to api/src/org/apache/cloudstack/api/admin/user/command/GetUserCmd.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 com.cloud.api.commands;
17+
package org.apache.cloudstack.api.admin.user.command;
1818

1919
import org.apache.log4j.Logger;
2020

api/src/com/cloud/api/commands/ListUsersCmd.java renamed to api/src/org/apache/cloudstack/api/admin/user/command/ListUsersCmd.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 com.cloud.api.commands;
17+
package org.apache.cloudstack.api.admin.user.command;
1818

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

api/src/com/cloud/api/commands/UpdateUserCmd.java renamed to api/src/org/apache/cloudstack/api/admin/user/command/UpdateUserCmd.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 com.cloud.api.commands;
17+
package org.apache.cloudstack.api.admin.user.command;
1818

1919
import org.apache.log4j.Logger;
2020

‎client/tomcatconf/commands.properties.in‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ listAccounts=org.apache.cloudstack.api.user.account.command.ListAccountsCmd;15
2929
markDefaultZoneForAccount=com.cloud.api.commands.MarkDefaultZoneForAccountCmd;1
3030

3131
#### User commands
32-
createUser=com.cloud.api.commands.CreateUserCmd;3
33-
deleteUser=com.cloud.api.commands.DeleteUserCmd;3
34-
updateUser=com.cloud.api.commands.UpdateUserCmd;3
35-
listUsers=com.cloud.api.commands.ListUsersCmd;7
32+
createUser=org.apache.cloudstack.api.admin.user.command.CreateUserCmd;3
33+
deleteUser=org.apache.cloudstack.api.admin.user.command.DeleteUserCmd;3
34+
updateUser=org.apache.cloudstack.api.admin.user.command.UpdateUserCmd;3
35+
listUsers=org.apache.cloudstack.api.admin.user.command.ListUsersCmd;7
3636
####lockUser=com.cloud.api.commands.LockUserCmd;7
37-
disableUser=com.cloud.api.commands.DisableUserCmd;7
38-
enableUser=com.cloud.api.commands.EnableUserCmd;7
39-
getUser=com.cloud.api.commands.GetUserCmd;1
37+
disableUser=org.apache.cloudstack.api.admin.user.command.DisableUserCmd;7
38+
enableUser=org.apache.cloudstack.api.admin.user.command.EnableUserCmd;7
39+
getUser=org.apache.cloudstack.api.admin.user.command.GetUserCmd;1
4040

4141
#### Domain commands
4242
createDomain=com.cloud.api.commands.CreateDomainCmd;1

‎server/src/com/cloud/user/AccountManagerImpl.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,19 @@
3636
import javax.ejb.Local;
3737
import javax.naming.ConfigurationException;
3838

39+
import org.apache.cloudstack.api.admin.user.command.ListUsersCmd;
3940
import org.apache.commons.codec.binary.Base64;
4041
import org.apache.log4j.Logger;
4142

4243
import com.cloud.acl.ControlledEntity;
4344
import com.cloud.acl.SecurityChecker;
4445
import com.cloud.acl.SecurityChecker.AccessType;
4546
import com.cloud.api.ApiDBUtils;
46-
import com.cloud.api.commands.DeleteUserCmd;
47+
import org.apache.cloudstack.api.admin.user.command.DeleteUserCmd;
4748
import org.apache.cloudstack.api.user.account.command.ListAccountsCmd;
48-
import com.cloud.api.commands.ListUsersCmd;
4949
import com.cloud.api.commands.RegisterCmd;
5050
import com.cloud.api.commands.UpdateAccountCmd;
51-
import com.cloud.api.commands.UpdateUserCmd;
51+
import org.apache.cloudstack.api.admin.user.command.UpdateUserCmd;
5252
import com.cloud.configuration.Config;
5353
import com.cloud.configuration.ConfigurationManager;
5454
import com.cloud.configuration.ResourceLimit;

0 commit comments

Comments
 (0)