SLING-4367: trigger package imported event after succesful import
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1655640 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/sling/distribution/event/DistributionEventType.java b/src/main/java/org/apache/sling/distribution/event/DistributionEventType.java
index 345083a..a144842 100644
--- a/src/main/java/org/apache/sling/distribution/event/DistributionEventType.java
+++ b/src/main/java/org/apache/sling/distribution/event/DistributionEventType.java
@@ -39,19 +39,9 @@
AGENT_PACKAGE_DISTRIBUTED,
/**
- * event for agent created
+ * event for package imported
*/
- AGENT_CREATED,
-
- /**
- * event for agent modified
- */
- AGENT_MODIFIED,
-
- /**
- * event for agent deleted
- */
- AGENT_DELETED;
+ IMPORTER_PACKAGE_IMPORTED;
/**
* common event topic base for distribution events
@@ -59,6 +49,27 @@
public static final String EVENT_TOPIC_BASE = "org/apache/sling/distribution";
/**
+ * property containing the name of component generating the event
+ */
+ public static final String PROPERTY_DISTRIBUTION_COMPONENT_NAME = "distribution.component.name";
+
+
+ /**
+ * property containing the kind of the component generating the event
+ */
+ public static final String PROPERTY_DISTRIBUTION_COMPONENT_KIND= "distribution.component.kind";
+
+ /**
+ * property containing the type of the distribution request
+ */
+ public static final String PROPERTY_DISTRIBUTION_TYPE = "distribution.type";
+
+ /**
+ * property containing the type of the distribution paths
+ */
+ public static final String PROPERTY_DISTRIBUTION_PATHS= "distribution.paths";
+
+ /**
* get the event topic for this event type
*
* @return the event topic