Author: bpapez
Date: Tue Aug 7 12:31:23 2007
New Revision: 18150
URL: https://svndev.jahia.net/websvn/listing.php?sc=3D1&rev=3D18150&repname=
=3Djahia
Log:
Implement missing event listener methods
Modified:
branches/JAHIA-5-0-SP-BRANCH/core/src/java/org/jahia/data/events/JahiaE=
ventListener.java
branches/JAHIA-5-0-SP-BRANCH/core/src/java/org/jahia/data/events/JahiaE=
ventListenerInterface.java
branches/JAHIA-5-0-SP-BRANCH/core/src/java/org/jahia/services/events/Gr=
oovyEventListener.java
branches/JAHIA-5-0-SP-BRANCH/core/src/java/org/jahia/services/events/JS=
PEventListener.java
Modified: branches/JAHIA-5-0-SP-BRANCH/core/src/java/org/jahia/data/events/=
JahiaEventListener.java
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/branches/JAHIA-5-0-SP=
-BRANCH/core/src/java/org/jahia/data/events/JahiaEventListener.java&rev=3D1=
8150&repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/JAHIA-5-0-SP-BRANCH/core/src/java/org/jahia/data/events/JahiaE=
ventListener.java (original)
+++ branches/JAHIA-5-0-SP-BRANCH/core/src/java/org/jahia/data/events/JahiaE=
ventListener.java Tue Aug 7 12:31:23 2007
@@ -56,6 +56,8 @@
*/
public void beforeContainerActivation( JahiaEvent je ){ return;}
=
+ public void containerValidation(JahiaEvent je) { return; }
+ public void addContainerEngineAfterSave( JahiaEvent je ) { return; }
public void addContainerEngineBeforeSave( JahiaEvent je ) { return; }
public void addContainerEngineAfterInit( JahiaEvent je ) { return; }
=
Modified: branches/JAHIA-5-0-SP-BRANCH/core/src/java/org/jahia/data/events/=
JahiaEventListenerInterface.java
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/branches/JAHIA-5-0-SP=
-BRANCH/core/src/java/org/jahia/data/events/JahiaEventListenerInterface.jav=
a&rev=3D18150&repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/JAHIA-5-0-SP-BRANCH/core/src/java/org/jahia/data/events/JahiaE=
ventListenerInterface.java (original)
+++ branches/JAHIA-5-0-SP-BRANCH/core/src/java/org/jahia/data/events/JahiaE=
ventListenerInterface.java Tue Aug 7 12:31:23 2007
@@ -54,7 +54,9 @@
* @param je
*/
public void beforeContainerActivation( JahiaEvent je );
-
+ public void containerValidation(JahiaEvent je);
+ =
+ public void addContainerEngineAfterSave( JahiaEvent je ); =
public void addContainerEngineBeforeSave( JahiaEvent je );
public void addContainerEngineAfterInit( JahiaEvent je );
=
Modified: branches/JAHIA-5-0-SP-BRANCH/core/src/java/org/jahia/services/eve=
nts/GroovyEventListener.java
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/branches/JAHIA-5-0-SP=
-BRANCH/core/src/java/org/jahia/services/events/GroovyEventListener.java&re=
v=3D18150&repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/JAHIA-5-0-SP-BRANCH/core/src/java/org/jahia/services/events/Gr=
oovyEventListener.java (original)
+++ branches/JAHIA-5-0-SP-BRANCH/core/src/java/org/jahia/services/events/Gr=
oovyEventListener.java Tue Aug 7 12:31:23 2007
@@ -35,37 +35,44 @@
import java.util.Map;
=
/**
- * <p>Title: A Jahia Event Listener that dispatches to Groovy script files=
</p>
- * <p>Description: This event listeners allows the use of Groovy script fi=
les as
- * event listeners, allowing for customizations in a more script-like way
- * than having to compile actual code. </p>
- * <p>Copyright: Copyright (c) 2006</p>
- * <p>Company: Jahia Ltd</p>
- *
+ * <p>
+ * Title: A Jahia Event Listener that dispatches to Groovy script files
+ * </p>
+ * <p>
+ * Description: This event listeners allows the use of Groovy script files=
as event listeners, allowing for customizations in a more
+ * script-like way than having to compile actual code.
+ * </p>
+ * <p>
+ * Copyright: Copyright (c) 2006
+ * </p>
+ * <p>
+ * Company: Jahia Ltd
+ * </p>
+ * =
* @author Serge Huber
* @version 1.0
*/
=
public class GroovyEventListener extends JahiaEventListener {
=
- private static org.apache.log4j.Logger logger =3D
- org.apache.log4j.Logger.getLogger (GroovyEventListener.class);
+ private static org.apache.log4j.Logger logger =3D org.apache.log4j.Log=
ger
+ .getLogger(GroovyEventListener.class);
=
private boolean configLoaded =3D false;
private String defaultPathToGroovy =3D null;
private String groovyFileName =3D null;
=
- private static final String DEFAULT_PATH_TO_GROOVY =3D
- "events/EventListener.groovy";
+ private static final String DEFAULT_PATH_TO_GROOVY =3D "events/EventLi=
stener.groovy";
private static final String GROOVY_FILE_NAME =3D "EventListener.groovy=
";
=
private JahiaGroovyEngine jahiaScriptEngine;
- private static long lastCall=3D0;// used for performance mode
- private boolean checkConfig (ProcessingContext processingContext) {
+ private static long lastCall =3D 0;// used for performance mode
+
+ private boolean checkConfig(ProcessingContext processingContext) {
if (configLoaded)
return configLoaded;
=
- loadConfig (processingContext);
+ loadConfig(processingContext);
=
return configLoaded;
}
@@ -73,54 +80,64 @@
private static Map eventsHandled =3D null;
private static Map siteEventFile =3D new FastHashMap(64);
private static String staticeventsToHandleList =3D "";
- private void loadConfig (ProcessingContext processingContext) {
+
+ private void loadConfig(ProcessingContext processingContext) {
=
/**
- * @todo for the moment this stuff is hardcoded, but we might want=
to
- * make this configurable through an XML file.
+ * @todo for the moment this stuff is hardcoded, but we might want=
to make this configurable through an XML file.
*/
=
defaultPathToGroovy =3D GroovyEventListener.DEFAULT_PATH_TO_GROOVY;
groovyFileName =3D GroovyEventListener.GROOVY_FILE_NAME;
- jahiaScriptEngine =3D (JahiaGroovyEngine) SpringContextSingleton.g=
etInstance().getContext().getBean("groovyScriptEngine");
+ jahiaScriptEngine =3D (JahiaGroovyEngine) SpringContextSingleton
+ .getInstance().getContext().getBean("groovyScriptEngine");
=
configLoaded =3D true;
}
=
- public GroovyEventListener () {
+ public GroovyEventListener() {
}
=
- private void dispatchToGroovyScript (String eventName, JahiaEvent je) {
+ private void dispatchToGroovyScript(String eventName, JahiaEvent je) {
ProcessingContext processingContext =3D je.getProcessingContext();
- if (checkConfig(processingContext) && (eventsHandled=3D=3D null ||=
eventsHandled.containsKey(eventName))) {
+ if (checkConfig(processingContext)
+ && (eventsHandled =3D=3D null || eventsHandled
+ .containsKey(eventName))) {
try {
String groovyFileName =3D resolveGroovyFullFileName(proces=
singContext);
=
// Developement mode flag
- boolean checkDependances=3DJahia.getSettings().isDevelopme=
ntMode();
+ boolean checkDependances =3D Jahia.getSettings()
+ .isDevelopmentMode();
long startTime =3D System.currentTimeMillis();
=
- //performance mode
- if(startTime-lastCall<1500 && checkDependances && enabledP=
erformanceMode){
- //under heavy load we avoid the checking bottleneck re=
peatedly, assuming script unchanged and dependencies too
- checkDependances=3Dfalse;
- logger.debug("lapse between 2 dependency checks too cl=
ose: no checks");
+ // performance mode
+ if (startTime - lastCall < 1500 && checkDependances
+ && enabledPerformanceMode) {
+ // under heavy load we avoid the checking bottleneck r=
epeatedly, assuming script unchanged and dependencies too
+ checkDependances =3D false;
+ logger
+ .debug("lapse between 2 dependency checks too =
close: no checks");
}
- if(lastCall=3D=3D0) checkDependances=3Dtrue;//only the fir=
st time
- lastCall=3DstartTime;
+ if (lastCall =3D=3D 0)
+ checkDependances =3D true;// only the first time
+ lastCall =3D startTime;
synchronized (jahiaScriptEngine) {
Binding binding =3D new Binding();
binding.setVariable("eventName", eventName);
binding.setVariable("jahiaEvent", je);
- jahiaScriptEngine.run(groovyFileName, binding, checkDe=
pendances);
+ jahiaScriptEngine.run(groovyFileName, binding,
+ checkDependances);
}
long endTime =3D System.currentTimeMillis();
long executionTime =3D endTime - startTime;
- logger.debug("Groovy script event listener=3D" + groovyFil=
eName + " event=3D" + eventName +
- " execution time=3D" + executionTime + "ms");
+ logger.debug("Groovy script event listener=3D" + groovyFil=
eName
+ + " event=3D" + eventName + " execution time=3D"
+ + executionTime + "ms");
=
} catch (Throwable t) {
- logger.error("Error while dispatching to Groovy script : "=
+ groovyFileName, t);
+ logger.error("Error while dispatching to Groovy script : "
+ + groovyFileName, t);
}
}
}
@@ -128,199 +145,294 @@
private String resolveGroovyFullFileName(ProcessingContext processingC=
ontext) {
String groovyFullFileName;
StringBuffer nameBuilder =3D new StringBuffer("/jsp/jahia/");
- if (processingContext !=3D null && siteEventFile.containsKey(proce=
ssingContext.getSiteKey()))
+ if (processingContext !=3D null
+ && siteEventFile.containsKey(processingContext.getSiteKey(=
)))
return (String) siteEventFile.get(processingContext.getSiteKey=
());
- else if ((processingContext !=3D null) &&
- (processingContext.getSite() !=3D null) &&
- (processingContext.getSite().getHomeContentPage() !=3D nu=
ll) &&
- (processingContext.getSite().getHomeContentPage().getPage=
Template(processingContext)!=3Dnull) &&
- (processingContext.getSite().getHomeContentPage().getPage=
Template(processingContext).getSourcePath() !=3D
- null)) {
- groovyFullFileName =3D
- processingContext.getSite().getHomeContentPage().getPa=
geTemplate(processingContext).getSourcePath();
+ else if ((processingContext !=3D null)
+ && (processingContext.getSite() !=3D null)
+ && (processingContext.getSite().getHomeContentPage() !=3D =
null)
+ && (processingContext.getSite().getHomeContentPage()
+ .getPageTemplate(processingContext) !=3D null)
+ && (processingContext.getSite().getHomeContentPage()
+ .getPageTemplate(processingContext).getSourcePath(=
) !=3D null)) {
+ groovyFullFileName =3D processingContext.getSite()
+ .getHomeContentPage().getPageTemplate(processingContex=
t)
+ .getSourcePath();
logger.debug("template source path :" + groovyFullFileName);
=
- groovyFullFileName =3D
- groovyFullFileName.substring(0, groovyFullFileName.las=
tIndexOf("/") + 1) + groovyFileName;
+ groovyFullFileName =3D groovyFullFileName.substring(0,
+ groovyFullFileName.lastIndexOf("/") + 1)
+ + groovyFileName;
=
- groovyFullFileName =3D groovyFullFileName.substring(nameBuilde=
r.length());
+ groovyFullFileName =3D groovyFullFileName.substring(nameBuilder
+ .length());
=
logger.debug("resolvedGroovyFullFileName :" + groovyFullFileNa=
me);
=
- File groovyScriptFile =3D
- new File(processingContext.settings().getPathResolver(=
).resolvePath(groovyFullFileName));
+ File groovyScriptFile =3D new File(processingContext.settings()
+ .getPathResolver().resolvePath(groovyFullFileName));
if (!groovyScriptFile.exists()) {
groovyFullFileName =3D defaultPathToGroovy;
}
- siteEventFile.put(processingContext.getSiteKey(), groovyFullFi=
leName);
- }
- else {
+ siteEventFile.put(processingContext.getSiteKey(),
+ groovyFullFileName);
+ } else {
groovyFullFileName =3D defaultPathToGroovy;
}
return groovyFullFileName;
}
=
- public void beforeServicesLoad (JahiaEvent je) {
- dispatchToGroovyScript ("beforeServicesLoad", je);
+ public void beforeServicesLoad(JahiaEvent je) {
+ dispatchToGroovyScript("beforeServicesLoad", je);
+ }
+
+ public void afterServicesLoad(JahiaEvent je) {
+ dispatchToGroovyScript("afterServicesLoad", je);
+ }
+
+ public void siteAdded(JahiaEvent je) {
+ dispatchToGroovyScript("siteAdded", je);
+ }
+
+ public void siteDeleted(JahiaEvent je) {
+ dispatchToGroovyScript("siteDeleted", je);
+ }
+
+ public void beforeFieldActivation(JahiaEvent je) {
+ dispatchToGroovyScript("beforeFieldActivation", je);
+ }
+
+ public void fieldAdded(JahiaEvent je) {
+ dispatchToGroovyScript("fieldAdded", je);
+ }
+
+ public void fieldUpdated(JahiaEvent je) {
+ dispatchToGroovyScript("fieldUpdated", je);
}
=
- public void afterServicesLoad (JahiaEvent je) {
- dispatchToGroovyScript ("afterServicesLoad", je);
+ public void fieldDeleted(JahiaEvent je) {
+ dispatchToGroovyScript("fieldDeleted", je);
}
=
- public void beforeFieldActivation (JahiaEvent je) {
- dispatchToGroovyScript ("beforeFieldActivation", je);
+ public void beforeContainerActivation(JahiaEvent je) {
+ dispatchToGroovyScript("beforeContainerActivation", je);
}
=
- public void fieldAdded (JahiaEvent je) {
- dispatchToGroovyScript ("fieldAdded", je);
+ public void containerValidation(JahiaEvent je) {
+ dispatchToGroovyScript("containerValidation", je);
}
=
- public void fieldUpdated (JahiaEvent je) {
- dispatchToGroovyScript ("fieldUpdated", je);
+ public void addContainerEngineAfterSave(JahiaEvent je) {
+ dispatchToGroovyScript("addContainerEngineAfterSave", je);
}
=
- public void fieldDeleted (JahiaEvent je) {
- dispatchToGroovyScript ("fieldDeleted", je);
+ public void addContainerEngineBeforeSave(JahiaEvent je) {
+ dispatchToGroovyScript("addContainerEngineBeforeSave", je);
}
=
- public void addContainerEngineAfterInit (JahiaEvent je) {
- dispatchToGroovyScript ("addContainerEngineAfterInit", je);
+ public void addContainerEngineAfterInit(JahiaEvent je) {
+ dispatchToGroovyScript("addContainerEngineAfterInit", je);
}
=
- public void addContainerEngineBeforeSave (JahiaEvent je) {
- dispatchToGroovyScript ("addContainerEngineBeforeSave", je);
+ public void updateContainerEngineBeforeSave(JahiaEvent je) {
+ dispatchToGroovyScript("updateContainerEngineBeforeSave", je);
}
=
- public void containerAdded (JahiaEvent je) {
- dispatchToGroovyScript ("containerAdded", je);
+ public void updateContainerEngineAfterInit(JahiaEvent je) {
+ dispatchToGroovyScript("updateContainerEngineAfterInit", je);
}
=
- public void containerUpdated (JahiaEvent je) {
- dispatchToGroovyScript ("containerUpdated", je);
+ public void containerAdded(JahiaEvent je) {
+ dispatchToGroovyScript("containerAdded", je);
}
=
- public void containerDeleted (JahiaEvent je) {
- dispatchToGroovyScript ("containerDeleted", je);
+ public void containerUpdated(JahiaEvent je) {
+ dispatchToGroovyScript("containerUpdated", je);
}
=
- public void pageAdded (JahiaEvent je) {
- dispatchToGroovyScript ("pageAdded", je);
+ public void containerDeleted(JahiaEvent je) {
+ dispatchToGroovyScript("containerDeleted", je);
}
=
- public void pageLoaded (JahiaEvent je) {
- dispatchToGroovyScript ("pageLoaded", je);
+ public void pageAdded(JahiaEvent je) {
+ dispatchToGroovyScript("pageAdded", je);
}
=
- public void pagePropertiesSet (JahiaEvent je) {
- dispatchToGroovyScript ("pagePropertiesSet", je);
+ public void pageLoaded(JahiaEvent je) {
+ dispatchToGroovyScript("pageLoaded", je);
}
=
- public void userPropertiesSet (JahiaEvent je) {
- dispatchToGroovyScript ("userPropertiesSet", je);
+ public void pagePropertiesSet(JahiaEvent je) {
+ dispatchToGroovyScript("pagePropertiesSet", je);
}
=
- public void containerListPropertiesSet (JahiaEvent je) {
- dispatchToGroovyScript ("containerListPropertiesSet", je);
+ public void containerListPropertiesSet(JahiaEvent je) {
+ dispatchToGroovyScript("containerListPropertiesSet", je);
}
=
- public void rightsSet (JahiaEvent je) {
- dispatchToGroovyScript ("rightsSet", je);
+ public void userPropertiesSet(JahiaEvent je) {
+ dispatchToGroovyScript("userPropertiesSet", je);
+ }
+
+ public void templateUpdated(JahiaEvent theEvent) {
+ dispatchToGroovyScript("templateUpdated", theEvent);
}
=
- public void userLoggedIn (JahiaEvent je) {
- dispatchToGroovyScript ("userLoggedIn", je);
+ public void categoryUpdated(JahiaEvent theEvent) {
+ dispatchToGroovyScript("categoryUpdated", theEvent);
}
=
- public void userLoggedOut (JahiaEvent je) {
- dispatchToGroovyScript ("userLoggedOut", je);
+ public void rightsSet(JahiaEvent je) {
+ dispatchToGroovyScript("rightsSet", je);
}
=
- public void beforeContainerActivation (JahiaEvent je) {
- dispatchToGroovyScript ("beforeContainerActivation", je);
+ public void userLoggedIn(JahiaEvent je) {
+ dispatchToGroovyScript("userLoggedIn", je);
}
=
- public void updateContainerEngineBeforeSave (JahiaEvent je) {
- dispatchToGroovyScript ("updateContainerEngineBeforeSave", je);
+ public void userLoggedOut(JahiaEvent je) {
+ dispatchToGroovyScript("userLoggedOut", je);
}
=
- public void updateContainerEngineAfterInit (JahiaEvent je) {
- dispatchToGroovyScript ("updateContainerEngineAfterInit", je);
+ public void objectChanged(WorkflowEvent we) {
+ dispatchToGroovyScript("objectChanged", we);
}
=
- public void objectChanged (WorkflowEvent we) {
- dispatchToGroovyScript ("objectChanged", we);
+ public void aggregatedObjectChanged(JahiaEvent je) {
+ dispatchToGroovyScript("aggregatedObjectChanged", je);
}
=
public void beforeStagingContentIsDeleted(JahiaEvent je) {
- dispatchToGroovyScript ("beforeStagingContentIsDeleted", je);
+ dispatchToGroovyScript("beforeStagingContentIsDeleted", je);
}
=
- public void metadataEngineAfterInit (JahiaEvent theEvent) {
- dispatchToGroovyScript ("metadataEngineAfterInit", theEvent);
+ public void metadataEngineAfterInit(JahiaEvent theEvent) {
+ dispatchToGroovyScript("metadataEngineAfterInit", theEvent);
}
=
- public void metadataEngineBeforeSave (JahiaEvent theEvent) {
- dispatchToGroovyScript ("metadataEngineBeforeSave", theEvent);
+ public void metadataEngineBeforeSave(JahiaEvent theEvent) {
+ dispatchToGroovyScript("metadataEngineBeforeSave", theEvent);
}
=
- public void metadataEngineAfterSave (JahiaEvent theEvent) {
- dispatchToGroovyScript ("metadataEngineAfterSave", theEvent);
+ public void metadataEngineAfterSave(JahiaEvent theEvent) {
+ dispatchToGroovyScript("metadataEngineAfterSave", theEvent);
}
=
- public void contentActivation (ContentActivationEvent theEvent) {
- dispatchToGroovyScript ("contentActivation", theEvent);
+ public void afterGroupActivation(ContentActivationEvent theEvent) {
+ dispatchToGroovyScript("afterGroupActivation", theEvent);
}
=
- public void afterGroupActivation (ContentActivationEvent theEvent) {
- dispatchToGroovyScript ("afterGroupActivation", theEvent);
+ public void contentActivation(ContentActivationEvent theEvent) {
+ dispatchToGroovyScript("contentActivation", theEvent);
}
=
- public void contentObjectCreated (JahiaEvent theEvent) {
- dispatchToGroovyScript ("contentObjectCreated", theEvent);
+ public void aggregatedContentActivation(JahiaEvent theEvent) {
+ dispatchToGroovyScript("aggregatedContentActivation", theEvent);
}
=
- public void contentObjectUpdated (JahiaEvent theEvent) {
- dispatchToGroovyScript ("contentObjectUpdated", theEvent);
+ public void contentObjectCreated(JahiaEvent theEvent) {
+ dispatchToGroovyScript("contentObjectCreated", theEvent);
+ }
+
+ public void aggregatedContentObjectCreated(JahiaEvent theEvent) {
+ dispatchToGroovyScript("aggregatedContentObjectCreated", theEvent);
+ }
+
+ public void contentObjectUpdated(JahiaEvent theEvent) {
+ dispatchToGroovyScript("contentObjectUpdated", theEvent);
}
=
/**
* Event fired once a content object has been updated ( changes stored=
in persistence )
- *
- * @param theEvent JahiaEvent
+ * =
+ * @param theEvent
+ * JahiaEvent
*/
- public void contentObjectUndoStaging (ContentUndoStagingEvent theEvent=
) {
- dispatchToGroovyScript ("contentObjectUndoStaging", theEvent);
+ public void contentObjectUndoStaging(ContentUndoStagingEvent theEvent)=
{
+ dispatchToGroovyScript("contentObjectUndoStaging", theEvent);
}
=
/**
* Event fired after a call to contentObjectonce a content object has =
been updated ( changes stored in persistence )
- *
- * @param theEvent JahiaEvent
+ * =
+ * @param theEvent
+ * JahiaEvent
*/
- public void contentObjectDelete (ContentObjectDeleteEvent theEvent) {
- dispatchToGroovyScript ("contentObjectDelete", theEvent);
+ public void contentObjectDelete(ContentObjectDeleteEvent theEvent) {
+ dispatchToGroovyScript("contentObjectDelete", theEvent);
}
=
/**
* Event fired on content object restore version
- *
- * @param theEvent JahiaEvent
+ * =
+ * @param theEvent
+ * JahiaEvent
*/
- public void contentObjectRestoreVersion (ContentObjectRestoreVersionEv=
ent theEvent) {
- dispatchToGroovyScript ("contentObjectRestoreVersion", theEvent);
+ public void contentObjectRestoreVersion(
+ ContentObjectRestoreVersionEvent theEvent) {
+ dispatchToGroovyScript("contentObjectRestoreVersion", theEvent);
}
=
public void fileManagerAclChanged(JahiaEvent theEvent) {
- dispatchToGroovyScript ("fileManagerAclChanged", theEvent);
+ dispatchToGroovyScript("fileManagerAclChanged", theEvent);
}
=
- public void templateUpdated(JahiaEvent theEvent) {
- dispatchToGroovyScript ("templateUpdated", theEvent);
+ public void timeBasedPublishingEvent(RetentionRuleEvent theEvent) {
+ dispatchToGroovyScript("timeBasedPublishingEvent", theEvent);
+ }
+
+ public void aggregatedEventsFlush(JahiaEvent theEvent) {
+ dispatchToGroovyScript("aggregatedEventsFlush", theEvent);
+ }
+
+ public void flushEsiCacheEvent(JahiaEvent theEvent) {
+ dispatchToGroovyScript("flushEsiCacheEvent", theEvent);
+ }
+
+ // Nicol=C3=AF=C2=BF=C2=BDs Charczewski - Neoris Argentina - added 28/=
03/2006 - Begin
+ public void pageDeleted(JahiaEvent theEvent) {
+ dispatchToGroovyScript("pageDeleted", theEvent);
+ }
+
+ public void pageAccepted(JahiaEvent theEvent) {
+ dispatchToGroovyScript("pageAccepted", theEvent);
+ }
+
+ public void pageRejected(JahiaEvent theEvent) {
+ dispatchToGroovyScript("pageRejected", theEvent);
+ }
+
+ public void templateAdded(JahiaEvent theEvent) {
+ dispatchToGroovyScript("templateAdded", theEvent);
+ }
+
+ public void templateDeleted(JahiaEvent theEvent) {
+ dispatchToGroovyScript("templateDeleted", theEvent);
+ }
+
+ public void userAdded(JahiaEvent theEvent) {
+ dispatchToGroovyScript("userAdded", theEvent);
+ }
+
+ public void userDeleted(JahiaEvent theEvent) {
+ dispatchToGroovyScript("userDeleted", theEvent);
+ }
+
+ public void userUpdated(JahiaEvent theEvent) {
+ dispatchToGroovyScript("userUpdated", theEvent);
+ }
+
+ public void groupAdded(JahiaEvent theEvent) {
+ dispatchToGroovyScript("groupAdded", theEvent);
}
=
- public void timeBasedPublishingEvent( RetentionRuleEvent theEvent ) {
- dispatchToGroovyScript ("timeBasedPublishingEvent", theEvent);
+ public void groupDeleted(JahiaEvent theEvent) {
+ dispatchToGroovyScript("groupDeleted", theEvent);
+ }
+
+ public void groupUpdated(JahiaEvent theEvent) {
+ dispatchToGroovyScript("groupUpdated", theEvent);
+ super.groupUpdated(theEvent);
}
=
public static void registerEvents(String eventsToHandleList) {
@@ -334,6 +446,7 @@
}
}
}
+
// this flag could be use to control the repeated dependencies check f=
rom groovy script
- public static boolean enabledPerformanceMode=3Dtrue;
+ public static boolean enabledPerformanceMode =3D true;
}
Modified: branches/JAHIA-5-0-SP-BRANCH/core/src/java/org/jahia/services/eve=
nts/JSPEventListener.java
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/branches/JAHIA-5-0-SP=
-BRANCH/core/src/java/org/jahia/services/events/JSPEventListener.java&rev=
=3D18150&repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/JAHIA-5-0-SP-BRANCH/core/src/java/org/jahia/services/events/JS=
PEventListener.java (original)
+++ branches/JAHIA-5-0-SP-BRANCH/core/src/java/org/jahia/services/events/JS=
PEventListener.java Tue Aug 7 12:31:23 2007
@@ -160,10 +160,18 @@
dispatchToJSP ("afterServicesLoad", je);
}
=
+ public void siteAdded(JahiaEvent je) {
+ dispatchToJSP("siteAdded", je);
+ }
+
+ public void siteDeleted(JahiaEvent je) {
+ dispatchToJSP("siteDeleted", je);
+ } =
+
public void beforeFieldActivation (JahiaEvent je) {
dispatchToJSP ("beforeFieldActivation", je);
}
-
+ =
public void fieldAdded (JahiaEvent je) {
dispatchToJSP ("fieldAdded", je);
}
@@ -176,12 +184,32 @@
dispatchToJSP ("fieldDeleted", je);
}
=
- public void addContainerEngineAfterInit (JahiaEvent je) {
- dispatchToJSP ("addContainerEngineAfterInit", je);
+ public void beforeContainerActivation (JahiaEvent je) {
+ dispatchToJSP ("beforeContainerActivation", je);
+ }
+ =
+ public void containerValidation(JahiaEvent je) {
+ dispatchToJSP("containerValidation", je);
+ }
+
+ public void addContainerEngineAfterSave(JahiaEvent je) {
+ dispatchToJSP("addContainerEngineAfterSave", je);
}
=
public void addContainerEngineBeforeSave (JahiaEvent je) {
dispatchToJSP ("addContainerEngineBeforeSave", je);
+ } =
+ =
+ public void addContainerEngineAfterInit (JahiaEvent je) {
+ dispatchToJSP ("addContainerEngineAfterInit", je);
+ }
+
+ public void updateContainerEngineBeforeSave (JahiaEvent je) {
+ dispatchToJSP ("updateContainerEngineBeforeSave", je);
+ }
+
+ public void updateContainerEngineAfterInit (JahiaEvent je) {
+ dispatchToJSP ("updateContainerEngineAfterInit", je);
}
=
public void containerAdded (JahiaEvent je) {
@@ -208,14 +236,22 @@
dispatchToJSP ("pagePropertiesSet", je);
}
=
+ public void containerListPropertiesSet (JahiaEvent je) {
+ dispatchToJSP ("containerListPropertiesSet", je);
+ } =
+ =
public void userPropertiesSet (JahiaEvent je) {
dispatchToJSP ("userPropertiesSet", je);
}
-
- public void containerListPropertiesSet (JahiaEvent je) {
- dispatchToJSP ("containerListPropertiesSet", je);
+ =
+ public void templateUpdated(JahiaEvent theEvent) {
+ dispatchToJSP ("templateUpdated", theEvent);
}
-
+ =
+ public void categoryUpdated(JahiaEvent theEvent) {
+ dispatchToJSP ("categoryUpdated", theEvent);
+ }
+ =
public void rightsSet (JahiaEvent je) {
dispatchToJSP ("rightsSet", je);
}
@@ -228,21 +264,13 @@
dispatchToJSP ("userLoggedOut", je);
}
=
- public void beforeContainerActivation (JahiaEvent je) {
- dispatchToJSP ("beforeContainerActivation", je);
- }
-
- public void updateContainerEngineBeforeSave (JahiaEvent je) {
- dispatchToJSP ("updateContainerEngineBeforeSave", je);
- }
-
- public void updateContainerEngineAfterInit (JahiaEvent je) {
- dispatchToJSP ("updateContainerEngineAfterInit", je);
- }
-
public void objectChanged (WorkflowEvent we) {
dispatchToJSP ("objectChanged", we);
}
+ =
+ public void aggregatedObjectChanged(JahiaEvent je) {
+ dispatchToJSP("aggregatedObjectChanged", je);
+ } =
=
public void beforeStagingContentIsDeleted(JahiaEvent je) {
dispatchToJSP ("beforeStagingContentIsDeleted", je);
@@ -260,17 +288,25 @@
dispatchToJSP ("metadataEngineAfterSave", theEvent);
}
=
- public void contentActivation (ContentActivationEvent theEvent) {
- dispatchToJSP ("contentActivation", theEvent);
- }
-
public void afterGroupActivation (ContentActivationEvent theEvent) {
dispatchToJSP ("afterGroupActivation", theEvent);
}
+ =
+ public void contentActivation (ContentActivationEvent theEvent) {
+ dispatchToJSP ("contentActivation", theEvent);
+ }
=
+ public void aggregatedContentActivation(JahiaEvent theEvent) {
+ dispatchToJSP("aggregatedContentActivation", theEvent);
+ } =
+ =
public void contentObjectCreated (JahiaEvent theEvent) {
dispatchToJSP ("contentObjectCreated", theEvent);
}
+ =
+ public void aggregatedContentObjectCreated(JahiaEvent theEvent) {
+ dispatchToJSP("aggregatedContentObjectCreated", theEvent);
+ } =
=
public void contentObjectUpdated (JahiaEvent theEvent) {
dispatchToJSP ("contentObjectUpdated", theEvent);
@@ -307,12 +343,62 @@
dispatchToJSP ("fileManagerAclChanged", theEvent);
}
=
- public void templateUpdated(JahiaEvent theEvent) {
- dispatchToJSP ("templateUpdated", theEvent);
- }
-
public void timeBasedPublishingEvent( RetentionRuleEvent theEvent ) {
dispatchToJSP ("timeBasedPublishingEvent", theEvent);
}
=
+ public void aggregatedEventsFlush(JahiaEvent theEvent) {
+ dispatchToJSP("aggregatedEventsFlush", theEvent);
+ }
+
+ public void flushEsiCacheEvent(JahiaEvent theEvent) {
+ dispatchToJSP("flushEsiCacheEvent", theEvent);
+ }
+
+ // Nicol=C3=AF=C2=BF=C2=BDs Charczewski - Neoris Argentina - added 28/=
03/2006 - Begin
+ public void pageDeleted(JahiaEvent theEvent) {
+ dispatchToJSP("pageDeleted", theEvent);
+ }
+
+ public void pageAccepted(JahiaEvent theEvent) {
+ dispatchToJSP("pageAccepted", theEvent);
+ }
+
+ public void pageRejected(JahiaEvent theEvent) {
+ dispatchToJSP("pageRejected", theEvent);
+ }
+
+ public void templateAdded(JahiaEvent theEvent) {
+ dispatchToJSP("templateAdded", theEvent);
+ }
+
+ public void templateDeleted(JahiaEvent theEvent) {
+ dispatchToJSP("templateDeleted", theEvent);
+ }
+
+ public void userAdded(JahiaEvent theEvent) {
+ dispatchToJSP("userAdded", theEvent);
+ }
+
+ public void userDeleted(JahiaEvent theEvent) {
+ dispatchToJSP("userDeleted", theEvent);
+ }
+
+ public void userUpdated(JahiaEvent theEvent) {
+ dispatchToJSP("userUpdated", theEvent);
+ }
+
+ public void groupAdded(JahiaEvent theEvent) {
+ dispatchToJSP("groupAdded", theEvent);
+ }
+
+ public void groupDeleted(JahiaEvent theEvent) {
+ dispatchToJSP("groupDeleted", theEvent);
+ }
+
+ public void groupUpdated(JahiaEvent theEvent) {
+ dispatchToJSP("groupUpdated", theEvent);
+ super.groupUpdated(theEvent);
+ }
+ =
}
_______________________________________________
cvs_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/cvs_list