[seam-commits] Seam SVN: r13298 - modules/security/trunk/impl/src/main/java/org/jboss/seam/security/management/picketlink.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Thu Jun 24 17:44:33 EDT 2010


Author: shane.bryzak at jboss.com
Date: 2010-06-24 17:44:33 -0400 (Thu, 24 Jun 2010)
New Revision: 13298

Modified:
   modules/security/trunk/impl/src/main/java/org/jboss/seam/security/management/picketlink/IdentitySessionProducer.java
Log:
set identity mapping type

Modified: modules/security/trunk/impl/src/main/java/org/jboss/seam/security/management/picketlink/IdentitySessionProducer.java
===================================================================
--- modules/security/trunk/impl/src/main/java/org/jboss/seam/security/management/picketlink/IdentitySessionProducer.java	2010-06-24 14:50:09 UTC (rev 13297)
+++ modules/security/trunk/impl/src/main/java/org/jboss/seam/security/management/picketlink/IdentitySessionProducer.java	2010-06-24 21:44:33 UTC (rev 13298)
@@ -72,7 +72,9 @@
       
       // Create the default realm
       RealmConfigurationMetaDataImpl realm = new RealmConfigurationMetaDataImpl();
-      realm.setId("default");      
+      realm.setId("default");
+      realm.setIdentityMapping("USER");
+      //realm.setGroupTypeMappings(groupTypeMappings)
       realm.setOptions(new HashMap<String,List<String>>());
       List<RealmConfigurationMetaData> realms = new ArrayList<RealmConfigurationMetaData>();      
       realms.add(realm);
@@ -92,8 +94,8 @@
       mapping.setIdentityObjectTypeMappings(identityObjectTypes);
       mapping.setIdentityStoreId("jpa");
       mappings.add(mapping);
-      repository.setIdentityStoreToIdentityObjectTypeMappings(mappings);      
-      
+      repository.setIdentityStoreToIdentityObjectTypeMappings(mappings);
+           
       repositories.add(repository);
       metadata.setRepositories(repositories);
             
@@ -116,7 +118,8 @@
       throws IdentityException
    {
       Map<String,Object> sessionOptions = new HashMap<String,Object>();
-      sessionOptions.put("ENTITY_MANAGER", entityManagerInstance.get());      
+      sessionOptions.put("ENTITY_MANAGER", entityManagerInstance.get());   
+      
       IdentitySession session = factory.createIdentitySession(getDefaultRealm(), sessionOptions);
       session.registerListener(this);
       return session;



More information about the seam-commits mailing list