0
votes

I am developing an apache sling WCMS. I export a subtree of the repository contents to an xml file using session.exportSystemView(...) and it works perfectly.

When I restore the xml file, using session.ImportXML(...) all of data back completely except access control entries set on the nodes in the subtree and jcr:policy nodes have no child.

I want to know how to restore all of data with their jcr policies.

1

1 Answers

0
votes

My problem solved by adding ProtectedNodeImporter configuration to workspace.xml as follow:

<?xml version="1.0" encoding="UTF-8"?>
<Workspace name="default">
  ....

    <Import>
        <ProtectedNodeImporter class="org.apache.jackrabbit.core.xml.AccessControlImporter"/>
    </Import>
</Workspace>