Package com.day.cq.replication
Interface ReplicationContentFilter
-
public interface ReplicationContentFilter
Implementations ofReplicationContentFilter
indicate toContentBuilder
s whether a given childNode
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 respectiveReplicationContentFilterFactory
, the factory registering itself as an OSGi service. For convenience aReplicationContentFilterChain
is provided to content builders via the parameterContentBuilder.PARAMETER_CONTENT_FILER_CHAIN
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
accepts(Node node)
Indicates whether the givenNode
is to be included in the content of the replication built byContentBuilder
s.boolean
accepts(Property property)
Indicates whether the givenProperty
is to be included in the content of the replication built byContentBuilder
s.boolean
allowsDescent(Node node)
Indicates whether theContentBuilder
s may descend / traverse the children of the givennode
for inclusion in the replication content.java.util.List<java.lang.String>
getFilteredPaths()
Get theList
of paths that have been filtered by this filter.
-
-
-
Method Detail
-
accepts
boolean accepts(Node node)
Indicates whether the givenNode
is to be included in the content of the replication built byContentBuilder
s.- Parameters:
node
- TheNode
to check.- Returns:
true
if this node may be included in the replication content.
-
accepts
boolean accepts(Property property)
Indicates whether the givenProperty
is to be included in the content of the replication built byContentBuilder
s.- Parameters:
property
- TheProperty
to check.- Returns:
true
if this property may be included in the replication content.
-
allowsDescent
boolean allowsDescent(Node node)
Indicates whether theContentBuilder
s may descend / traverse the children of the givennode
for 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
- TheNode
to check.- Returns:
true
if the content builder may traverse the children of the given node,false
otherwise.
-
getFilteredPaths
java.util.List<java.lang.String> getFilteredPaths()
Get theList
of paths that have been filtered by this filter.- Returns:
- a List of
String
s representing the filtered paths ornull
if this is not supported.
-
-