[seam-commits] Seam SVN: r7452 - trunk/src/main/org/jboss/seam/security.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Feb 19 18:06:47 EST 2008


Author: shane.bryzak at jboss.com
Date: 2008-02-19 18:06:46 -0500 (Tue, 19 Feb 2008)
New Revision: 7452

Modified:
   trunk/src/main/org/jboss/seam/security/DynamicPermissionResolver.java
   trunk/src/main/org/jboss/seam/security/RuleBasedPermissionResolver.java
Log:
implement Serializable

Modified: trunk/src/main/org/jboss/seam/security/DynamicPermissionResolver.java
===================================================================
--- trunk/src/main/org/jboss/seam/security/DynamicPermissionResolver.java	2008-02-19 21:15:02 UTC (rev 7451)
+++ trunk/src/main/org/jboss/seam/security/DynamicPermissionResolver.java	2008-02-19 23:06:46 UTC (rev 7452)
@@ -1,12 +1,14 @@
 package org.jboss.seam.security;
 
+import java.io.Serializable;
+
 /**
  * Resolves permissions dynamically assigned in a peristent store, such as a 
  * database, for example.
  * 
  * @author Shane Bryzak
  */
-public class DynamicPermissionResolver implements PermissionResolver
+public class DynamicPermissionResolver implements PermissionResolver, Serializable
 {   
    public boolean hasPermission(Object target, String action)
    {

Modified: trunk/src/main/org/jboss/seam/security/RuleBasedPermissionResolver.java
===================================================================
--- trunk/src/main/org/jboss/seam/security/RuleBasedPermissionResolver.java	2008-02-19 21:15:02 UTC (rev 7451)
+++ trunk/src/main/org/jboss/seam/security/RuleBasedPermissionResolver.java	2008-02-19 23:06:46 UTC (rev 7452)
@@ -3,6 +3,7 @@
 import static org.jboss.seam.ScopeType.SESSION;
 import static org.jboss.seam.annotations.Install.FRAMEWORK;
 
+import java.io.Serializable;
 import java.security.Principal;
 import java.security.acl.Group;
 import java.util.ArrayList;
@@ -36,7 +37,7 @@
 @BypassInterceptors
 @Install(precedence=FRAMEWORK, classDependencies="org.drools.WorkingMemory")
 @Startup
-public class RuleBasedPermissionResolver implements PermissionResolver
+public class RuleBasedPermissionResolver implements PermissionResolver, Serializable
 {      
    public static final String RULES_COMPONENT_NAME = "securityRules";   
    




More information about the seam-commits mailing list