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

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon May 24 05:25:48 EDT 2010


Author: shane.bryzak at jboss.com
Date: 2010-05-24 05:25:47 -0400 (Mon, 24 May 2010)
New Revision: 12780

Modified:
   modules/security/trunk/impl/src/main/java/org/jboss/seam/security/management/JpaIdentityStore.java
Log:
add JpaIdentityStore configuration properties

Modified: modules/security/trunk/impl/src/main/java/org/jboss/seam/security/management/JpaIdentityStore.java
===================================================================
--- modules/security/trunk/impl/src/main/java/org/jboss/seam/security/management/JpaIdentityStore.java	2010-05-24 09:10:22 UTC (rev 12779)
+++ modules/security/trunk/impl/src/main/java/org/jboss/seam/security/management/JpaIdentityStore.java	2010-05-24 09:25:47 UTC (rev 12780)
@@ -4,6 +4,7 @@
 import java.util.List;
 
 import javax.enterprise.context.ApplicationScoped;
+import javax.inject.Inject;
 
 import org.picketlink.idm.api.Group;
 import org.picketlink.idm.api.IdentityType;
@@ -21,6 +22,10 @@
 {
    private static final long serialVersionUID = 7729139146633529501L;
    
+   private static final String DEFAULT_USER_IDENTITY_TYPE = "USER";
+   private static final String DEFAULT_ROLE_IDENTITY_TYPE = "ROLE";
+   private static final String DEFAULT_GROUP_IDENTITY_TYPE = "GROUP";
+   
    private Logger log = LoggerFactory.getLogger(JpaIdentityStore.class);
    
    private Class<?> identityObjectEntity;
@@ -28,6 +33,80 @@
    private Class<?> identityObjectCredentialEntity;
    private Class<?> identityObjectAttributeEntity;
    
+   private String userIdentityType = DEFAULT_USER_IDENTITY_TYPE;
+   private String roleIdentityType = DEFAULT_ROLE_IDENTITY_TYPE;
+   private String groupIdentityType = DEFAULT_GROUP_IDENTITY_TYPE;
+   
+   public Class<?> getIdentityObjectEntity()
+   {
+      return identityObjectEntity;
+   }
+   
+   public void setIdentityObjectEntity(Class<?> identityObjectEntity)
+   {
+      this.identityObjectEntity = identityObjectEntity;
+   }
+   
+   public Class<?> getIdentityObjectRelationshipEntity()
+   {
+      return identityObjectRelationshipEntity;
+   }
+   
+   public void setIdentityObjectRelationshipEntity(Class<?> identityObjectRelationshipEntity)
+   {
+      this.identityObjectRelationshipEntity = identityObjectRelationshipEntity;
+   }
+   
+   public Class<?> getIdentityObjectCredentialEntity()
+   {
+      return identityObjectCredentialEntity;
+   }
+   
+   public void setIdentityObjectCredentialEntity(Class<?> identityObjectCredentialEntity)
+   {
+      this.identityObjectCredentialEntity = identityObjectCredentialEntity;
+   }
+   
+   public Class<?> getIdentityObjectAttributeEntity()
+   {
+      return identityObjectAttributeEntity;
+   }
+   
+   public void setIdentityObjectAttributeEntity(Class<?> identityObjectAttributeEntity)
+   {
+      this.identityObjectAttributeEntity = identityObjectAttributeEntity;
+   }
+   
+   public String getUserIdentityType()
+   {
+      return userIdentityType;
+   }
+   
+   public void setUserIdentityType(String userIdentityType)
+   {
+      this.userIdentityType = userIdentityType;
+   }
+   
+   public String getRoleIdentityType()
+   {
+      return roleIdentityType;
+   }
+   
+   public void setRoleIdentityType(String roleIdentityType)
+   {
+      this.roleIdentityType = roleIdentityType;
+   }
+   
+   public String getGroupIdentityType()
+   {
+      return groupIdentityType;
+   }
+   
+   public void setGroupIdentityType(String groupIdentityType)
+   {
+      this.groupIdentityType = groupIdentityType;
+   }
+   
    @Inject PasswordEncoder passwordEncoder;
 
    public boolean addUserToGroup(String username, Group group)
@@ -198,5 +277,4 @@
       // TODO Auto-generated method stub
       return false;
    }
-
 }



More information about the seam-commits mailing list