But in dvdstore sample, Identity and Actor are using side by side:
| public boolean authenticate()
| {
| User found;
| try {
| found = (User)
| entityManager.createQuery("select u from User u where
u.userName = #{identity.username} and u.password = #{identity.password}")
| .getSingleResult();
| } catch (PersistenceException e) {
| return false;
| }
|
| sessionContext.set(USER_VAR, found);
|
| actor.setId(identity.getUsername());
|
| if (found instanceof Admin)
| {
| actor.getGroupActorIds().add("shippers");
| actor.getGroupActorIds().add("reviewers");
| identity.addRole("admin");
| }
|
| return true;
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071221#4071221
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071221
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user