Interface ProtectedItemImporter
- 
- All Known Subinterfaces:
 ProtectedNodeImporter,ProtectedPropertyImporter
public interface ProtectedItemImporterBase interface forProtectedNodeImporterandProtectedPropertyImporter. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPARAM_IMPORT_BEHAVIORParameter name for the import behavior configuration option. 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleaninit(@NotNull javax.jcr.Session session, @NotNull Root root, @NotNull NamePathMapper namePathMapper, boolean isWorkspaceImport, int uuidBehavior, @NotNull ReferenceChangeTracker referenceTracker, @NotNull SecurityProvider securityProvider)Initializes the importer.voidprocessReferences()Post processing protected reference properties underneath a protected or non-protected parent node. 
 - 
 
- 
- 
Field Detail
- 
PARAM_IMPORT_BEHAVIOR
static final java.lang.String PARAM_IMPORT_BEHAVIOR
Parameter name for the import behavior configuration option.- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
init
boolean init(@NotNull @NotNull javax.jcr.Session session, @NotNull @NotNull Root root, @NotNull @NotNull NamePathMapper namePathMapper, boolean isWorkspaceImport, int uuidBehavior, @NotNull @NotNull ReferenceChangeTracker referenceTracker, @NotNull @NotNull SecurityProvider securityProvider)Initializes the importer.- Parameters:
 session- The session that is running the import.root- The root associated with the import.namePathMapper- The name/path mapper used to translate names between their jcr and oak form.isWorkspaceImport- A flag indicating whether the import has been started from theWorkspaceor from theSession. Implementations are free to implement both types of imports or only a single one. For example it doesn't make sense to allow for importing versions along with a Session import as version operations are required to never leave transient changes behind.uuidBehavior- The uuid behavior specified with the import call.referenceTracker- The uuid/reference helper.securityProvider- The security provider.- Returns:
 trueif this importer was successfully initialized and is able to handle an import with the given setup;falseotherwise.
 
- 
processReferences
void processReferences() throws javax.jcr.RepositoryExceptionPost processing protected reference properties underneath a protected or non-protected parent node. If the parent is protected it has been handled by this importer already.- Throws:
 javax.jcr.RepositoryException- If an error occurs.
 
 - 
 
 -