1 Reply Latest reply on Apr 22, 2013 1:07 PM by rhauch

    set repository NODE_TYPE_MANAGEMENT_SAME_NAME_SIBLINGS_SUPPORTED FALSE

    fazileh

      Hi,I'm newbie in modeshape and I want to have some nodes with unique name, and I found if set false to NODE_TYPE_MANAGEMENT_SAME_NAME_SIBLINGS_SUPPORTED repository descriptor, it will be. but there is no specified method.

      I will be appreciate if any body help me.

       

      Thnak you

        • 1. Re: set repository NODE_TYPE_MANAGEMENT_SAME_NAME_SIBLINGS_SUPPORTED FALSE
          rhauch

          There is no way to change the value of that standard descriptor. It is automatically set by ModeShape to 'true' because it merely describes that ModeShape does supports same-name-siblings (SNS) within the repository.

           

          Now, if you do not want to use SNS in your repository, then you can either enforce that within your application or you can have ModeShape enforce it via node types. Each node type's child node definitions specify whether they allow SNS, so the absense of the 'sns' attribute on the child node definition means that SNS are not supported. Some built-in node types (like 'nt:unstructured') allow SNS, while others (like 'nt:folder' and 'nt:file') do not. You can always define and use for your own content custom node types that don't allow SNS.