Author: anil.saldhana(a)jboss.com
Date: 2008-07-10 04:41:27 -0400 (Thu, 10 Jul 2008)
New Revision: 11
Added:
trunk/identity-model/src/main/java/org/jboss/identity/model/domain/ModelRoot.java
trunk/identity-model/src/main/java/org/jboss/identity/model/domain/Realm.java
Removed:
trunk/identity-model/src/main/java/org/jboss/identity/model/domain/IdentityDomain.java
Log:
JBID-4: realm and modelroot
Deleted:
trunk/identity-model/src/main/java/org/jboss/identity/model/domain/IdentityDomain.java
===================================================================
---
trunk/identity-model/src/main/java/org/jboss/identity/model/domain/IdentityDomain.java 2008-07-09
21:15:16 UTC (rev 10)
+++
trunk/identity-model/src/main/java/org/jboss/identity/model/domain/IdentityDomain.java 2008-07-10
08:41:27 UTC (rev 11)
@@ -1,32 +0,0 @@
-/*
- * 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;
-
-/**
- * <p>The <b>realm</b> under which the various models and policies
- * are applicable.</p>
- * @author Anil.Saldhana(a)redhat.com
- * @since Jul 9, 2008
- */
-public interface IdentityDomain
-{
-}
Added: trunk/identity-model/src/main/java/org/jboss/identity/model/domain/ModelRoot.java
===================================================================
--- trunk/identity-model/src/main/java/org/jboss/identity/model/domain/ModelRoot.java
(rev 0)
+++
trunk/identity-model/src/main/java/org/jboss/identity/model/domain/ModelRoot.java 2008-07-10
08:41:27 UTC (rev 11)
@@ -0,0 +1,38 @@
+/*
+ * 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;
+
+/**
+ * Represents the root of a particular
+ * model (identity, group or relationship)
+ * @author Anil.Saldhana(a)redhat.com
+ * @since Jul 9, 2008
+ */
+public interface ModelRoot
+{
+ /**
+ * Represents the model that it
+ * represents.
+ * @return
+ */
+ String getName();
+}
\ No newline at end of file
Added: trunk/identity-model/src/main/java/org/jboss/identity/model/domain/Realm.java
===================================================================
--- trunk/identity-model/src/main/java/org/jboss/identity/model/domain/Realm.java
(rev 0)
+++
trunk/identity-model/src/main/java/org/jboss/identity/model/domain/Realm.java 2008-07-10
08:41:27 UTC (rev 11)
@@ -0,0 +1,52 @@
+/*
+ * 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;
+
+/**
+ * <p>The <b>realm</b> under which the various models and policies
+ * are applicable.</p>
+ * @author Anil.Saldhana(a)redhat.com
+ * @since Jul 9, 2008
+ */
+public interface Realm
+{
+ /**
+ * <p>Get the root of the identity Model</p>
+ * <p>An identity will have references to the groups
+ * (implying group model)
+ * </p>
+ * @return
+ */
+ ModelRoot getIdentityModelRoot();
+
+ /**
+ * Get the root of the Group Model
+ * @return
+ */
+ ModelRoot getGroupModelRoot();
+
+ /**
+ * Get the root of the Relationship Model
+ * @return
+ */
+ ModelRoot getRelationshipModelRoot();
+}
\ No newline at end of file