You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Brian Moseley <bc...@osafoundation.org> on 2005/03/01 02:09:51 UTC

changing a resource's owner

[originally sent to user list, then realized the question is likely more 
appropriate here - sorry for the double post!]

i find that i need to change a resource's owner after it has been
created. i understand that owner is a protected property, but i don't
have a choice; for project-specific reasons, i cannot create the
resource as the user whom i want to own the resource.

my first thought was to make this a special privilege i could assign to
the root user. is this the route i should be going down, or is there a
better way? i have spent an hour or so looking through the source, and
it's still not obvious to me how i would go about making such a change.

thanks!


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org


Re: AW: changing a resource's owner

Posted by Brian Moseley <bc...@osafoundation.org>.
Daniel Florey wrote:

> I don't know if it's working, but my proposal would be just to add an
> extractor that simply returns the owner-property with the desired content.
> Have a look at the event-package.html, this might be a good starting point
> or check out the demo extractors provided. It's fairly simple to register an
> extractor in the domain.xml.
> If it's working it's the cleanest way as you don't have to hack the Slide
> core...

thanks again for the pointer. i added a simple ContentListener that 
listens for create events and sets the owner appropriately. was very 
easy once i knew to have a look at the events stuff, and it works great.

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org


Re: AW: changing a resource's owner

Posted by Brian Moseley <bc...@osafoundation.org>.
Daniel Florey wrote:

> I don't know if it's working, but my proposal would be just to add an
> extractor that simply returns the owner-property with the desired content.
> Have a look at the event-package.html, this might be a good starting point
> or check out the demo extractors provided. It's fairly simple to register an
> extractor in the domain.xml.
> If it's working it's the cleanest way as you don't have to hack the Slide
> core...

that sounds like a superior approach. i'll give it a try. thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org


AW: changing a resource's owner

Posted by Daniel Florey <da...@web.de>.
Hi Brian,
I don't know if it's working, but my proposal would be just to add an
extractor that simply returns the owner-property with the desired content.
Have a look at the event-package.html, this might be a good starting point
or check out the demo extractors provided. It's fairly simple to register an
extractor in the domain.xml.
If it's working it's the cleanest way as you don't have to hack the Slide
core...

Cheers,
Daniel

> -----Ursprüngliche Nachricht-----
> Von: slide-dev-return-16011-daniel.florey=web.de@jakarta.apache.org
> [mailto:slide-dev-return-16011-daniel.florey=web.de@jakarta.apache.org] Im
> Auftrag von Brian Moseley
> Gesendet: Dienstag, 1. März 2005 02:10
> An: Slide Developers Mailing List
> Betreff: changing a resource's owner
> 
> 
> [originally sent to user list, then realized the question is likely more
> appropriate here - sorry for the double post!]
> 
> i find that i need to change a resource's owner after it has been
> created. i understand that owner is a protected property, but i don't
> have a choice; for project-specific reasons, i cannot create the
> resource as the user whom i want to own the resource.
> 
> my first thought was to make this a special privilege i could assign to
> the root user. is this the route i should be going down, or is there a
> better way? i have spent an hour or so looking through the source, and
> it's still not obvious to me how i would go about making such a change.
> 
> thanks!
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org