Hi Rainer, Yes, I need to do that at runtime, when my module is running for the first time, and, I guess I've found the right way to do it. There are plenty of *Tasks object we can use and put to the task list then, the list is processed by the Delta builder. Ex. For adding new permissions to anonymous role: AddURIPermissionTask(String name, String description, String roleName, String uri, int permission) Etc.
Thx and regards Stéphane -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of rainer Sent: Sunday, November 23, 2008 8:31 PM To: [email protected] Subject: Re: [magnolia-user] Adding permission to anonymous role why dont you just browse the "userroles" repository and add the new permission to the ACL? Or do you need to do this at runtime? regards rainer Magnolia - User mailing list-2 wrote: > > Hi Magnolians, > > Could someone explain me how I can add a new "URL" permission to anonymous > role? > This is something I would like to perform on my new module installation. > > I have tried to force my chance with that: > MgnlRoleManager mgnlRoleManager = new MgnlRoleManager(); > Role anonymous = mgnlRoleManager.getRole("anonymous"); > anonymous.addPermission("URL","/testUrl/*",PermissionImpl.READ); > > But no succes as expected because URL is not a repository !? > > Any suggestion? > > Thx a lot for your help > > Stéphane Gauthier > > ************************************************************************************ > > This email and any files transmitted with it are confidential and intended > solely for the use of the individual or entity to whom they are addressed. > If you have received this email in error, please notify the system manager > ([EMAIL PROTECTED]) and delete the message with any attached files > from your system. > The confidentiality and integrity of this message cannot be guaranteed on > the Internet and the sender does not accept liability for its content. > *********************************************************************************** > > > ---------------------------------------------------------------- > for list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > ---------------------------------------------------------------- > > -- View this message in context: http://www.nabble.com/Adding-permission-to-anonymous-role-tp20620657p20649868.html Sent from the Magnolia - User mailing list archive at Nabble.com. ---------------------------------------------------------------- for list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[EMAIL PROTECTED]> ---------------------------------------------------------------- ************************************************************************************ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the system manager ([EMAIL PROTECTED]) and delete the message with any attached files from your system. The confidentiality and integrity of this message cannot be guaranteed on the Internet and the sender does not accept liability for its content. *********************************************************************************** ---------------------------------------------------------------- for list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[EMAIL PROTECTED]> ----------------------------------------------------------------
