Package com.day.cq.replication
Interface ContentBuilder
- 
@ConsumerType public interface ContentBuilderA ContentBuilder assembles the data for the replication. A content handler needs to be registered with aPROPERTY_NAMEservice registration property. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPARAMETER_CONTENT_FILER_CHAINThis parameter is set when the content builder is invoked by a replication agent.static java.lang.StringPROPERTY_NAME 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReplicationContentcreate(javax.jcr.Session session, ReplicationAction action, ReplicationContentFactory contentFactory)Create the replication content.ReplicationContentcreate(javax.jcr.Session session, ReplicationAction action, ReplicationContentFactory contentFactory, java.util.Map<java.lang.String,java.lang.Object> parameters)Create the replication content.java.lang.StringgetName()Returns the name of this content builder.java.lang.StringgetTitle()Returns the title of this content builder. 
 - 
 
- 
- 
Field Detail
- 
PROPERTY_NAME
static final java.lang.String PROPERTY_NAME
- See Also:
 - Constant Field Values
 
 
- 
PARAMETER_CONTENT_FILER_CHAIN
static final java.lang.String PARAMETER_CONTENT_FILER_CHAIN
This parameter is set when the content builder is invoked by a replication agent. It contains aReplicationContentFilterChainto be used byContentBuilders to filter content for exclusion from the replication content being built. This parameter is optional and might be null.- Since:
 - 5.14
 
 
 - 
 
- 
Method Detail
- 
create
ReplicationContent create(javax.jcr.Session session, ReplicationAction action, ReplicationContentFactory contentFactory) throws ReplicationException
Create the replication content. If this content builder does not create content for the actual replication (e.g. for a delete replication), the content builder should returnReplicationContent.VOID.- Parameters:
 session- session to use to access the repositoryaction- The replication action.contentFactory- the factory for creating binary content objects.- Returns:
 - A newly created replication content or 
ReplicationContent.VOID. - Throws:
 ReplicationException- if an error during assembly of the content occurs.
 
- 
create
ReplicationContent create(javax.jcr.Session session, ReplicationAction action, ReplicationContentFactory contentFactory, java.util.Map<java.lang.String,java.lang.Object> parameters) throws ReplicationException
Create the replication content. If this content builder does not create content for the actual replication (e.g. for a delete replication), the content builder should returnReplicationContent.VOID.- Parameters:
 session- session to use to access the repositoryaction- The replication action.contentFactory- the factory for creating binary content objects.parameters- additional parameters needed for implementation specific purposes- Returns:
 - A newly created replication content or 
ReplicationContent.VOID. - Throws:
 ReplicationException- if an error during assembly of the content occurs.
 
- 
getName
java.lang.String getName()
Returns the name of this content builder.- Returns:
 - the name of this content builder.
 - Since:
 - 5.3
 
 
- 
getTitle
java.lang.String getTitle()
Returns the title of this content builder.- Returns:
 - the title.
 - Since:
 - 5.3
 
 
 - 
 
 -