Author: christian.bauer(a)jboss.com
Date: 2008-08-11 08:06:59 -0400 (Mon, 11 Aug 2008)
New Revision: 8652
Modified:
trunk/examples/wiki/src/main/org/jboss/seam/wiki/core/dao/UserRoleAccessFactory.java
Log:
Minor
Modified:
trunk/examples/wiki/src/main/org/jboss/seam/wiki/core/dao/UserRoleAccessFactory.java
===================================================================
---
trunk/examples/wiki/src/main/org/jboss/seam/wiki/core/dao/UserRoleAccessFactory.java 2008-08-11
04:37:57 UTC (rev 8651)
+++
trunk/examples/wiki/src/main/org/jboss/seam/wiki/core/dao/UserRoleAccessFactory.java 2008-08-11
12:06:59 UTC (rev 8652)
@@ -2,6 +2,7 @@
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.*;
+import org.jboss.seam.annotations.intercept.BypassInterceptors;
import org.jboss.seam.wiki.core.action.prefs.UserManagementPreferences;
import org.jboss.seam.wiki.core.model.Role;
import org.jboss.seam.wiki.core.model.User;
@@ -27,6 +28,7 @@
// Anonymous (not logged-in) user's access level
@Factory(value = "currentAccessLevel", scope = ScopeType.SESSION,
autoCreate = true)
+ @BypassInterceptors // Don't inject the entityManager, this factory is called
when the entityManager is created!
public Integer getCurrentAccessLevel() {
return Role.GUESTROLE_ACCESSLEVEL;
}
Show replies by date