Bug 1144497 - DV6 should not report Product Name as EAP

Workaround detecting DV6 product name by searching through child resources
andn looking up resource type Teiid:Data Virtualization.

(cherry picked from commit 0d63e624ae36a018a6712eb42e1413d174f5e738)
Signed-off-by: Libor Zoubek <lzoubek@redhat.com>
[BZ 1133947] - Unregistered LDAP user without role can login to CLI - introducing loginLocal() method to be able to find out that user is comming from CLI (the case when SubjectManagerRemote.login() is called) and let him fail if it is LDAP user and is not registered in the system. This is now consistent with the REST endpoint, where we assume the registered LDAP user as well.

(cherry picked from commit 61bc3cebe032ac1bcdb8906d302d976d73ab3cdf)
Signed-off-by: Libor Zoubek <lzoubek@redhat.com>
Bug 1125423 - Fuse Fabric Groups Plugin cannot be enabled

Generally when there is an attempt to enable server plugins we now first
check it's configuration by looking for required properties (in ConfigDef)
and making sure there's valid value in configuration. If something is
missing, it means plugin is not configured and cannot be enabled.
ServerPluginManagerBean thows this using
PluginConfigurationRequiredException that is then presented to user.

(cherry picked from commit bd1095fa5ac2f55544d5f8c4b45033b4050b94d9)
Signed-off-by: Thomas Segismont <tsegismo@redhat.com>
Bug 1125423 - Fuse Fabric Groups Plugin cannot be enabled

Fixed failing itest and also added test

(cherry picked from commit c4fc397e59325e17fca9a06af93acd2d79015f20)
Signed-off-by: Thomas Segismont <tsegismo@redhat.com>
Bug 1140676 - Exception logged while inventorying EAP 6 host controller after setting http-interface

Throw IPCE when security realm is not ready so that a proper resource
error shows up in the GUI.

(cherry picked from commit 9c1d53de54065ac9240df9c5d526fef04b09419c)
Signed-off-by: Libor Zoubek <lzoubek@redhat.com>
Imported localized messages for DE and JA locales for strings committed to release/jon3.3.x on or before 09/24/2014.
Bug 1077744 - statement timeout during drift purge job

Changed the query WHERE clause: don't use NOT IN because NOT IN(NULL) will always return false.
See http://stackoverflow.com/questions/17150208/sql-query-with-not-in-returning-no-rows

In other words, if any row in RHQ_DRIFT as a NULL value in OLD_DRIFT_FILE or NEW_DRIFT_FILE columns, we'll never purge anything.

Besides, the NOT EXISTS variant has a better execution plan.

Use PurgeTemplate to delete rows in batches and select the keys of the rows to delete without locking the drift files table.

Also, some code cleanup.

(cherry picked from commit 3251090d63f58f0da3d604f30cc8f819533e0fcc)
Signed-off-by: Libor Zoubek <lzoubek@redhat.com>
Bug 1147001 - Server log exception when saving a resource error

Do not send resource error until the resource is synced with server

(cherry picked from commit 61dc694215ad0058fd1e94e39af69337899c19bb)
Signed-off-by: Libor Zoubek <lzoubek@redhat.com>
[BZ 1114200] fix handling of late data

My previous commits that involved setting the column timestamp on inserts had
to be reverted. When aggregating late data, it is possible to end up with a
clock tie (See https://wiki.apache.org/cassandra/FAQ#clocktie for details). In
those situations the columns might not get overwritten.

The key thing is to ensure that we do not try to recompute aggregate metrics
when some or all of the source data has already expired, leading to new,
incorrect data. I have put changes in place that should prevent this from
happening.

This commit also includes a change to IndexIterator. It will now continue
loading pages if there is a read timeout. Previously, the exception would go
uncaught causing data aggregation to abort early.
fixing merge conflicts
[BZ 1144238] fix compiler error and update dependencies

Conflicts:
	pom.xml
[1120417] Break up transaction of updatePluginConfigurationDefinition into smaller pieces
Another pass here given some oracle test failures in the CI env.
- Fix an issue with PropertyDefinitionSimple.removeEnumeratedValues.
  An unexpected problem brought out, I guess, by the Tx reworking,
  must be careful not to replace hibernate proxy dealing with
  orphanRemoval.
- remove unnecessary REQUIRES_NEW that could lead to locking issues
- remove some dead code
- start shortening xxxInNewTransaction to xxxInNewTx, purely for selfish reasons.

(cherry picked from commit 001a3d1ed50713172774c4ae94effd34523aa9ca)
Signed-off-by: Jay Shaughnessy <jshaughn@redhat.com>
In a recent commit for [1120417] (and the resulting oracle test failures) we
added protection against Hibernate errors related  to detached sets when
orphanRemoval=true.  This applies similar changes to entity classes
outside of the BZ work.

(cherry picked from commit 0e8b7ed217d5ec91ac1313e5fc87829c330b4ca9)
Signed-off-by: Jay Shaughnessy <jshaughn@redhat.com>
[BZ 1146138] Add metrics from the Datastax driver, and remove some duplicate internal ones.

(cherry picked from commit b73f8e5756c498300dfe801403a6b036d65cf7a6)
Fix MBean method names

(cherry picked from commit 74635ad7e65f4c2425345032f5fa2d07d5e08d1f)
[BZ 1108095] Use topologyDelta instead of hard requestLimit for tests

(cherry picked from commit c6b482c1b687d70d7644ba91dd6c272f701cfd07)
[BZ 1108095] fix compiler errors

(cherry picked from commit 6958d627983c66813ad12f0e7b42619ddbdfe7b0)
[BZ 1108095] Updating topology delta will automatically change requestLimit. RequestLimit is no longer allowed to be edited directly

(cherry picked from commit 328cecabaa662cccc0f1d136576c2883c45ca54a)
[BZ 1070262] Updates to the configuration upgrade code for the server and the agent.

This commit resolves the upgrade obfuscation for rhq-server.properties file and some minor tweaks for the agent-configuration.xml file.
(cherry picked from commit 4d27730aee50a12910e754157ce6e6d13556693a)

Signed-off-by: John Mazzitelli <mazz@redhat.com>
[BZ 1070262] Snip superfluous "public" access modifier.
(cherry picked from commit 3ff036a33887fdc3cfa4463f2e1179d183e0c5e2)

Signed-off-by: John Mazzitelli <mazz@redhat.com>