public interface ProtectedItemImporter
ProtectedNodeImporter
and ProtectedPropertyImporter
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PARAM_IMPORT_BEHAVIOR
Parameter name for the import behavior configuration option.
|
Modifier and Type | Method and Description |
---|---|
boolean |
init(Session session,
Root root,
NamePathMapper namePathMapper,
boolean isWorkspaceImport,
int uuidBehavior,
ReferenceChangeTracker referenceTracker,
SecurityProvider securityProvider)
Initializes the importer.
|
void |
processReferences()
Post processing protected reference properties underneath a protected
or non-protected parent node.
|
static final java.lang.String PARAM_IMPORT_BEHAVIOR
boolean init(Session session, Root root, NamePathMapper namePathMapper, boolean isWorkspaceImport, int uuidBehavior, ReferenceChangeTracker referenceTracker, SecurityProvider securityProvider)
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 the javax.jcr.Workspace
or from the
javax.jcr.Session
. 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.true
if this importer was successfully initialized and
is able to handle an import with the given setup; false
otherwise.void processReferences() throws RepositoryException
javax.jcr.RepositoryException
- If an error occurs.RepositoryException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"