pom.xml: update to killbill-oss-parent 0.3.6

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
.idea: don't wrap xml elements

This is mainly to reduce code churn with the sortpom plugin.

It doesn't look like we can force idea to expand <foo /> into
<foo></foo>, so we will still have some churn.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
.idea: define fast and slow groups for TestNG

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
[maven-release-plugin] prepare release killbill-0.3.6
[maven-release-plugin] prepare for next development iteration
jaxrs: implement search by invoice number

This implements:

  GET /1.0/kb/invoices/invoice_number

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
account: payment: add search APIs

This patch implements:

  GET /1.0/kb/accounts/search/search_key
  GET /1.0/kb/paymentMethods/search/search_key

This required an update of killbill-api to 0.4.0 and
killbill-plugin-api to 0.3.0.

This also:

* fixes some jaxrs models which were missing an equals() implementation
* fixes the getPaymentMethodWithPluginInfo implementation in KillbillClient

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
jaxrs: fix catalog endpoints

Reported-by: Praveen Agrawal <pkalwar@gmail.com>
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
beatrix: update test plugins to latest plugin API

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
beatrix: log exceptions during lifecycle

Reported-by: Praveen Agrawal <pkalwar@gmail.com>
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
util: remove MeterConfig

This class was moved to killbill-meter-plugin.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
pom.xml: update killbill-oss-parent to 0.3.8

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
[maven-release-plugin] prepare release killbill-0.4.0
[maven-release-plugin] prepare for next development iteration
util: switch to killbill-commons for locker and db testing helper

Update to killbill-commons 0.2.1 and get rid of the util specific
GlobalLocker and MysqlTestingHelper.

This also fixes the tests with a local database (-Dcom.ning.billing.dbi.test.useLocalDb=true):
TestDefaultBlockingApi was creating a bad bundles table that would later on break subscriptions
tests.

Note that we needed to update all subprojects pom.xml as test-jars dependencies are not
transitive (see http://jira.codehaus.org/browse/MNG-1378).

Misc. changes:

* Update .idea files
* Add mysql as a defined group

Testing Done: ran all tests with the embedded DB and with my local DB.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
server: first pass at implementing RBAC

Design document can be found on the wiki:

  https://github.com/killbill/killbill/wiki/Role-Based-Access-Control-(RBAC)

This first patch separates Multi-Tenancy from RBAC: moving forward, the Shiro filter
(and shiro.ini) will only be used for pure RBAC, regardless of Multi-Tenancy (we still
use internally various cryptography bits from Shiro for multi-tenancy authentication).

The main change in the server tests is that Multi-Tenancy is now enabled (the suite runs in its
own tenant). Since all calls go through the authentication flow, tests are a bit slower: between 300ms
to 500ms per call, resulting in a suite running a few minutes longer. On the upside, this found a
few bugs around Multi-Tenancy handling.

Among changes:

* fix a bug in DefaultAccountUserApi where the tenant_record_id wasn't populated on creation
* fix a bug in invoice and payment where the tenantId would be lost
* introduce X-Killbill-ApiKey and X-Killbill-ApiSecret headers for Multi-Tenancy authentication
* turn Multi-Tenancy on by default
* enable TestTenantFilter (no dependency on shiro.ini anymore)
* server tests timeouts have been increased (to work around slowness when priming Shiro)
* .idea: add misc. words to the dictionary

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Update README.md
server: disabled RBAC in the default shiro.ini

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Merge branch 'rbac' of github.com:killbill/killbill into rbac
overdue: update to latest API version

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>