Interface Aggregator
- All Superinterfaces:
Dumpable
Defines an artifact aggregator. It provides the
Aggregate with the
respective artifacts depending on the implementation and content.-
Method Summary
Modifier and TypeMethodDescriptioncreateArtifacts(Aggregate aggregate) Creates the artifact set of the content aggregation.booleanReturnstrueif this aggregator includes the entire node sub tree into the serialization;falseif it does not do a complete serialization and allows child aggregations (eg: nt:unstructured).booleanChecks if the given item is included in the content aggregation relative to the respective aggregator rootbooleanChecks if the given property is included in the content aggregation relative to the respective aggregator root. this is a speed optimized variant so that property.getParent() does not need to be called.booleanChecks if this aggregator is the default aggregator.booleanChecks if this aggregator can handles the given nodeRemoves the content for this aggregation.
-
Method Details
-
createArtifacts
Creates the artifact set of the content aggregation.- Parameters:
aggregate- the aggregate from which the artifacts are created.- Returns:
- the artifact set of the content aggregation.
- Throws:
RepositoryException- if an error occurs.
-
includes
Checks if the given item is included in the content aggregation relative to the respective aggregator root- Parameters:
root- the root of the aggregation.node- the node to checkpath- the path of the node ornull- Returns:
trueif the node is included;falseotherwise.- Throws:
RepositoryException- if an error occurs.
-
includes
Checks if the given property is included in the content aggregation relative to the respective aggregator root. this is a speed optimized variant so that property.getParent() does not need to be called.- Parameters:
root- the root of the aggregation.parent- the parent node of the property to checkproperty- the property to checkpath- the path of the property ornull- Returns:
trueif the node is included;falseotherwise.- Throws:
RepositoryException- if an error occurs.
-
matches
Checks if this aggregator can handles the given node- Parameters:
node- the node to checkpath- the path of the node ornull- Returns:
trueif this aggregator will handle the node;falseotherwise.- Throws:
RepositoryException- if an error occurs.
-
hasFullCoverage
boolean hasFullCoverage()Returnstrueif this aggregator includes the entire node sub tree into the serialization;falseif it does not do a complete serialization and allows child aggregations (eg: nt:unstructured).- Returns:
trueif this aggregator aggregates all children.
-
isDefault
boolean isDefault()Checks if this aggregator is the default aggregator.- Returns:
trueif this aggregator is the default aggregator.
-
remove
Removes the content for this aggregation. If this aggregator allows child aggregations it may fail if it's not possible to remove only parts of the content. Ifrecursiveistrueit must not fail due to that reason, though.The aggregator may become invalid after the removal of the content and subsequent calls may throw an exception.
- Parameters:
node- the node of the aggregation to removerecursive-trueif all content is to be removed.trySave- iftruethe aggregator tries to save the modified content.- Returns:
- ImportInfo infos about the modification
- Throws:
RepositoryException- if an error occurs.
-