184 Commits

Author SHA1 Message Date
Kris McQueen
a53cb4aab0 Refactoring deleteDomain to new API framework. Cleaning up some compilation errors that resulted from previous refactoring, namely there was a requirement to keep the old manager method around for createDiskOffering and createZone in order for the ConfigurationServer to work. 2010-09-14 15:36:12 -07:00
Kris McQueen
dbb2897626 Unexposed parameters can now be assigned to commands. This are for internal use of the command, and will be serialized/deserialized during execution/response phases, but will not be accepted as part of the API request. Also create a DB utility file for the API to use which delegates requests to the DAOs. Mostly this utility class will look up objects by ID, and it allows the removal of similar methods from ManagementServer, thereby reducing some of the clutter in ManagementServer. 2010-09-14 14:54:04 -07:00
Kris McQueen
f4caf145c3 Refactoring dispatching API commands from the scheduled async job. Instead of calling an executor, the dispatcher invokes the method on the manager directly. After the command is executed the response is serialized to the async job table so it can be queried later. Also serialize a response for async create commands that includes the id of the object being created. 2010-09-13 18:28:19 -07:00
Kris McQueen
a8112f65de When using session based authentication, we now store the parameters in the session as part of the login processing, instead of returning those parameters so that the caller has to update the session. Authentication now throws an exception on failure and the caught exception is where the session is invalidated. 2010-09-13 17:04:11 -07:00
Kris McQueen
de5e978b7b Removing listSecurityGroups and listNetworkGroups from the SecurityGroupDao and NetworkGroupDao since they weren't being called by anyone. 2010-09-13 15:59:52 -07:00
Kris McQueen
df10af0688 cleaning up imports, fixing up some compilation problems related to API refactoring 2010-09-13 15:25:46 -07:00
Kris McQueen
3ba48f9676 fixing up code rearrangement since I forgot to add the files to my commit, oops... 2010-09-13 15:05:17 -07:00
Kris McQueen
77feb415d6 fixing up the move of EventUtils to server package 2010-09-13 15:04:04 -07:00
Kris McQueen
dfdab6d641 moving event utils from core to server to avoid circular dependencies. 2010-09-13 15:01:43 -07:00
Kris McQueen
2741eedb26 moving console proxy alert event args to server package to avoid circular dependencies 2010-09-13 14:58:58 -07:00
Kris McQueen
bb575d9d4e moving console proxy manager/listener to server package to avoid circular dependencies 2010-09-13 14:57:51 -07:00
Kris McQueen
449d1f3acf working through some compilation errors that have arisen due to all the API refactoring... 2010-09-13 14:46:23 -07:00
Kris McQueen
460ef94299 Refactoring listStoragePoolsAndHosts command to new API framework. 2010-09-13 14:03:07 -07:00
Kris McQueen
1e46e2e588 refactoring createVolume to new API framework 2010-09-10 23:25:22 -07:00
Kris McQueen
b73cd10fbe Refactoring listAccounts to new API framework. 2010-09-09 18:58:37 -07:00
Kris McQueen
037f1ff327 Refactoring createSnapshot to new API framework. 2010-09-09 18:58:37 -07:00
Kris McQueen
39038721a8 Refactoring deployVirtualMachine to new API framework. Since this is a rather complicated command with many steps, for now the way the logic is broken up between ManagementServer and UserVmManager and NetworkManager is preserved. Later there is a possibility of consolidating some of the logic. 2010-09-09 18:58:37 -07:00
Kris McQueen
c44d3391bb Removing dead code that had previously been refactored. 2010-09-09 18:58:37 -07:00
alena
3659b7b207 Code cleanup - deleted code that was commented out and unused imports. 2010-09-09 16:07:29 -07:00
alena
75483e4e05 Modified AuthorizeNetworkGroupIngress/DeleteNetworkGroupIngress to new api framework 2010-09-09 11:41:33 -07:00
alena
ea415e65bb Merge branch '2.1.refactor' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 2.1.refactor
Conflicts:
	server/src/com/cloud/server/ManagementServerImpl.java
