core: Cleanup and fix iNPE in HSMGetAllTasksStatusesVDSCommand

The patch removes the java.util notation and handles null value
properly instead failing with NPE.

Change-Id: I0351e7c1d1c14ff1681f9d5e3cf46db41c3d731f
core: Fix warnings in QuotaHelper

Fixed warnings detected by Eclipse IDE.

Change-Id: I9fbfb964227fb0770ad8e5549e1ba1c1752ce1a0
core: Fix potential NPE in RemoveBondCommand

The patch fixes 2 findbugs errors about potentials NPE.

Change-Id: I7fc061bce7774241a0e3d9c0ec404cd81196044f
core: Potential NPE in BackendCallBacksDirector (findbugs)

The patch fixes reported error by findbugs for a potential NPE and minor
clean up.

Change-Id: I66274977a14a6ca5e03c05acbe3fc464c2aa6576
core: Potential NPE in QuotaManager (findbugs)

The patch fixes a potential NPE in
QuotaManager.reduceCommandVdsGroupSize detected by findbugs.

Change-Id: I6e5b19ee9472b973aad35337242f84353a6b4eed
core: Use Arrays.toString() to print array content

The patch replaces the byte[].toString() with a use of Arrays.toString()
to get a meaningful output rather a non-clear message.

Change-Id: I315583756afdca9971f41f0bf1afd91625b9ed00
core: Fix DAO tests to new changes in fixtures.xml

A careless commit to fixtures.xml (by me :-() broke some tests.
This patch fixes them.

Change-Id: I627a3e291546b6a3c3d544c6f1914950f26298e0
engine: added export date to ovf for Vm and VmTemplate

Change-Id: Ie7a2b0cf84322b053e65a85a448ff0eaa79f429c
core: Improve message for missing SRV record

This patch improves the error message printed when a DNS SRV
record is not found.

It also turns the getService method to be available only in
one place.

Change-Id: I499acdf2b05e139bfdea4fd4f1c20a9d83bb93d3
core : Setting defauult entityId for ImagesActionsParametersBase

The following patch will set by default entityId for ImagesActionsParametersBase eguals to id of provided image

Change-Id: I44759a7047a329743f4613f90d98b1b1b115819a
core: Fixing VM get configuration by snapshot query

Due to merge error, SnapshotsManager got a new vm
for configuration update, and not the vm that is
associated with the snapshot

Change-Id: I5676d394e9ef3e330fc57ef4915da6318dda69bc
Acked-By:
core: Fix GetVmsInfoVDSCommand return log level

The return is an OVF XML, which is too verbose to print in info level,
so changing return level to be TRACE by default.

Change-Id: I8f60794a85e461a565f6f72e7850ac90accecca2
webadmin: New Pool dialog - storage selection

Added disks storage domains selection to
Resource Allocation in New Pool Dialog.

Change-Id: I1816e0261d475b2b31aab837d7ccbb4f67e6cd44
webadmin: Snapshots sub-tab structure redesign

* Sub-tab is composed of a tree of Snapshots.
* Get snapshots with a new query GetAllVmSnapshotsByVmId.
* Preview/Commit/Undo commands are now executed using a Snapshot Id.
* Snapshots tree and sub-tab are extracted to gwt-common for supporting U.P.

Change-Id: Ied2fb3356bec0584fd5052f1bf2a64774ee428f0
webadmin: Move/Copy disks modifications

* Filter irrelevant storage domains on Move/Copy disks dialogs.
* Add disk status column to Disks table.
* Block Hot-Plug for IDE disks.
* Disable 'remove' for locked disks.

Change-Id: I963491b771ad3eef359ab82d646c947fef9a6e1d
webadmin: Adding Quota column to DisksAllocation

* Adding a Quota column to DisksAllocationView.
* Affected dialogs: New VM/Pool/Template and Move/Copy.
* The column is shown only for Data-centers with 'Quota Mode' Enforce/Audit

Change-Id: I83bebd0ff04d5e1b986c65bce84e670802a34ac2
webadmin: Clone VM from snapshot support

* Added Clone VM from snapshot support to gwt-common.
* Implemented the corresponded dialog in the WebAdmin and UserPortal.

Change-Id: I63bba0568caa1b5742f23abc617fa4d1fd95c470
core: use enum for custom audit log keys

Change-Id: I02a23aa4da2ebee41c9830decd9c99bd487ae6a4
core: clean XMl annotations for VdsNetworkInterface

Change-Id: Iffe30d5726d6ec0a70abc5605790fa62cbf0c9d8
core: Fixing/refactoring buildAndCheckDestStorageDomains

Fixing and refactoring buildAndChekcDestStorageDomains.
1. At AddVmCommand - extracting a method for getting a collection of
images that participate in the check
2. At AddVmAndClone - overriding this method, returning the collection
of the images to be cloned (and not the images of the template as in the
base class).

Change-Id: Iace8881f1d05f037a715e3a6679adaea0e2e4aee