[seam-commits] Seam SVN: r13294 - 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
Wed Jun 23 23:08:29 EDT 2010


Author: shane.bryzak at jboss.com
Date: 2010-06-23 23:08:28 -0400 (Wed, 23 Jun 2010)
New Revision: 13294

Added:
   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
Modified:
   modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectType.java
Log:
added credential classes

Added: 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	                        (rev 0)
+++ modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectCredential.java	2010-06-24 03:08:28 UTC (rev 13294)
@@ -0,0 +1,71 @@
+package org.jboss.seam.security.examples.idmconsole.model;
+
+import java.io.Serializable;
+
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.ManyToOne;
+
+import org.jboss.seam.security.annotations.management.IdentityProperty;
+import org.jboss.seam.security.annotations.management.PropertyType;
+
+/**
+ * Holds credential values
+ * 
+ * @author Shane Bryzak
+ */
+ at Entity
+public class IdentityObjectCredential implements Serializable
+{
+   private static final long serialVersionUID = 1359292319831314803L;
+   
+   private Long id;
+   private IdentityObject identityObject;
+   private IdentityObjectCredentialType type;
+   private String value;
+   
+   @Id @GeneratedValue
+   public Long getId()
+   {
+      return id;
+   }
+   
+   public void setId(Long id)
+   {
+      this.id = id;
+   }
+   
+   @ManyToOne
+   public IdentityObject getIdentityObject()
+   {
+      return identityObject;
+   }
+   
+   public void setIdentityObject(IdentityObject identityObject)
+   {
+      this.identityObject = identityObject;
+   }
+   
+   @ManyToOne @IdentityProperty(PropertyType.TYPE)
+   public IdentityObjectCredentialType getType()
+   {
+      return type;
+   }
+   
+   public void setType(IdentityObjectCredentialType type)
+   {
+      this.type = type;
+   }
+   
+   @IdentityProperty(PropertyType.VALUE)
+   public String getValue()
+   {
+      return value;
+   }
+   
+   public void setValue(String value)
+   {
+      this.value = value;
+   }
+}

Added: 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	                        (rev 0)
+++ modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectCredentialType.java	2010-06-24 03:08:28 UTC (rev 13294)
@@ -0,0 +1,46 @@
+package org.jboss.seam.security.examples.idmconsole.model;
+
+import java.io.Serializable;
+
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+
+import org.jboss.seam.security.annotations.management.IdentityProperty;
+import org.jboss.seam.security.annotations.management.PropertyType;
+
+/**
+ * Lookup table containing credential types
+ * 
+ * @author Shane Bryzak
+ */
+ at Entity
+public class IdentityObjectCredentialType implements Serializable
+{
+   private static final long serialVersionUID = 282711089697868242L;
+   
+   private Long id;
+   private String name;
+   
+   @Id @GeneratedValue
+   public Long getId()
+   {
+      return id;
+   }
+   
+   public void setId(Long id)
+   {
+      this.id = id;
+   }
+   
+   @IdentityProperty(PropertyType.NAME)
+   public String getName()
+   {
+      return name;
+   }
+   
+   public void setName(String name)
+   {
+      this.name = 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-06-24 01:28:26 UTC (rev 13293)
+++ modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectType.java	2010-06-24 03:08:28 UTC (rev 13294)
@@ -10,9 +10,9 @@
 import org.jboss.seam.security.annotations.management.PropertyType;
 
 /**
- * 
+ * A lookup table containing identity object types
+ *  
  * @author Shane Bryzak
- *
  */
 @Entity
 public class IdentityObjectType implements Serializable



More information about the seam-commits mailing list