public interface ImportReferenceBehavior
referenceBehavior
parameter in HippoSession#importDereferencedXML
.
When a reference to another node by path or UUID occurs in the import, but the references node itself in not present in either the import data or in the repository
itself, then the value specified by the mergeBehavior governs what should the behavior during import.
The referenceBehavior parameter must be just one of these values.Modifier and Type | Field and Description |
---|---|
static int |
IMPORT_REFERENCE_NOT_FOUND_REMOVE
When a reference to occurs which cannot be resolved, remove the property containing the reference.
|
static int |
IMPORT_REFERENCE_NOT_FOUND_THROW
A missing reference will cause the import to abort by throwing a @{link javax.jcr.RepositoryException} at some time during the import and leave a partial state in the transient state.
|
static int |
IMPORT_REFERENCE_NOT_FOUND_TO_ROOT
When a missing reference occurs, re-target the reference to reference the root of the JCR tree (
/jcr:root ). |
static final int IMPORT_REFERENCE_NOT_FOUND_REMOVE
javax.jcr.ConstrainViolation
will be thrown by either the import method or when the data in the session is being saved.static final int IMPORT_REFERENCE_NOT_FOUND_TO_ROOT
/jcr:root
).static final int IMPORT_REFERENCE_NOT_FOUND_THROW
Copyright © 2007–2019 Hippo B.V. (http://www.onehippo.com). All rights reserved.