Package com.day.cq.replication
Interface ReplicationContentFilter
-
public interface ReplicationContentFilterImplementations ofReplicationContentFilterindicate toContentBuilders whether a given childNodeof a node being activated (e.g. a page or asset) shall be included in the replication content or not. Implementations must be instantiated by their respectiveReplicationContentFilterFactory, the factory registering itself as an OSGi service. For convenience aReplicationContentFilterChainis provided to content builders via the parameterContentBuilder.PARAMETER_CONTENT_FILER_CHAIN.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaccepts(Node node)Indicates whether the givenNodeis to be included in the content of the replication built byContentBuilders.booleanaccepts(Property property)Indicates whether the givenPropertyis to be included in the content of the replication built byContentBuilders.booleanallowsDescent(Node node)Indicates whether theContentBuilders may descend / traverse the children of the givennodefor inclusion in the replication content.java.util.List<java.lang.String>getFilteredPaths()Get theListof paths that have been filtered by this filter.
-
-
-
Method Detail
-
accepts
boolean accepts(Node node)
Indicates whether the givenNodeis to be included in the content of the replication built byContentBuilders.- Parameters:
node- TheNodeto check.- Returns:
trueif this node may be included in the replication content.
-
accepts
boolean accepts(Property property)
Indicates whether the givenPropertyis to be included in the content of the replication built byContentBuilders.- Parameters:
property- ThePropertyto check.- Returns:
trueif this property may be included in the replication content.
-
allowsDescent
boolean allowsDescent(Node node)
Indicates whether theContentBuilders may descend / traverse the children of the givennodefor inclusion in the replication content. If this returnsfalse, the given node itself and its properties are still included in the replication content (ifreturns true and properties are accepted via {@link #accepts(javax.jcr.Property)}.- Parameters:
node- TheNodeto check.- Returns:
trueif the content builder may traverse the children of the given node,falseotherwise.
-
getFilteredPaths
java.util.List<java.lang.String> getFilteredPaths()
Get theListof paths that have been filtered by this filter.- Returns:
- a List of
Strings representing the filtered paths ornullif this is not supported.
-
-