[exo-jcr-commits] exo-jcr SVN: r4612 - in jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl: ext/action and 1 other directory.
do-not-reply at jboss.org
do-not-reply at jboss.org
Thu Jul 7 08:49:29 EDT 2011
Author: dkuleshov
Date: 2011-07-07 08:49:29 -0400 (Thu, 07 Jul 2011)
New Revision: 4612
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/ItemImpl.java
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/ext/action/SessionActionInterceptor.java
Log:
EXOJCR-1408: added parent NodeData to postSetProperty method to avoid extra parent traversing
Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/ItemImpl.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/ItemImpl.java 2011-07-07 09:20:07 UTC (rev 4611)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/ItemImpl.java 2011-07-07 12:49:29 UTC (rev 4612)
@@ -603,7 +603,7 @@
prop = (PropertyImpl)dataManager.update(itemState, true);
// launch event: post-set
- session.getActionHandler().postSetProperty(prevProperty, prop, state);
+ session.getActionHandler().postSetProperty(prevProperty, prop, parentNode.nodeData(), state);
}
else
{
Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/ext/action/SessionActionInterceptor.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/ext/action/SessionActionInterceptor.java 2011-07-07 09:20:07 UTC (rev 4611)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/ext/action/SessionActionInterceptor.java 2011-07-07 12:49:29 UTC (rev 4612)
@@ -257,7 +257,7 @@
}
}
- public void postSetProperty(PropertyImpl previousProperty, PropertyImpl currentProperty, int state)
+ public void postSetProperty(PropertyImpl previousProperty, PropertyImpl currentProperty, NodeData parent, int state)
throws RepositoryException
{
if (catalog == null)
@@ -289,7 +289,7 @@
Condition conditions = new Condition();
conditions.put(SessionEventMatcher.EVENTTYPE_KEY, event);
conditions.put(SessionEventMatcher.PATH_KEY, currentProperty.getInternalPath());
- conditions.put(SessionEventMatcher.NODETYPES_KEY, readNodeTypeNames(currentProperty.parentData()));
+ conditions.put(SessionEventMatcher.NODETYPES_KEY, readNodeTypeNames(parent));
InvocationContext ctx = new InvocationContext();
ctx.put(InvocationContext.CURRENT_ITEM, currentProperty);
More information about the exo-jcr-commits
mailing list