[jboss-cvs] jboss-seam/examples/security/src/org/jboss/seam/example/security ...
Shane Bryzak
Shane_Bryzak at symantec.com
Mon Oct 9 19:29:34 EDT 2006
User: sbryzak2
Date: 06/10/09 19:29:34
Modified: examples/security/src/org/jboss/seam/example/security
ProtectedAction.java
Log:
Updated security example using simplified API
Revision Changes Path
1.5 +2 -4 jboss-seam/examples/security/src/org/jboss/seam/example/security/ProtectedAction.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ProtectedAction.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/security/src/org/jboss/seam/example/security/ProtectedAction.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- ProtectedAction.java 5 Aug 2006 02:00:55 -0000 1.4
+++ ProtectedAction.java 9 Oct 2006 23:29:34 -0000 1.5
@@ -1,10 +1,9 @@
package org.jboss.seam.example.security;
-import javax.annotation.security.RolesAllowed;
import javax.ejb.Stateless;
-import org.jboss.annotation.security.SecurityDomain;
import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Secure;
/**
*
@@ -12,10 +11,9 @@
*/
@Stateless
@Name("protectedAction")
- at SecurityDomain("seam")
+ at Secure(roles = "admin")
public class ProtectedAction implements ProtectedLocal
{
- @RolesAllowed("admin")
public String foo()
{
System.out.println("protected method foo() successfully called");
More information about the jboss-cvs-commits
mailing list