User management with the JerseyNexusClient

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

User management with the JerseyNexusClient

I am trying to access the Subsystems Users and User in an OSGi Environment using the JerseyNexusClient, but getting an IllegalArgumentException (see below). I guess this is related to the way the required SubsystemProviders are retrieved, which only seems to work without additional effort in non-OSGi environments. In the cases of Privlileges and Roles I could bypass the problem by adding the according SubsystemFactories to my JerseyNexusClientFactory as follows:
JerseyNexusClientFactory jerseyNexusClientFactory = new JerseyNexusClientFactory(new JerseyPrivilegesSubsystemFactory(), new JerseyRolesSubsystemFactory());

Unfortunately there is no such JerseySubsystemFactory handling Users, at least I could not find one. So the question is, am I missing something here? Is there another way to handle this problem or do I have to work with pure REST-commands to gain access to the mentioned Subsystems?

Thanks in advance,
Users users = jerseyNexusClient.getSubsystem(Users.class);

java.lang.IllegalArgumentException: No was able to create a subsystem of
        at com.cloudyle.paasplus.core.repository.client.impl.RepositoryClientImpl.init(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_25]
        at sun.reflect.NativeMethodAccessorImpl.invoke([:1.7.0_25]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke([:1.7.0_25]
        at java.lang.reflect.Method.invoke([:1.7.0_25]
        at org.apache.aries.blueprint.utils.ReflectionUtils.invoke([19:org.apache.aries.blueprint.core:1.4.0]
        at org.apache.aries.blueprint.container.BeanRecipe.invoke([19:org.apache.aries.blueprint.core:1.4.0]
        at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit([19:org.apache.aries.blueprint.core:1.4.0]
        ... 29 more