jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Angela Schreiber <anch...@adobe.com>
Subject Re: Import export fails for authorizable node
Date Thu, 06 Jan 2011 08:05:54 GMT
> 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

Mime
View raw message