Author: nzamosenchuk
Date: 2010-07-01 03:59:50 -0400 (Thu, 01 Jul 2010)
New Revision: 2734
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/SessionImpl.java
Log:
EXOJCR-768: Warn in debug mode only
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/SessionImpl.java
===================================================================
---
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/SessionImpl.java 2010-07-01
07:50:44 UTC (rev 2733)
+++
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/SessionImpl.java 2010-07-01
07:59:50 UTC (rev 2734)
@@ -18,6 +18,7 @@
*/
package org.exoplatform.services.jcr.impl.core;
+import org.exoplatform.commons.utils.PropertyManager;
import org.exoplatform.container.ExoContainer;
import org.exoplatform.services.jcr.access.AccessControlList;
import org.exoplatform.services.jcr.access.AccessManager;
@@ -31,8 +32,8 @@
import org.exoplatform.services.jcr.datamodel.NodeData;
import org.exoplatform.services.jcr.datamodel.QPathEntry;
import org.exoplatform.services.jcr.impl.Constants;
+import org.exoplatform.services.jcr.impl.core.lock.SessionLockManager;
import org.exoplatform.services.jcr.impl.core.lock.WorkspaceLockManager;
-import org.exoplatform.services.jcr.impl.core.lock.SessionLockManager;
import org.exoplatform.services.jcr.impl.core.nodetype.NodeTypeImpl;
import org.exoplatform.services.jcr.impl.core.observation.ObservationManagerImpl;
import org.exoplatform.services.jcr.impl.core.observation.ObservationManagerRegistry;
@@ -246,7 +247,7 @@
{
checkLive();
-
+
LocationFactory factory = new
LocationFactory(((NamespaceRegistryImpl)repository.getNamespaceRegistry()));
WorkspaceEntry wsConfig =
(WorkspaceEntry)container.getComponentInstanceOfType(WorkspaceEntry.class);
@@ -287,7 +288,7 @@
{
checkLive();
-
+
LocationFactory factory = new
LocationFactory(((NamespaceRegistryImpl)repository.getNamespaceRegistry()));
WorkspaceEntry wsConfig =
(WorkspaceEntry)container.getComponentInstanceOfType(WorkspaceEntry.class);
@@ -329,9 +330,9 @@
public void exportWorkspaceSystemView(OutputStream out, boolean skipBinary, boolean
noRecurse) throws IOException,
PathNotFoundException, RepositoryException
{
-
+
checkLive();
-
+
LocationFactory factory = new
LocationFactory(((NamespaceRegistryImpl)repository.getNamespaceRegistry()));
WorkspaceEntry wsConfig =
(WorkspaceEntry)container.getComponentInstanceOfType(WorkspaceEntry.class);
@@ -371,9 +372,9 @@
public void exportSystemView(String absPath, ContentHandler contentHandler, boolean
skipBinary, boolean noRecurse)
throws PathNotFoundException, SAXException, RepositoryException
{
-
+
checkLive();
-
+
LocationFactory factory = new
LocationFactory(((NamespaceRegistryImpl)repository.getNamespaceRegistry()));
WorkspaceEntry wsConfig =
(WorkspaceEntry)container.getComponentInstanceOfType(WorkspaceEntry.class);
@@ -411,7 +412,7 @@
throws IOException, PathNotFoundException, RepositoryException
{
checkLive();
-
+
LocationFactory factory = new
LocationFactory(((NamespaceRegistryImpl)repository.getNamespaceRegistry()));
WorkspaceEntry wsConfig =
(WorkspaceEntry)container.getComponentInstanceOfType(WorkspaceEntry.class);
@@ -864,10 +865,14 @@
{
if (!live)
{
- log
- .warn(
- "This kind of operation is forbidden after a session.logout(), please
note that an exception will be raised in the next jcr version.",
- new Exception());
+ // warn in debug mode only
+ if (PropertyManager.isDevelopping())
+ {
+ log
+ .warn(
+ "This kind of operation is forbidden after a session.logout(),
please note that an exception will be raised in the next jcr version.",
+ new Exception());
+ }
}
}
Show replies by date