core: Move scheduler to modules

The scheduler component used to be into a "beans" folder, but it is not
different from other components, like "dal" or "bll", so it makes more
sense to have it in the same folder.

Change-Id: I291a87742ddb2d536bd0d11f54515ac531b69659
Signed-off-by: Juan Hernandez <juan.hernandez@redhat.com>
core: provided cleared frontend logging

- Added code to display better debug messages for
-- RunQuery
-- RunPublicQuery
-- RunMultipleQueries
-- RunAction
-- RunMultipleActions

Change-Id: I845aa47da03168f1a0f988203df7ab0a51e94804
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=903312
Signed-off-by: Alexander Wels <awels@redhat.com>
userportal, webadmin: i18n refresh 'sec'

- Fixed 'sec' not being i18ned on the refresh panel
drop down.
- Renamed MilisecondRenderer to MillisecondRenderer

Change-Id: I0eadb1085e6b59239d1091d894de52ca3fc3e88a
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=871354
Signed-off-by: Alexander Wels <awels@redhat.com>
webadmin: Events tab - Details dialog

Events tab:
* Created a new dialog for showing event's details (ID, Time, Message).
  Event message is displayed in a text-area for easy copy-paste.
* Added context menu 'Details' button (invoked on double-click)

Change-Id: If9bccd2e8a692dd7f9745ed240de3ebd1b7ff376
Signed-off-by: Daniel Erez <derez@redhat.com>
core: AddVmFromSnapshot - avoid early end method run

When adding vm as a clone of snapshot, the vm id should be set as
the entity id for the child commands parameters - this prevent a
situation in which the end method is called too early.

NOTE: seems like the MoveOrCopyImageGroupParameters class might be
re-factored so that in a case of given ContainerId, it will be set as the
entity id - but that's not in the scope of this change.

Change-Id: I7a536cb3c530fd9caa0b121830481604c0558d53
Signed-off-by: Liron Aravot <laravot@redhat.com>
webadmin: make storage type field non editable

In edit dialog of storage domain
make the "Domain Function / Storage Type" field not editable.
It remains editable when adding a new storage domain.

Change-Id: I7c6c3db97ca8a2d07ec7ec50b0765828b902e5a8
Signed-off-by: Alissa Bonas <abonas@redhat.com>
core: searchbackend - sort VMs by host name

Adding support for sorting VMs by host name
(using search - 'Vms: sortby host'.

Change-Id: If556479a2a00868f803ef4639eef9dc9453592ff
Signed-off-by: Daniel Erez <derez@redhat.com>
engine: fix NPE when trying to export not existing template

The fix is all about checking whether the template exists before trying
to get its storage pool id.

This patch contains two other changes:
1. the description of the command moved from #canDoAction to the
constructor which is a more appropriate place to initialize things.
2. add a check that the template exists as the first thing that is
checked in #canDoAction(). this check is already made at
MoveOrCopyTemplateCommand#canDoAction but it is taking place too late -
we should address this issue but in a different patch in order to keep
this one simple fix.

Change-Id: I757672ec2f989f4dc1bc5403878c5cbee69f9cf0
Bug-Url: https://bugzilla.redhat.com/928365
Signed-off-by: Arik Hadas <ahadas@redhat.com>
packaging: provide activation.jar

activation.jar is required by hibernate-validator, which causes maven to
bring it as a transient dependency, even though it is part of the JDK.

Explicitly adding it to the root pom.xml and marking it as provided (in
a similar fashion to javax.transaction) makes sure it is not brought
twice.

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