[seam-commits] Seam SVN: r12778 - modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon May 24 05:07:58 EDT 2010


Author: shane.bryzak at jboss.com
Date: 2010-05-24 05:07:58 -0400 (Mon, 24 May 2010)
New Revision: 12778

Modified:
   modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObject.java
   modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectCredential.java
   modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectCredentialType.java
   modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectRelationship.java
   modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectRelationshipType.java
   modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectType.java
Log:
add identity management annotations

Modified: modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObject.java
===================================================================
--- modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObject.java	2010-05-24 09:04:05 UTC (rev 12777)
+++ modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObject.java	2010-05-24 09:07:58 UTC (rev 12778)
@@ -7,6 +7,10 @@
 import javax.persistence.Id;
 import javax.persistence.ManyToOne;
 
+import org.jboss.seam.security.annotations.management.IdentityEntityName;
+import org.jboss.seam.security.annotations.management.IdentityEntityType;
+import org.jboss.seam.security.annotations.management.IdentityProperty;
+import org.jboss.seam.security.annotations.management.PropertyType;
 import org.picketlink.idm.spi.model.IdentityObjectType;
 
 /**
@@ -33,6 +37,7 @@
       this.id = id;
    }
    
+   @IdentityProperty(PropertyType.NAME)
    public String getName()
    {
       return name;
@@ -43,7 +48,7 @@
       this.name = name;
    }
    
-   @ManyToOne
+   @ManyToOne @IdentityProperty(PropertyType.TYPE)
    public IdentityObjectType getType()
    {
       return type;

Modified: modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectCredential.java
===================================================================
--- modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectCredential.java	2010-05-24 09:04:05 UTC (rev 12777)
+++ modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectCredential.java	2010-05-24 09:07:58 UTC (rev 12778)
@@ -7,6 +7,11 @@
 import javax.persistence.Id;
 import javax.persistence.ManyToOne;
 
+import org.jboss.seam.security.annotations.management.IdentityEntityType;
+import org.jboss.seam.security.annotations.management.IdentityEntityValue;
+import org.jboss.seam.security.annotations.management.IdentityProperty;
+import org.jboss.seam.security.annotations.management.PropertyType;
+
 /**
  * 
  * @author Shane Bryzak
@@ -43,6 +48,7 @@
       this.identityObject = identityObject;
    }
 
+   @ManyToOne @IdentityProperty(PropertyType.TYPE)
    public IdentityObjectCredentialType getCredentialType()
    {
       return credentialType;
@@ -53,6 +59,7 @@
       this.credentialType = credentialType;
    }
    
+   @IdentityProperty(PropertyType.VALUE)
    public String getValue()
    {
       return value;

Modified: modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectCredentialType.java
===================================================================
--- modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectCredentialType.java	2010-05-24 09:04:05 UTC (rev 12777)
+++ modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectCredentialType.java	2010-05-24 09:07:58 UTC (rev 12778)
@@ -6,6 +6,9 @@
 import javax.persistence.GeneratedValue;
 import javax.persistence.Id;
 
+import org.jboss.seam.security.annotations.management.IdentityProperty;
+import org.jboss.seam.security.annotations.management.PropertyType;
+
 /**
  * 
  * @author Shane Bryzak
@@ -29,6 +32,7 @@
       this.id = id;
    }
    
+   @IdentityProperty(PropertyType.NAME)
    public String getName()
    {
       return name;

Modified: modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectRelationship.java
===================================================================
--- modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectRelationship.java	2010-05-24 09:04:05 UTC (rev 12777)
+++ modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectRelationship.java	2010-05-24 09:07:58 UTC (rev 12778)
@@ -7,6 +7,9 @@
 import javax.persistence.Id;
 import javax.persistence.ManyToOne;
 
+import org.jboss.seam.security.annotations.management.IdentityProperty;
+import org.jboss.seam.security.annotations.management.PropertyType;
+
 /**
  * 
  * @author Shane Bryzak
@@ -33,6 +36,7 @@
       this.id = id;
    }
    
+   @IdentityProperty(PropertyType.NAME)
    public String getName()
    {
       return name;
@@ -43,7 +47,7 @@
       this.name = name;
    }
    
-   @ManyToOne
+   @ManyToOne @IdentityProperty(PropertyType.TYPE)
    public IdentityObjectRelationshipType getRelationshipType()
    {
       return relationshipType;
@@ -54,7 +58,7 @@
       this.relationshipType = relationshipType;
    }
    
-   @ManyToOne
+   @ManyToOne @IdentityProperty(PropertyType.RELATIONSHIP_FROM)
    public IdentityObject getFromObject()
    {
       return fromObject;
@@ -65,7 +69,7 @@
       this.fromObject = fromObject;
    }
    
-   @ManyToOne
+   @ManyToOne @IdentityProperty(PropertyType.RELATIONSHIP_TO)
    public IdentityObject getToObject()
    {
       return toObject;

Modified: modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectRelationshipType.java
===================================================================
--- modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectRelationshipType.java	2010-05-24 09:04:05 UTC (rev 12777)
+++ modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectRelationshipType.java	2010-05-24 09:07:58 UTC (rev 12778)
@@ -6,6 +6,9 @@
 import javax.persistence.GeneratedValue;
 import javax.persistence.Id;
 
+import org.jboss.seam.security.annotations.management.IdentityProperty;
+import org.jboss.seam.security.annotations.management.PropertyType;
+
 /**
  * 
  * @author Shane Bryzak
@@ -29,6 +32,7 @@
       this.id = id;
    }
    
+   @IdentityProperty(PropertyType.NAME)
    public String getName()
    {
       return name;

Modified: modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectType.java
===================================================================
--- modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectType.java	2010-05-24 09:04:05 UTC (rev 12777)
+++ modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectType.java	2010-05-24 09:07:58 UTC (rev 12778)
@@ -6,6 +6,9 @@
 import javax.persistence.GeneratedValue;
 import javax.persistence.Id;
 
+import org.jboss.seam.security.annotations.management.IdentityProperty;
+import org.jboss.seam.security.annotations.management.PropertyType;
+
 /**
  * 
  * @author Shane Bryzak
@@ -29,6 +32,7 @@
       this.id = id;
    }
    
+   @IdentityProperty(PropertyType.NAME)
    public String getName()
    {
       return name;



More information about the seam-commits mailing list