Le mercredi 15 D�cembre 2004 13:07, Eirikur Hrafnsson a �crit�: > Hi, > > I have "two" burning questions, > 1. What default permissions are set when one upload a resource with > WebDavResource.putMethod(..), > and can you control these default actions/permissions that are set > (domain.xml)? E.g. shouldn't the users main group (is there a main > group) get at least read permission to the file or folder?
"default permission" stuff can be done with inheritability. see an example : you need that some user (with role /roles/writers) have the permission to write into all files under "/repository/" but cannot write to the "/repository" node itself. Permission on "/repository/" N� User Action Type Inheritable? 1 admin write true yes 2 /roles/writers write deny no 3 /roles/writers write true yes 4 users read true yes effective permission on "/repository/test" at creation are 1 admin write true yes 2 /roles/writers write true yes 3 users read true yes all inheritable permissions are the "default permissions" of the new (sub)nodes and permissions of a node is checked before inherited ones. > 2. How do I set permissions in code? > getSecurityHelper() method from NamespaceAccessToken. > > Best Regards > > Eirikur S. Hrafnsson, [EMAIL PROTECTED] > Chief Software Engineer > Idega Software > http://www.idega.com > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Honor� David ---------------------------- "They don't make bugs like Bunny anymore." --Olav Mjelde --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
