[jboss-identity-commits] JBoss Identity SVN: r29 - 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
Tue Jul 22 19:09:00 EDT 2008


Author: anil.saldhana at jboss.com
Date: 2008-07-22 19:09:00 -0400 (Tue, 22 Jul 2008)
New Revision: 29

Added:
   trunk/identity-model/src/main/java/org/jboss/identity/model/domain/SimpleModelRoot.java
   trunk/identity-model/src/main/java/org/jboss/identity/model/groups/SimpleGroupType.java
Log:
simple impl

Added: trunk/identity-model/src/main/java/org/jboss/identity/model/domain/SimpleModelRoot.java
===================================================================
--- trunk/identity-model/src/main/java/org/jboss/identity/model/domain/SimpleModelRoot.java	                        (rev 0)
+++ trunk/identity-model/src/main/java/org/jboss/identity/model/domain/SimpleModelRoot.java	2008-07-22 23:09:00 UTC (rev 29)
@@ -0,0 +1,53 @@
+/*
+ * 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.domain;
+
+/**
+ * Simple Implementation of Model Root
+ * @author Anil.Saldhana at redhat.com
+ * @since Jul 22, 2008
+ */
+public class SimpleModelRoot implements ModelRoot
+{ 
+   protected String name;
+   
+   public SimpleModelRoot(String name)
+   { 
+      this.name = name;
+   }
+
+   /**
+    * @see ModelRoot#getName()
+    */
+   public String getName()
+   { 
+      return name;
+   }
+
+   @Override
+   public String toString()
+   {
+      StringBuilder builder = new StringBuilder("Group[");
+      builder.append(name).append("]");
+      return builder.toString();
+   } 
+}
\ No newline at end of file

Added: trunk/identity-model/src/main/java/org/jboss/identity/model/groups/SimpleGroupType.java
===================================================================
--- trunk/identity-model/src/main/java/org/jboss/identity/model/groups/SimpleGroupType.java	                        (rev 0)
+++ trunk/identity-model/src/main/java/org/jboss/identity/model/groups/SimpleGroupType.java	2008-07-22 23:09:00 UTC (rev 29)
@@ -0,0 +1,53 @@
+/*
+ * 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.groups;
+
+/**
+ * Simple Implementation of Group Type
+ * @author Anil.Saldhana at redhat.com
+ * @since Jul 22, 2008
+ */
+public class SimpleGroupType implements GroupType
+{
+   protected String name;
+    
+   public SimpleGroupType(String name)
+   { 
+      this.name = name;
+   }
+
+   /**
+    * @see GroupType#getName()
+    */
+   public String getName()
+   { 
+      return null;
+   }
+
+   @Override
+   public String toString()
+   { 
+      StringBuilder builder = new StringBuilder("Group[");
+      builder.append(name).append("]");
+      return builder.toString();
+   }  
+}




More information about the jboss-identity-commits mailing list