2010-09-08 20:08:14 -07:00
alena
44f86d3726 Refactored AssignPortForwardingServiceCmd and DeletePortForwardingServiceCmd 2010-09-08 20:06:15 -07:00
Kris McQueen
3949afa9ae Refactor queryAsyncJobResult to new API framework. 2010-09-08 19:24:35 -07:00
alena
fd680189f6 Merge branch '2.1.refactor' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 2.1.refactor 2010-09-08 19:04:13 -07:00
alena
b0aa28032c Refactored DeleteIPForwardingRule/UpdateIPForwardingRule commands to new api framework. 2010-09-08 19:03:42 -07:00
Kris McQueen
8c2756b681 Refactor listZones to new API framework. 2010-09-08 18:56:28 -07:00
Kris McQueen
741bb77b7e Refactor listVolumes to new API framework. 2010-09-08 18:56:28 -07:00
Kris McQueen
b144be4613 Refactor listVMs to new API framework. 2010-09-08 18:56:28 -07:00
Kris McQueen
88f5b73682 Refactor listVlanIpRanges to new API framework. 2010-09-08 18:56:28 -07:00
Kris McQueen
bdebd4bfa3 Refactor listUsers to new API framework. 2010-09-08 18:56:28 -07:00
Kris McQueen
b40f496f80 Refactoring listTemplatePermissions and listIsoPermissions to new API framework. 2010-09-08 18:56:27 -07:00
Kris McQueen
5204349fef Refactor listSystemVms to new API framework. Add missing licensing info to several API response files. Combine ConsoleProxy and SecondaryStorageVm interfaces into SystemVm interface to have common functions callable from one interface rather than having to cast overly much just to get the same data from the objects. This also includes a partial refactoring of ListStoragePoolsAndHosts command. 2010-09-08 18:56:27 -07:00
alena
5170c215f8 Refactored DeleteLoadBalancerRule/UpdateLoadBalancerRule api commands. 2010-09-08 15:04:26 -07:00
alena
c0185e713a Refactored AttachVolume/PrepareForMaintenance/CancelMaintenance/PreparePrimaryStorageForMaintenance/CancelPrimaryStorageMaintenance commands. 2010-09-08 12:18:46 -07:00
alena
7e5f0de448 Merge branch '2.1.refactor' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 2.1.refactor 2010-09-07 18:54:59 -07:00
alena
41000e61d3 Refactored copyIso/copyTemplate/attachIso/startRouter/stopRouter/rebootRouter commands 2010-09-07 18:53:04 -07:00
Kris McQueen
614c3fa502 Refactor listSnapshots to new API framework. Also some minor code cleanup. 2010-09-07 18:41:52 -07:00
Kris McQueen
3b703c76cf Refactor listSnapshotPolicies to new API framework. 2010-09-07 17:46:55 -07:00
Kris McQueen
e6ebe3ac77 Refactoring listServiceOfferings to new API framework. 2010-09-07 17:29:13 -07:00
Kris McQueen
a905442b2e Refactor listRouters to new API framework. 2010-09-07 16:25:26 -07:00
Kris McQueen
4e5aa9cd98 Finish refactoring listResourceLimits to new API framework. 2010-09-07 14:56:51 -07:00
Kris McQueen
cee6b37757 Partial refactoring of listResourceLimits to new API framework. 2010-09-07 14:56:51 -07:00
Kris McQueen
f653e54ce6 Refactoring listRecurringSnapshotSchedule to new API framework. 2010-09-07 14:56:50 -07:00
alena
70279f35fa Merge branch '2.1.refactor' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 2.1.refactor 2010-09-07 11:31:46 -07:00
alena
d3b4a56520 Merge branch '2.1.refactor' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 2.1.refactor 2010-09-02 18:54:14 -07:00
alena
f2a680ae66 1) Refactored DeleteIsoCmd api.
2) Removed DeleteTemplateExecutor and DeleteTemplateParam files because deleteTemplate/deleteIso are not async commands
3) Cleaned up unused imports.
2010-09-02 18:52:43 -07:00
Kris McQueen
22b0a95b2f Refactor listPublicIpAddresses to new API framework. 2010-09-02 16:23:29 -07:00
Kris McQueen
1d1e10d2d3 Refactoring listPreallocatedLuns to new API framework. 2010-09-02 15:23:15 -07:00
Kris McQueen
2cd9a44267 Refactoring listPortForwardingServices to new API framework. Also forgot to return a response from listPortForwardingServicesByVM... 2010-09-02 15:03:06 -07:00
Kris McQueen
f6ae5e9b52 Refactoring listPortForwardingServicesByVM to new API framework. 2010-09-02 11:57:31 -07:00