I've tried to apply the settings via the 'class' and 'precedence' attributes of 
the <security:identity .../> element but to no avail.

My implementation of Identity does work however with the following annotation - 
@Install(precedence = DEPLOYMENT). According to the javadocs this is the 
"precedence to use for components which override application components in a 
particular deployment". As this works for me I am not going to fiddle with my 
<security:identity .../> element any further, so if you get it working that way 
let us know.

For completeness I have included my code below. I hope this helps.


  | @Name("org.jboss.seam.security.identity")
  | @Scope(SESSION)
  | @Install(precedence = DEPLOYMENT) 
  | public class Identity extends org.jboss.seam.security.Identity {
  | 
  |     private static final long serialVersionUID = 3102222149672922155L;
  | 
  |     private String organisation;
  | 
  |     public static Identity instance() {
  |             if ( !Contexts.isSessionContextActive() ) {
  |                     throw new IllegalStateException("No active session 
context");
  |             }
  | 
  |             Identity instance = 
  |                     (Identity)Component.getInstance(Identity.class, 
ScopeType.SESSION, true);
  | 
  |             if (instance == null) {
  |                     throw new IllegalStateException("No Identity could be 
created");
  |             }
  |             return instance;
  |     }
  | 
  |     public String getOrganisation() {
  |             return organisation;
  |     }
  | 
  |     public void setOrganisation(String organisation) {
  |             setDirty(this.organisation, organisation);
  |             this.organisation = organisation;
  |     }
  | 
  | }
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017802#4017802

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017802
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to