Skip to content
AI & Agents
Skill

/replication-api

Use the AEM 6.5 LTS Replication API for programmatic content activation, deactivation, and replication status management

From plugin
adobe-skills
162160 skills6 agents4 MCP
Install
$ npx -y skills add adobe/skills --skill replication-api --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/replication-api

Context preview

The summary Claude sees to decide when to auto-load this skill.

Use the AEM 6.5 LTS Replication API for programmatic content activation, deactivation, and replication status management

SKILL.md

replication-api.SKILL.md
name: replication-api
description: Use the AEM 6.5 LTS Replication API for programmatic content activation, deactivation, and replication status management
license: Apache-2.0

AEM 6.5 LTS Replication API

This skill provides comprehensive guidance on using the official Adobe Experience Manager 6.5 LTS Replication API for programmatic replication operations. The API enables custom code to activate, deactivate, and manage content distribution workflows.

When to Use This Skill

Use this skill when you need to:

  • Programmatically activate/deactivate content from custom code
  • Build custom replication workflows in OSGi services or servlets
  • Integrate replication with external systems
  • Implement custom replication triggers and automation
  • Check replication status in application logic
  • Create custom content distribution tools
  • Bulk replicate content via scripts
  • Implement conditional replication logic

Prerequisites

  • AEM 6.5 LTS environment with configured replication agents
  • Java development environment for AEM
  • Maven project with AEM dependencies
  • Understanding of OSGi services and Sling ResourceResolver
  • Configured replication agents (see `configure-replication-agent` skill)
  • Service user or user session with replication permissions

Official API Documentation

All public replication APIs are documented in the official Adobe AEM 6.5 LTS JavaDoc:

  • **Package Summary (Complete API Reference)**: [https://developer.adobe.com/experience-manager/reference-materials/6-5-lts/javadoc/com/day/cq/replication/package-summary.html](https://developer.adobe.com/experience-manager/reference-materials/6-5-lts/javadoc/com/day/cq/replication/package-summary.html)
  • **Replicator Interface**: [https://developer.adobe.com/experience-manager/reference-materials/6-5-lts/javadoc/com/day/cq/replication/Replicator.html](https://developer.adobe.com/experience-manager/reference-materials/6-5-lts/javadoc/com/day/cq/replication/Replicator.html)
  • **AgentManager Interface**: [https://developer.adobe.com/experience-manager/reference-materials/6-5-lts/javadoc/com/day/cq/replication/AgentManager.html](https://developer.adobe.com/experience-manager/reference-materials/6-5-lts/javadoc/com/day/cq/replication/AgentManager.html)
  • **ReplicationQueue Interface**: [https://developer.adobe.com/experience-manager/reference-materials/6-5-lts/javadoc/com/day/cq/replication/ReplicationQueue.html](https://developer.adobe.com/experience-manager/reference-materials/6-5-lts/javadoc/com/day/cq/replication/ReplicationQueue.html)
  • **ReplicationListener Interface**: [https://developer.adobe.com/experience-manager/reference-materials/6-5-lts/javadoc/com/day/cq/replication/ReplicationListener.html](https://developer.adobe.com/experience-manager/reference-materials/6-5-lts/javadoc/com/day/cq/replication/ReplicationListener.html)
  • **AgentFilter Interface**: [https://developer.adobe.com/experience-manager/reference-materials/6-5-lts/javadoc/com/day/cq/replication/AgentFilter.html](https://developer.adobe.com/experience-manager/reference-materials/6-5-lts/javadoc/com/day/cq/replication/AgentFilter.html)
  • **Agent Interface**: [https://developer.adobe.com/experience-manager/reference-materials/6-5-lts/javadoc/com/day/cq/replication/Agent.html](https://developer.adobe.com/experience-manager/reference-materials/6-5-lts/javadoc/com/day/cq/replication/Agent.html)
  • **ReplicationAction Class**: [https://developer.adobe.com/experience-manager/reference-materials/6-5-lts/javadoc/com/day/cq/replication/ReplicationAction.html](https://developer.adobe.com/experience-manager/reference-materials/6-5-lts/javadoc/com/day/cq/replication/ReplicationAction.html)
  • **ReplicationOptions Class**: [https://developer.adobe.com/experience-manager/reference-materials/6-5-lts/javadoc/com/day/cq/replication/ReplicationOptions.html](https://developer.adobe.com/experience-manager/reference-materials/6-5-lts/javadoc/com/day/cq/replication/ReplicationOptions.html)
  • **ReplicationStatus Interface**: [https://developer.adobe.com/experience-manager/reference-materials/6-5-lts/javadoc/com/day/cq/replication/ReplicationStatus.html](https://developer.adobe.com/experience-manager/reference-materials/6-5-lts/javadoc/com/day/cq/replication/ReplicationStatus.html)

Core API Components

1. Replicator Interface

The primary service for managing replication operations.

**Service Type:** OSGi Service **Package:** `com.day.cq.replication` **Interface:** `com.day.cq.replication.Replicator`

2. ReplicationActionType Enum

Defines the type of replication operation:

| Type | Purpose | Effect | |------|---------|--------| | `ACTIVATE` | Publish content | Sends to Publish instances | | `DEACTIVATE` | Unpublish content | Removes from Publish | | `DELETE` | Delete from Publish | Permanent removal | | `TEST` | Test replication | Verifies connectivity | | `REVERSE` | Reverse replicate | Publish → Author | | `INTERNAL_POLL` | Internal polling | System use |

3. ReplicationOptions Class

Encapsulates optional parameters for replication requests.

4. ReplicationStatus Interface

Provides status information about replicated content.

Maven Dependencies

The Replication API is provided by the AEM uber-jar. Add to your `pom.xml`:

<dependency>
    <groupId>com.adobe.aem</groupId>
    <artifactId>uber-jar</artifactId>
    <classifier>apis</classifier>
    <scope>provided</scope>
</dependency>

The uber-jar version should match your AEM 6.5 LTS installation. The Replication API (`com.day.cq.replication.*`) is included in the uber-jar and available at runtime.

Replicator Interface Methods

Method 1: replicate(Session, ReplicationActionType, String)

**Signature:**

void replicate(Session session, 
               ReplicationActionType type, 
               String path) 
throws ReplicationException

**Parameters:**

  • `session` - JCR session (user permissions determine access)
  • `type` - ReplicationActionType (ACTIVATE, DEAC
Read more
Ships withadobe-skills

Repository of Adobe skills for AI coding agents.

Get the whole plugin

Other skills on adobe-skills.