|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.day.cq.replication.ReplicationAction
public class ReplicationAction
The ReplicationAction class is fired during a replication. A replication event is fired when - the replication is started (queued) - the replication is finished (the replication action) - the replication failed - the replication is retried (requeued)
| Nested Class Summary | |
|---|---|
static class |
ReplicationAction.Status
|
| Field Summary | |
|---|---|
static String |
EVENT_TOPIC
Event topic for replication status events. |
static String |
JOB_TOPIC
Event topic for replication job events. |
static String |
PROPERTY_CHILD_PATHS
The OSGi event property containing the child paths (optional) |
static String |
PROPERTY_MESSAGE
The OSGi event property containing the message (optional) |
static String |
PROPERTY_MODIFICATION_DATE
The OSGi event property containing the modification date |
static String |
PROPERTY_PATH
The OSGi event property containing the path |
static String |
PROPERTY_REPLICATE_TREE
The OSGi event property containing the replicate tree flag (optional) |
static String |
PROPERTY_REVISION
The OSGi event property containing the replicated revision (optional) |
static String |
PROPERTY_STATUS
The OSGi event property containing the status |
static String |
PROPERTY_SYNDICATION_AGENT
The OSGi event property containing the syndication agent (optional) |
static String |
PROPERTY_TYPE
The OSGi event property containing replication action |
static String |
PROPERTY_USER_ID
The OSGi event property containing the user id |
| Constructor Summary | |
|---|---|
ReplicationAction(ReplicationAction action,
ReplicationAction.Status status,
String message)
Constructs a new ReplicationAction. |
|
ReplicationAction(ReplicationAction action,
ReplicationAction.Status status,
String syndicationAgentName,
List<String> paths)
Constructs a new ReplicationAction. |
|
ReplicationAction(ReplicationAction action,
ReplicationActionType type,
ReplicationAction.Status status,
String message)
Constructs a new ReplicationAction. |
|
ReplicationAction(ReplicationActionType type,
ReplicationAction.Status status,
String path,
String userId,
Date modificationDate,
boolean replicateTree,
String syndicationAgent,
String message,
String revision)
Constructs a new ReplicationAction |
|
ReplicationAction(ReplicationActionType type,
ReplicationAction.Status status,
String path,
String userId,
ReplicationOptions options)
Constructs a new ReplicationAction |
|
| Method Summary | |
|---|---|
org.apache.sling.event.EventPropertiesMap |
createProperties()
Create the properties. |
static ReplicationAction |
fromEvent(org.osgi.service.event.Event evt)
Convert an OSGi event to a replication event. |
List<String> |
getChildPaths()
Return the list of child paths if this is a tree replication. |
String |
getMessage()
Return the optional message. |
Date |
getModificationDate()
Returns the modification date. |
String |
getPath()
Returns the path |
String |
getRevision()
Returns the revision |
ReplicationAction.Status |
getStatus()
Returns the status |
String |
getSyndicationAgentName()
Return the name of the replication agent. |
ReplicationActionType |
getType()
Returns the action type |
String |
getUserId()
Returns the user id. |
boolean |
isReplicateTree()
Is this a tree replication? |
org.osgi.service.event.Event |
toEvent()
Create an OSGi event out of the replication event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String EVENT_TOPIC
public static final String JOB_TOPIC
public static final String PROPERTY_CHILD_PATHS
public static final String PROPERTY_MODIFICATION_DATE
public static final String PROPERTY_USER_ID
public static final String PROPERTY_PATH
public static final String PROPERTY_TYPE
public static final String PROPERTY_SYNDICATION_AGENT
public static final String PROPERTY_MESSAGE
public static final String PROPERTY_REPLICATE_TREE
public static final String PROPERTY_REVISION
public static final String PROPERTY_STATUS
| Constructor Detail |
|---|
public ReplicationAction(ReplicationActionType type,
ReplicationAction.Status status,
String path,
String userId,
ReplicationOptions options)
type - The replication type.path - The path of the page to replicate.userId - The user who started the replication.options - The options for the replicationstatus - the action status
public ReplicationAction(ReplicationActionType type,
ReplicationAction.Status status,
String path,
String userId,
Date modificationDate,
boolean replicateTree,
String syndicationAgent,
String message,
String revision)
type - The replication type.status - the action statuspath - The path of the page to replicate.userId - The user who started the replication.modificationDate - The date when the replication occured.replicateTree - Is this a tree replication.
public ReplicationAction(ReplicationAction action,
ReplicationAction.Status status,
String message)
action - The replication action.status - The statusmessage - The syndication message (log).
public ReplicationAction(ReplicationAction action,
ReplicationActionType type,
ReplicationAction.Status status,
String message)
action - The replication action.type - The replication action type.status - The statusmessage - The syndication message (log).
public ReplicationAction(ReplicationAction action,
ReplicationAction.Status status,
String syndicationAgentName,
List<String> paths)
action - The replication action.status - The statussyndicationAgentName - The syndication agent.paths - The paths for the replication.| Method Detail |
|---|
public ReplicationActionType getType()
public String getPath()
public ReplicationAction.Status getStatus()
public String getRevision()
public Date getModificationDate()
public String getUserId()
public boolean isReplicateTree()
public String getSyndicationAgentName()
public List<String> getChildPaths()
public String getMessage()
public static ReplicationAction fromEvent(org.osgi.service.event.Event evt)
evt - The OSGi event
public org.apache.sling.event.EventPropertiesMap createProperties()
public org.osgi.service.event.Event toEvent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||