[jboss-identity-commits] JBoss Identity SVN: r20 - in trunk/identity-model/src/main/java/org/jboss/identity/model: groups and 1 other directory.

jboss-identity-commits at lists.jboss.org jboss-identity-commits at lists.jboss.org
Thu Jul 10 15:30:20 EDT 2008


Author: anil.saldhana at jboss.com
Date: 2008-07-10 15:30:20 -0400 (Thu, 10 Jul 2008)
New Revision: 20

Added:
   trunk/identity-model/src/main/java/org/jboss/identity/model/IdentityType.java
Modified:
   trunk/identity-model/src/main/java/org/jboss/identity/model/Identity.java
   trunk/identity-model/src/main/java/org/jboss/identity/model/Role.java
   trunk/identity-model/src/main/java/org/jboss/identity/model/groups/Group.java
Log:
JBID-9: identity type

Modified: trunk/identity-model/src/main/java/org/jboss/identity/model/Identity.java
===================================================================
--- trunk/identity-model/src/main/java/org/jboss/identity/model/Identity.java	2008-07-10 18:19:55 UTC (rev 19)
+++ trunk/identity-model/src/main/java/org/jboss/identity/model/Identity.java	2008-07-10 19:30:20 UTC (rev 20)
@@ -30,7 +30,7 @@
  * @author Anil.Saldhana at redhat.com
  * @since Jun 30, 2008
  */
-public interface Identity
+public interface Identity extends IdentityType
 {
    /**
     * <p>Return the name of the identity</p>

Added: trunk/identity-model/src/main/java/org/jboss/identity/model/IdentityType.java
===================================================================
--- trunk/identity-model/src/main/java/org/jboss/identity/model/IdentityType.java	                        (rev 0)
+++ trunk/identity-model/src/main/java/org/jboss/identity/model/IdentityType.java	2008-07-10 19:30:20 UTC (rev 20)
@@ -0,0 +1,32 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors. 
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.identity.model;
+
+/**
+ * Marker Interface representing
+ * an object of the Identity Model
+ * @author Anil.Saldhana at redhat.com
+ * @since Jul 10, 2008
+ */
+public interface IdentityType
+{
+}

Modified: trunk/identity-model/src/main/java/org/jboss/identity/model/Role.java
===================================================================
--- trunk/identity-model/src/main/java/org/jboss/identity/model/Role.java	2008-07-10 18:19:55 UTC (rev 19)
+++ trunk/identity-model/src/main/java/org/jboss/identity/model/Role.java	2008-07-10 19:30:20 UTC (rev 20)
@@ -26,7 +26,7 @@
  * @author Anil.Saldhana at redhat.com
  * @since Jun 30, 2008
  */
-public interface Role
+public interface Role extends IdentityType
 {
    RoleType getRoleType();
 }
\ No newline at end of file

Modified: trunk/identity-model/src/main/java/org/jboss/identity/model/groups/Group.java
===================================================================
--- trunk/identity-model/src/main/java/org/jboss/identity/model/groups/Group.java	2008-07-10 18:19:55 UTC (rev 19)
+++ trunk/identity-model/src/main/java/org/jboss/identity/model/groups/Group.java	2008-07-10 19:30:20 UTC (rev 20)
@@ -26,6 +26,7 @@
 
 import java.util.List;
 
+import org.jboss.identity.model.IdentityType;
 import org.jboss.identity.model.Role;
 
 /**
@@ -33,7 +34,7 @@
  * @author Anil.Saldhana at redhat.com
  * @since Jul 9, 2008
  */
-public interface Group
+public interface Group extends IdentityType
 {
   /**
    * <p>Get the name</p>




More information about the jboss-identity-commits mailing list