Package com.day.cq.replication
Interface ReplicationContentFilter
public interface ReplicationContentFilter
Implementations of
ReplicationContentFilter indicate to ContentBuilders whether a given child
Node of 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 respective ReplicationContentFilterFactory, the factory
registering itself as an OSGi service.
For convenience a ReplicationContentFilterChain is provided to content builders
via the parameter ContentBuilder.PARAMETER_CONTENT_FILER_CHAIN.-
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether the givenNodeis to be included in the content of the replication built byContentBuilders.booleanIndicates 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.Get theListof paths that have been filtered by this filter.
-
Method Details
-
accepts
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
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
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 #accepts(javax.jcr.Property).- Parameters:
node- TheNodeto check.- Returns:
trueif the content builder may traverse the children of the given node,falseotherwise.
-
getFilteredPaths
Get theListof paths that have been filtered by this filter.- Returns:
- a invalid input: '{@link /*missing*/}' List of
Strings representing the filtered paths ornullif this is not supported.
-