com.day.cq.replication.ReverseReplication Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aem-sdk-api Show documentation
Show all versions of aem-sdk-api Show documentation
The Adobe Experience Manager SDK
The newest version!
/*************************************************************************
* ADOBE CONFIDENTIAL
* ___________________
*
* Copyright 2011 Adobe
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Adobe and its suppliers, if any. The intellectual
* and technical concepts contained herein are proprietary to Adobe
* and its suppliers and are protected by all applicable intellectual
* property laws, including trade secret and copyright laws.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe.
**************************************************************************/
package com.day.cq.replication;
import java.util.HashMap;
import java.util.Map;
/**
* Contains the information obtained from an {@link Agent} that supports
* reverse replication.
*/
public class ReverseReplication {
/**
* Default name of the "outbox item path" attribute.
*/
public static final String PROP_OUTBOX_ITEM_PATH = "outbox.item.path";
/**
* Replication content.
*/
private ReplicationContent content;
/**
* Replication action.
*/
private ReplicationAction action;
/**
* Optional properties
*/
private Map properties;
/**
* Create a new instance of this class.
*
* @param content
* replication content
* @param action
* replication action
*/
public ReverseReplication(ReplicationContent content,
ReplicationAction action) {
this.content = content;
this.action = action;
}
/**
* Return the replication content.
*
* @return replication content
*/
public ReplicationContent getContent() {
return content;
}
/**
* Return the replication action.
*
* @return replication action
*/
public ReplicationAction getAction() {
return action;
}
/**
* Returns optional properties
* @return optional properties.
*/
public Map getProperties() {
if (properties == null) {
properties = new HashMap();
}
return properties;
}
}