You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by Apache Wiki <wi...@apache.org> on 2011/09/13 20:26:10 UTC

[Jackrabbit Wiki] Trivial Update of "AccessControl" by AlexanderKlimetschek

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jackrabbit Wiki" for change notification.

The "AccessControl" page has been changed by AlexanderKlimetschek:
http://wiki.apache.org/jackrabbit/AccessControl?action=diff&rev1=18&rev2=19

  acl.addAccessControlEntry(EveryonePrincipal.getInstance(), privileges);
  
  // the policy must be re-set
- aMgr.setPolicy(path, cal);
+ aMgr.setPolicy(path, acl);
  
  // and the session must be saved for the changes to be applied
  session.save();

Re: [Jackrabbit Wiki] Trivial Update of "AccessControl" by AlexanderKlimetschek

Posted by Francisco Carriedo Scher <fc...@gmail.com>.
Thank you very much for updating the Wiki, really nice from you and useful
for lot's of us!

Best regards!

2011/9/13 Apache Wiki <wi...@apache.org>

> Dear Wiki user,
>
> You have subscribed to a wiki page or wiki category on "Jackrabbit Wiki"
> for change notification.
>
> The "AccessControl" page has been changed by AlexanderKlimetschek:
> http://wiki.apache.org/jackrabbit/AccessControl?action=diff&rev1=18&rev2=19
>
>  acl.addAccessControlEntry(EveryonePrincipal.getInstance(), privileges);
>
>  // the policy must be re-set
> - aMgr.setPolicy(path, cal);
> + aMgr.setPolicy(path, acl);
>
>  // and the session must be saved for the changes to be applied
>  session.save();
>