Hi Martin,
If you want a page that only the owner can edit, I think you should
include a security constraint in that page similar to this:
-----------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<page>
...
<security-constraints>
<users>@username@</users>
<permissions>view,edit,help</permissions>
</security-constraints>
</page>
-----------------------------------------------------
or
-----------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<page>
...
<security-constraints>
<owner>@username@</owner>
</security-constraints>
</page>
-----------------------------------------------------
Try this...
Regards,
Enrique
> -----Mensaje original-----
> De: Martin Maidhof [mailto:[EMAIL PROTECTED]
> Enviado el: jueves, 13 de julio de 2006 14:56
> Para: [email protected]
> Asunto: J2: How to define security constraint <owner> ....
>
> Hi,
>
> i want to guarantee, that a page can only be edited by its owner
> and no other user !
> How to do that with declarative security constraints in PSML ?
>
> For every new user the page is copied from a page in the
> _user/template folder. What to specify in that "source page"
> so that the copied page can only be edited by the user it
> belongs to ?
> The constraint "public-edit" allows editing for ALL users, so
> i don't want to use that. Is it possible to define some
> kind of "owner-edit" security constraint in the page.security file
> and then refer to that one ?
>
> The topic <owner> isn't described in the manuals:
>
http://portals.apache.org/jetspeed-2/guides/guide-security-declarative-
> psml.html
>
> Many thanks for every hint,
> Martin
> --
>
> . frankfurt am main, 30°c, die gefühlte temperatur
> liegt bei 31°c. zur zeit ein wenig bewölkt in 1219
> m. die sichtweite reicht weiter als 10 km.
>
> < martin maidhof
> [EMAIL PROTECTED]
> t +49 69 759003 14
>
> wemove digital solutions GmbH
> www.wemove.com
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]