Interface ContentBuilder


  • @ConsumerType
    public interface ContentBuilder
    A ContentBuilder assembles the data for the replication. A content handler needs to be registered with a PROPERTY_NAME service registration property.
    • Field Detail

      • 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 a ReplicationContentFilterChain to be used by ContentBuilders 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​(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 return ReplicationContent.VOID.
        Parameters:
        session - session to use to access the repository
        action - 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