> hi,
>    When a domain.xml file is read by the application and the namespace is
> initilaized is all the node information from the <data> element taken and
> inserted into the appropriate store.For example if the domain.xml file has
> entries as follows
>
>  <data>
>
>       <objectnode classname="org.apache.slide.structure.SubjectNode"
> uri="/">
>
>         <permission action="/actions" subject="/users/root"/>
>
>         <!-- /users represents the unauthenticated user -->
>
>         <objectnode classname="org.apache.slide.structure.SubjectNode"
>          uri="/users">
>
>           <!-- /users/root represents the administrator -->
>
>           <objectnode classname="org.apache.slide.structure.SubjectNode"
>            uri="/users/root">
>           </objectnode>
>
>           <!-- /users/guest represents an authenticated guest user -->
>
>           <objectnode classname="org.apache.slide.structure.SubjectNode"
>            uri="/users/guest">
>           </objectnode>
>
>         </objectnode>
>
>         <objectnode classname="org.apache.slide.structure.ActionNode"
>          uri="/actions">
>         </objectnode>
>
>       </objectnode>
>
>     </data>
>
> are all the object nodes like "/" , "/actions"  ,"/users" and their
> properties,permissions etc automatically inserted into the appropriate
store
> or should an application have to call structure.create() methods to
> explicitly make entries for them in the store

Yes, the data is entered into the store(s), but it will stop as soon as it
finds a node which exists.

I don't like it very much that way, and I plan to change it to : make sure
the namespace has these nodes (with the specified properties). I think it
would be a more useful and predictable mechanism.

Remy

Reply via email to