RE: Creating a service user for your own bundle

2016-11-07 Thread Jason Bailey
] Sent: Monday, November 07, 2016 7:27 AM To: users@sling.apache.org Subject: Re: Creating a service user for your own bundle On Mon, 2016-11-07 at 12:06 +0100, Bertrand Delacretaz wrote: > On Mon, Nov 7, 2016 at 12:01 PM, Carsten Ziegeler <cziegeler@apache.o > rg> wrote: > > B

Re: Creating a service user for your own bundle

2016-11-07 Thread Robert Munteanu
On Mon, 2016-11-07 at 12:06 +0100, Bertrand Delacretaz wrote: > On Mon, Nov 7, 2016 at 12:01 PM, Carsten Ziegeler rg> wrote: > > Bertrand Delacretaz wrote > > > ... That's a nice model but IIUC Carsten earlier in this thread > > > OSGi > > > capabilities cannot be created at

Re: Creating a service user for your own bundle

2016-11-07 Thread Bertrand Delacretaz
On Mon, Nov 7, 2016 at 12:19 PM, Oliver Lietz wrote: > .. and a service which executes repoinit statements at runtime (not sure > if Carsten already created an issue for that) You can already do that today by passing the output of a RepoInitParser to a

Re: Creating a service user for your own bundle

2016-11-07 Thread Carsten Ziegeler
Oliver Lietz wrote > On Monday 07 November 2016 11:35:19 Bertrand Delacretaz wrote: >> On Mon, Nov 7, 2016 at 11:20 AM, Oliver Lietz wrote: >>> ...If a bundle requires a capability the system has to provide that >>> capability otherwise the bundle would not resolve >>

Re: Creating a service user for your own bundle

2016-11-07 Thread Bertrand Delacretaz
On Mon, Nov 7, 2016 at 12:01 PM, Carsten Ziegeler wrote: > Bertrand Delacretaz wrote >>... That's a nice model but IIUC Carsten earlier in this thread OSGi >> capabilities cannot be created at runtime so that won't work for >> service users or access rights. > > I just had

Re: Creating a service user for your own bundle

2016-11-07 Thread Carsten Ziegeler
Bertrand Delacretaz wrote > On Mon, Nov 7, 2016 at 11:20 AM, Oliver Lietz wrote: >> ...If a bundle requires a capability the system has to provide that >> capability >> otherwise the bundle would not resolve > > That's a nice model but IIUC Carsten earlier in this

Re: Creating a service user for your own bundle

2016-11-07 Thread Bertrand Delacretaz
On Mon, Nov 7, 2016 at 11:20 AM, Oliver Lietz wrote: > ...If a bundle requires a capability the system has to provide that capability > otherwise the bundle would not resolve That's a nice model but IIUC Carsten earlier in this thread OSGi capabilities cannot be

Re: Creating a service user for your own bundle

2016-11-07 Thread Oliver Lietz
On Monday 07 November 2016 10:43:18 Roy Teeuwen wrote: > Hey Oliver, Hi Roy, > Forcing a user of a bundle to go and look up the git project to find the > README.md to see which permissions are needed doesn't sound like a good > solution for me, it should be present somehow in the built jar from

Re: Creating a service user for your own bundle

2016-11-07 Thread Roy Teeuwen
Hey Oliver, Forcing a user of a bundle to go and look up the git project to find the README.md to see which permissions are needed doesn't sound like a good solution for me, it should be present somehow in the built jar from the maven central repo. So I would also go for the manifest file here

Re: Creating a service user for your own bundle

2016-11-07 Thread Oliver Lietz
On Monday 07 November 2016 10:05:18 Oliver Lietz wrote: > On Monday 07 November 2016 07:58:33 Carsten Ziegeler wrote: > > Roy Teeuwen wrote > > Hi Roy, > > > > Hey Carsten, ...and good morning, Carsten! O. > > > Thanks for the info, I will definitely follow up on the progress of what > > >

Re: Creating a service user for your own bundle

2016-11-07 Thread Oliver Lietz
On Monday 07 November 2016 07:58:33 Carsten Ziegeler wrote: > Roy Teeuwen wrote Hi Roy, > > Hey Carsten, > > > > Thanks for the info, I will definitely follow up on the progress of what > > you are making then :). > > > > One remark though, you say it's not the task of the bundle developer to

Re: Creating a service user for your own bundle

2016-11-06 Thread Carsten Ziegeler
Roy Teeuwen wrote > Hey Carsten, > > Thanks for the info, I will definitely follow up on the progress of what you > are making then :). > > One remark though, you say it's not the task of the bundle developer to > create the user and assigning the rights. > I can follow in this, but this also

Re: Creating a service user for your own bundle

2016-11-06 Thread Roy Teeuwen
Hey Carsten, Thanks for the info, I will definitely follow up on the progress of what you are making then :). One remark though, you say it's not the task of the bundle developer to create the user and assigning the rights. I can follow in this, but this also means that the potential users of

Re: Creating a service user for your own bundle

2016-11-06 Thread Carsten Ziegeler
Roy Teeuwen wrote > Hey all, > > Seeing as it is now best practice to not use the getAdminResourceResolver > anymore but go for the getServiceResourceResolver, what is the best way to > have a bundle on it's own create the service user that belongs to the bundle. > I know you can put the >

Creating a service user for your own bundle

2016-11-05 Thread Roy Teeuwen
Hey all, Seeing as it is now best practice to not use the getAdminResourceResolver anymore but go for the getServiceResourceResolver, what is the best way to have a bundle on it's own create the service user that belongs to the bundle. I know you can put the