[jboss-cvs] jboss-seam/src/main/org/jboss/seam/security ...
Shane Bryzak
Shane_Bryzak at symantec.com
Tue Jan 30 05:47:23 EST 2007
User: sbryzak2
Date: 07/01/30 05:47:23
Modified: src/main/org/jboss/seam/security Identity.java
Added: src/main/org/jboss/seam/security PermissionCheck.java
Role.java
Log:
moved some security classes to org.jboss.seam.security package
Revision Changes Path
1.27 +1 -3 jboss-seam/src/main/org/jboss/seam/security/Identity.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Identity.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/security/Identity.java,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -b -r1.26 -r1.27
--- Identity.java 30 Jan 2007 08:30:53 -0000 1.26
+++ Identity.java 30 Jan 2007 10:47:23 -0000 1.27
@@ -40,9 +40,7 @@
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.contexts.Contexts;
import org.jboss.seam.core.Expressions.MethodBinding;
-import org.jboss.seam.security.rules.PermissionCheck;
-import org.jboss.seam.security.rules.Role;
-import org.jboss.seam.security.spi.SeamLoginModule;
+import org.jboss.seam.security.jaas.SeamLoginModule;
import org.jboss.seam.util.UnifiedELValueBinding;
@Name("org.jboss.seam.security.identity")
1.1 date: 2007/01/30 10:47:23; author: sbryzak2; state: Exp;jboss-seam/src/main/org/jboss/seam/security/PermissionCheck.java
Index: PermissionCheck.java
===================================================================
package org.jboss.seam.security;
/**
* Used to assert permission requirements into a WorkingMemory when evaluating
* a @Restrict expression. The consequence of the rule is responsible for
* granting the permission.
*
* @author Shane Bryzak
*/
public class PermissionCheck
{
private String name;
private String action;
private boolean granted;
public PermissionCheck(String name, String action)
{
this.name = name;
this.action = action;
this.granted = false;
}
public String getName()
{
return name;
}
public String getAction()
{
return action;
}
public void grant()
{
this.granted = true;
}
public boolean isGranted()
{
return granted;
}
}
1.4 +5 -89 jboss-seam/src/main/org/jboss/seam/security/Role.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Role.java
===================================================================
RCS file: Role.java
diff -N Role.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Role.java 30 Jan 2007 10:47:23 -0000 1.4
@@ -0,0 +1,23 @@
+package org.jboss.seam.security;
+
+import java.io.Serializable;
+
+/**
+ * A user role
+ *
+ * @author Shane Bryzak
+ */
+public class Role implements Serializable
+{
+ private String name;
+
+ public Role(String name)
+ {
+ this.name = name;
+ }
+
+ public String getName()
+ {
+ return name;
+ }
+}
More information about the jboss-cvs-commits
mailing list