[jboss-cvs] jboss-seam/src/main/org/jboss/seam ...
Shane Bryzak
Shane_Bryzak at symantec.com
Sun Oct 8 20:50:32 EDT 2006
User: sbryzak2
Date: 06/10/08 20:50:32
Modified: src/main/org/jboss/seam Component.java
Log:
Add SecurityInterceptor to component interceptors if component is secured
Revision Changes Path
1.179 +7 -2 jboss-seam/src/main/org/jboss/seam/Component.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Component.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/Component.java,v
retrieving revision 1.178
retrieving revision 1.179
diff -u -b -r1.178 -r1.179
--- Component.java 8 Oct 2006 20:58:03 -0000 1.178
+++ Component.java 9 Oct 2006 00:50:32 -0000 1.179
@@ -91,6 +91,7 @@
import org.jboss.seam.interceptors.OutcomeInterceptor;
import org.jboss.seam.interceptors.RemoveInterceptor;
import org.jboss.seam.interceptors.RollbackInterceptor;
+import org.jboss.seam.interceptors.SecurityInterceptor;
import org.jboss.seam.interceptors.TransactionInterceptor;
import org.jboss.seam.interceptors.ValidationInterceptor;
import org.jboss.seam.util.Conversions;
@@ -107,7 +108,7 @@
*
* @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
* @author Gavin King
- * @version $Revision: 1.178 $
+ * @version $Revision: 1.179 $
*/
@Scope(ScopeType.APPLICATION)
public class Component
@@ -687,6 +688,10 @@
{
addInterceptor( new Interceptor( new ManagedEntityIdentityInterceptor(), this ) );
}
+ if (SecurityInterceptor.isComponentSecure(this))
+ {
+ addInterceptor( new Interceptor( new SecurityInterceptor(), this ) );
+ }
}
public Class<?> getBeanClass()
More information about the jboss-cvs-commits
mailing list