Interface ProtectedPropertyImporter
-
- All Superinterfaces:
ProtectedItemImporter
public interface ProtectedPropertyImporter extends ProtectedItemImporter
ProtectedPropertyImporteris in charge of importing single properties with a protectedPropertyDefinition.
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.oak.spi.xml.ProtectedItemImporter
PARAM_IMPORT_BEHAVIOR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhandlePropInfo(@NotNull Tree parent, @NotNull PropInfo protectedPropInfo, @NotNull javax.jcr.nodetype.PropertyDefinition def)Handles a single protected property.voidpropertiesCompleted(@NotNull Tree protectedParent)Informs this importer that all properties to be imported belowprotectedParenthave been processed by the importer.-
Methods inherited from interface org.apache.jackrabbit.oak.spi.xml.ProtectedItemImporter
init, processReferences
-
-
-
-
Method Detail
-
handlePropInfo
boolean handlePropInfo(@NotNull @NotNull Tree parent, @NotNull @NotNull PropInfo protectedPropInfo, @NotNull @NotNull javax.jcr.nodetype.PropertyDefinition def) throws javax.jcr.RepositoryExceptionHandles a single protected property.- Parameters:
parent- The affected parent node.protectedPropInfo- ThePropInfoto be imported.def- The property definition determined by the importer that calls this method.- Returns:
trueIf the property could be successfully imported;falseotherwise.- Throws:
javax.jcr.RepositoryException- If an error occurs.
-
propertiesCompleted
void propertiesCompleted(@NotNull @NotNull Tree protectedParent) throws java.lang.IllegalStateException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryExceptionInforms this importer that all properties to be imported belowprotectedParenthave 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.- Parameters:
protectedParent- The protected parent tree.- Throws:
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.javax.jcr.RepositoryException- If another error occurs.
-
-