Also, another related question:
I understand that jcr:system cannot be exported/imported... can the
"jcr:security" and "jcr:policy" be exported/imported?

both ac content and user/group content can be imported by
using Session.importXml (currently workspace import isn't supported
yet). but you have to make sure that your workspace configuration is
properly set as the default behavior is that protected items
are ignored during session import.

example:

<Workspace>
   [...]
   <!--
    XML Import configuration of the workspace
   -->
   <Import>
<ProtectedItemImporter class="org.apache.jackrabbit.core.xml.AccessControlImporter"/> <ProtectedItemImporter class="org.apache.jackrabbit.core.security.user.UserImporter">
        <param name="importBehavior" value="besteffort"/>
        </ProtectedItemImporter>
   </Import>
</Workspace>

hope that helps
angela

Reply via email to