core: Removed the unused GetStorageStatisticsQuery

This patch removes the unused GetStorageStatisticsQuery and its
corresponding constant in VdcQueryType.

Note that the query's code was commented out anyway.

Change-Id: I31475d3394c1446653678e0a5cd4f910d7fccb00
Signed-off-by: Allon Mureinik <amureini@redhat.com>
core: Removed unused GetXXXMessageQurey classes

The GetXXXMessagesQuery classes are no longer in use, and thus are
removed from the code base.

This path contains the following:
1. Removing the GetXXMessagesQuery classes.
2. Removing the GetXXMessagesParameteres classes used by the
   aforementioned query classes.
3. Removing the constants in VdcQueryType that correspond to the
   aforementioned removed queries.
4. Removing the GetMessagesByIdParameterBase which was the base class
   for all the aforementioned parameter classes and modifying
   GetAllEventMessagesQuery, which was the only query to use
   GetMessagesByIdParameterBase directyly to use
   VdcQueryParameterBase instead of it.
5. Removing the UserMessageController class which was only used by the
   GetUserMessageQuery class.

Change-Id: I747d1bc71bda99717e7816a6674d30e99ed007c8
Signed-off-by: Allon Mureinik <amureini@redhat.com>
core: Remove GetResourceUsage constant

Removed the enum constant VdcQueryType.GetResourceUsage since the
GetResourceUsageQuery class it represents is long gone, and is no longer
available in the code base.

Change-Id: Ie0ec4b45f293ea15f97155175695edbd7888bb99
Signed-off-by: Allon Mureinik <amureini@redhat.com>
core: Remove unused licensing VdcQueryTypes.

Removed the enum constants GetLicenseProperties and
GetLicenseProductType, as their corresponding query objects no longer
exist, and on their own they are useless.

Change-Id: I02cc5f5d99c2a016320c4a397e872e3a7ace8842
Signed-off-by: Allon Mureinik <amureini@redhat.com>
core: Remove unused GetTimeLeasedUsersByVmPoolId

Removed the unused GetTimeLeasedUsersByVmPoolId query.

This patch removes:
1. The GetTimeLeasedUsersByVmPoolIdQuery class
2. The GetTimeLeasedUsersByVmPoolIdParameters class only used by the
   aforementioned query.
3. The GetTimeLeasedUsersByVmPoolId constant from VdcQueryType
   representing the aforementioned query.
4. The getAllTimeLeasedUsersForVm(int) method from DbUserDAO, its
   implementation and its "test", as it was only used by the
   aforementioned query. Note that the underlying stored procedure no
   longer exists, so this DAO would not have worked anyway.

Change-Id: I7db6131e621dd1f34d023565d87c1a6afecbf2fa
Signed-off-by: Allon Mureinik <amureini@redhat.com>
core: Remove GetAdGroupsAttechedToTimeLeaseVmPool

GetAdGroupsAttechedToTimeLeaseVmPoolQuery is not used anywhere in the
code, and thus should be removed.

This patch removes the following:
1. The GetAdGroupsAttechedToTimeLeaseVmPoolQuery class.
2. The GetAdGroupsAttechedToTimeLeaseVmPoolParameters class only
   used by the aforementioned query class.
3. The GetAdGroupsAttechedToTimeLeaseVmPool constant in VdcQueryType
   corresponding to the aforementioned query class.
4. The getAllTimeLeasedForPool(int) method from AdGroupDAO and its
   implementation. Note that the underlying stored procedure called
   from this method no longer exists, so it could not have worked
   anyway.

Change-Id: Idd4265f3f979a76f70d9dcabf5b69e05fc9a0708
Signed-off-by: Allon Mureinik <amureini@redhat.com>
core: Remove GetVmsRunningOnVDSCount

GetVmsRunningOnVDSCountQuery is not used anywhere in the
code, and thus should be removed.

This patch removes the following:
1. The GetVmsRunningOnVDSCountQuery class.
2. The GetVmsRunningOnVDSCountParameters class only
   used by the aforementioned query class.
3. The GetVmsRunningOnVDSCount constant in VdcQueryType
   corresponding to the aforementioned query class.

Change-Id: Iba10fb35ece3a9bc6ba9f5cbe43086d14e440262
Signed-off-by: Allon Mureinik <amureini@redhat.com>
core: Remove GetVmsRunningOnVDS

GetVmsRunningOnVDSQuery is not used anywhere in the
code, and thus should be removed.

This patch removes the following:
1. The GetVmsRunningOnVDSQuery class.
2. The GetVmsRunningOnVDSParameters class only
   used by the aforementioned query class.
3. The GetVmsRunningOnVDS constant in VdcQueryType
   corresponding to the aforementioned query class.

Change-Id: I519f1c4c74eb641b7251a830f5eb2317d868a9db
Signed-off-by: Allon Mureinik <amureini@redhat.com>