Yes it works !
Thank you Philipp -----<[email protected]> escribió: ----- Para: <[email protected]> De: "Philipp Bracher" <[email protected]> Enviado por: <[email protected]> Fecha: 10/14/2005 06:09PM Asunto: Re: [magnolia-user] HierarchyManager > I have used the following code to obtain a HierarchyManager: > > --CODE-- > SimpleCredentials sc = new SimpleCredentials( > ContentRepository.SYSTEM_USER, ContentRepository.SYSTEM_PSWD ) ; > > ... > hierarchyManager.init( session.getRootNode() ) ; > > hierarchyManager.setAccessManager( accessManager ) ; > > --End of CODE-- try this instead: HierarchyManager hm = SessionAccessControl.getHierarchyManager(request, "users"); > > then I used it to create a new node in the users repository. ( calling > the > save method ) hm.createContent("/","newUser", ItemType.CONTENT) hm.save(); Philipp Bracher ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/magnolia/developer.html ---------------------------------------------------------------- _____________________________________________________________________ Mensaje analizado y protegido, tecnologia antivirus www.trendmicro.es ___________________________________________________________________________ Este mensaje se dirige exclusivamente a su destinatario y puede contener información privilegiada o confidencial. Si no es vd. el destinatario indicado, queda notificado de que la lectura, utilización, divulgación y/o copia sin autorización está prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción. El correo electrónico vía Internet no permite asegurar la confidencialidad de los mensajes que se transmiten ni su integridad o correcta recepción. Telefónica no asume ninguna responsabilidad por estas circunstancias. This message is intended exclusively for its addressee and may contain information that is CONFIDENTIAL and protected by a professional privilege or whose disclosure is prohibited by law.If you are not the intended recipient you are hereby notified that any read, dissemination, copy or disclosure of this communication is strictly prohibited by law. If this message has been received in error, please immediately notify us via e-mail and delete it. Internet e-mail neither guarantees the confidentiality nor the integrity or proper receipt of the messages sent. Telefónica does not assume any liability for those circumstances. ___________________________________________________________________________ ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/magnolia/developer.html ----------------------------------------------------------------
