Class FlushAggregateHandler

java.lang.Object
com.adobe.acs.commons.replication.dispatcher.FlushAggregateHandler
All Implemented Interfaces:
com.day.cq.replication.AggregateHandler

public class FlushAggregateHandler extends Object implements com.day.cq.replication.AggregateHandler
Implements an aggregate handler that detects hierarchy nodes as aggregate root. Work-around for ACS AEM Commons issue #3045.
  • Constructor Details

    • FlushAggregateHandler

      public FlushAggregateHandler()
  • Method Details

    • isAggregateRoot

      public boolean isAggregateRoot(javax.jcr.Node node)
      Specified by:
      isAggregateRoot in interface com.day.cq.replication.AggregateHandler
      Returns:
      true if the node is a hierarchy node.
    • prepareForReplication

      public List<String> prepareForReplication(javax.jcr.Session session, com.day.cq.replication.ReplicationActionType type, String path) throws com.day.cq.replication.ReplicationException
      Returns the provided path.
      Specified by:
      prepareForReplication in interface com.day.cq.replication.AggregateHandler
      Throws:
      com.day.cq.replication.ReplicationException
    • processForReplication

      public void processForReplication(javax.jcr.Session session, com.day.cq.replication.ReplicationAction action) throws com.day.cq.replication.ReplicationException
      Specified by:
      processForReplication in interface com.day.cq.replication.AggregateHandler
      Throws:
      com.day.cq.replication.ReplicationException