public interface ProtectedPropertyImporter extends ProtectedItemImporter
ProtectedPropertyImporter
is in charge of importing single
properties with a protected PropertyDefinition
.PARAM_IMPORT_BEHAVIOR
Modifier and Type | Method and Description |
---|---|
boolean |
handlePropInfo(Tree parent,
PropInfo protectedPropInfo,
PropertyDefinition def)
Handles a single protected property.
|
void |
propertiesCompleted(Tree protectedParent)
Informs this importer that all properties to be imported below
protectedParent have been processed by the importer. |
init, processReferences
boolean handlePropInfo(Tree parent, PropInfo protectedPropInfo, PropertyDefinition def) throws RepositoryException
parent
- The affected parent node.protectedPropInfo
- The PropInfo
to be imported.def
- The property definition determined by the importer that
calls this method.true
If the property could be successfully imported;
false
otherwise.javax.jcr.RepositoryException
- If an error occurs.RepositoryException
void propertiesCompleted(Tree protectedParent) throws java.lang.IllegalStateException, ConstraintViolationException, RepositoryException
protectedParent
have been processed by the importer. If this importer
did not import any protected properties this method doesn't do anything.
Otherwise it may perform some validation and cleanup required based
on the set of protected properties handled by this importer.protectedParent
- The protected parent tree.java.lang.IllegalStateException
- If this method is called in an illegal state.javax.jcr.nodetype.ConstraintViolationException
- If the set of
properties was incomplete and the importer was not able to fix the problem.RepositoryException
- If another error occurs.ConstraintViolationException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"