[seam-commits] Seam SVN: r12487 - in modules/security/trunk: examples/seamspace/src/main/java/org/jboss/seam/security/examples/seamspace/action and 3 other directories.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Wed Apr 14 05:38:28 EDT 2010
Author: shane.bryzak at jboss.com
Date: 2010-04-14 05:38:28 -0400 (Wed, 14 Apr 2010)
New Revision: 12487
Modified:
modules/security/trunk/examples/seamspace/pom.xml
modules/security/trunk/examples/seamspace/src/main/java/org/jboss/seam/security/examples/seamspace/action/RegisterAction.java
modules/security/trunk/examples/seamspace/src/main/webapp/WEB-INF/classes/seam-beans.xml
modules/security/trunk/impl/pom.xml
modules/security/trunk/impl/src/main/java/org/jboss/seam/security/IdentityImpl.java
Log:
fix example build
Modified: modules/security/trunk/examples/seamspace/pom.xml
===================================================================
--- modules/security/trunk/examples/seamspace/pom.xml 2010-04-14 09:28:32 UTC (rev 12486)
+++ modules/security/trunk/examples/seamspace/pom.xml 2010-04-14 09:38:28 UTC (rev 12487)
@@ -45,11 +45,18 @@
<dependency>
<groupId>org.jboss.seam.security</groupId>
- <artifactId>seam-security-core</artifactId>
- <version>3.0.0-SNAPSHOT</version>
+ <artifactId>seam-security-api</artifactId>
+ <version>${project.version}</version>
+ <scope>compile</scope>
</dependency>
<dependency>
+ <groupId>org.jboss.seam.security</groupId>
+ <artifactId>seam-security-impl</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <dependency>
<groupId>org.jboss.seam.xml</groupId>
<artifactId>seam-xml-bean-config</artifactId>
<version>3.0.0-SNAPSHOT</version>
Modified: modules/security/trunk/examples/seamspace/src/main/java/org/jboss/seam/security/examples/seamspace/action/RegisterAction.java
===================================================================
--- modules/security/trunk/examples/seamspace/src/main/java/org/jboss/seam/security/examples/seamspace/action/RegisterAction.java 2010-04-14 09:28:32 UTC (rev 12486)
+++ modules/security/trunk/examples/seamspace/src/main/java/org/jboss/seam/security/examples/seamspace/action/RegisterAction.java 2010-04-14 09:38:28 UTC (rev 12487)
@@ -9,6 +9,7 @@
import org.jboss.seam.security.Credentials;
import org.jboss.seam.security.Identity;
+import org.jboss.seam.security.IdentityImpl;
import org.jboss.seam.security.RunAsOperation;
import org.jboss.seam.security.examples.seamspace.model.Member;
import org.jboss.seam.security.examples.seamspace.model.MemberAccount;
@@ -24,6 +25,8 @@
@Inject Identity identity;
+ @Inject IdentityImpl identityImpl;
+
@Inject Credentials credentials;
@Inject IdentityManager identityManager;
@@ -93,7 +96,7 @@
member.setMemberSince(new Date());
entityManager.persist(member);
- identity.runAs(new RunAsOperation() {
+ identityImpl.runAs(new RunAsOperation() {
public void execute() {
identityManager.createUser(username, password);
identityManager.grantRole(username, "user");
Modified: modules/security/trunk/examples/seamspace/src/main/webapp/WEB-INF/classes/seam-beans.xml
===================================================================
--- modules/security/trunk/examples/seamspace/src/main/webapp/WEB-INF/classes/seam-beans.xml 2010-04-14 09:28:32 UTC (rev 12486)
+++ modules/security/trunk/examples/seamspace/src/main/webapp/WEB-INF/classes/seam-beans.xml 2010-04-14 09:38:28 UTC (rev 12487)
@@ -12,7 +12,7 @@
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
- <idm:IdentityManager>
+ <idm:IdentityManagerImpl>
<s:specializes/>
<idm:identityStore>
<s:Inject/>
@@ -20,7 +20,7 @@
<idm:JpaIdentityStore/>
</s:type>
</idm:identityStore>
- </idm:IdentityManager>
+ </idm:IdentityManagerImpl>
<idm:JpaIdentityStore>
<s:specializes/>
Modified: modules/security/trunk/impl/pom.xml
===================================================================
--- modules/security/trunk/impl/pom.xml 2010-04-14 09:28:32 UTC (rev 12486)
+++ modules/security/trunk/impl/pom.xml 2010-04-14 09:38:28 UTC (rev 12487)
@@ -56,7 +56,6 @@
<groupId>org.jboss.seam.security</groupId>
<artifactId>seam-security-api</artifactId>
<version>${project.version}</version>
- <scope>compile</scope>
</dependency>
<dependency>
Modified: modules/security/trunk/impl/src/main/java/org/jboss/seam/security/IdentityImpl.java
===================================================================
--- modules/security/trunk/impl/src/main/java/org/jboss/seam/security/IdentityImpl.java 2010-04-14 09:28:32 UTC (rev 12486)
+++ modules/security/trunk/impl/src/main/java/org/jboss/seam/security/IdentityImpl.java 2010-04-14 09:38:28 UTC (rev 12487)
@@ -10,13 +10,12 @@
import java.util.List;
import java.util.Set;
-import javax.el.ValueExpression;
import javax.enterprise.context.SessionScoped;
-import javax.inject.Inject;
-import javax.inject.Named;
import javax.enterprise.inject.Instance;
import javax.enterprise.inject.spi.Bean;
import javax.enterprise.inject.spi.BeanManager;
+import javax.inject.Inject;
+import javax.inject.Named;
import javax.security.auth.Subject;
import javax.security.auth.callback.Callback;
import javax.security.auth.callback.CallbackHandler;
@@ -41,7 +40,6 @@
import org.jboss.seam.security.events.QuietLoginEvent;
import org.jboss.seam.security.management.IdentityManager;
import org.jboss.seam.security.permission.PermissionMapper;
-
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
More information about the seam-commits
mailing list