JBoss Identity SVN: r14 - trunk/identity-api/src/main/java/org/jboss/identity/api/managers.
by jboss-identity-commits@lists.jboss.org
Author: anil.saldhana(a)jboss.com
Date: 2008-07-10 12:54:42 -0400 (Thu, 10 Jul 2008)
New Revision: 14
Modified:
trunk/identity-api/src/main/java/org/jboss/identity/api/managers/RelationshipManager.java
Log:
JBID-5: additional api
Modified: trunk/identity-api/src/main/java/org/jboss/identity/api/managers/RelationshipManager.java
===================================================================
--- trunk/identity-api/src/main/java/org/jboss/identity/api/managers/RelationshipManager.java 2008-07-10 14:35:34 UTC (rev 13)
+++ trunk/identity-api/src/main/java/org/jboss/identity/api/managers/RelationshipManager.java 2008-07-10 16:54:42 UTC (rev 14)
@@ -21,13 +21,18 @@
*/
package org.jboss.identity.api.managers;
+import java.util.List;
+import java.util.Set;
+
+import org.jboss.identity.model.Identity;
+import org.jboss.identity.model.Role;
import org.jboss.identity.model.domain.Realm;
import org.jboss.identity.model.groups.Group;
import org.jboss.identity.model.relation.RelationshipType;
/**
- * Manages the relationships between
- * groups, realms
+ * <p>Manages the relationships between
+ * roles, groups, identities and realms</p>
* @author Anil.Saldhana(a)redhat.com
* @since Jul 10, 2008
*/
@@ -48,4 +53,36 @@
* @param relationshipType
*/
void associate(Realm realmA, Realm realmB, RelationshipType relationshipType);
+
+ /**
+ * <p>Associate a role with an Identity</p>
+ * @param realm
+ * @param identity
+ * @param aRole
+ */
+ void associate(Realm realm, Identity identity, Role aRole);
+
+ /**
+ * <p>Associate a list of roles with an Identity</p>
+ * @param realm
+ * @param identity
+ * @param aRoleList
+ */
+ void associate(Realm realm, Identity identity, List<Role> aRoleList);
+
+ /**
+ * <p>Associate a group with an identity</p>
+ * @param realm
+ * @param identity
+ * @param aGroup
+ */
+ void associate(Realm realm,Identity identity, Group aGroup);
+
+ /**
+ * <p>Associate a set of groups with an identity</p>
+ * @param realm
+ * @param identity
+ * @param aGroupSet
+ */
+ void associate(Realm realm,Identity identity, Set<Group> aGroupSet);
}
\ No newline at end of file
16 years, 6 months
JBoss Identity SVN: r13 - trunk/identity-api/src/main/java/org/jboss/identity/api/managers.
by jboss-identity-commits@lists.jboss.org
Author: anil.saldhana(a)jboss.com
Date: 2008-07-10 10:35:34 -0400 (Thu, 10 Jul 2008)
New Revision: 13
Modified:
trunk/identity-api/src/main/java/org/jboss/identity/api/managers/IdentityManager.java
Log:
remove comment
Modified: trunk/identity-api/src/main/java/org/jboss/identity/api/managers/IdentityManager.java
===================================================================
--- trunk/identity-api/src/main/java/org/jboss/identity/api/managers/IdentityManager.java 2008-07-10 08:41:59 UTC (rev 12)
+++ trunk/identity-api/src/main/java/org/jboss/identity/api/managers/IdentityManager.java 2008-07-10 14:35:34 UTC (rev 13)
@@ -53,12 +53,11 @@
* @return
*/
Realm bootstrap(String realmName, InputStream config);
-
+
/**
* <p>Return a realm</p>
* @param realmName
- * @param shouldBootstrap Should we bootstrap if a realm does not exist?
- * (Default: true)
+ * @param shouldBootstrap Should we bootstrap if a realm does not exist?
* @return
*/
Realm getRealm(String realmName, boolean shouldBootstrap);
16 years, 6 months
JBoss Identity SVN: r12 - in trunk/identity-api: src/main/java/org/jboss/identity/api and 1 other directories.
by jboss-identity-commits@lists.jboss.org
Author: anil.saldhana(a)jboss.com
Date: 2008-07-10 04:41:59 -0400 (Thu, 10 Jul 2008)
New Revision: 12
Added:
trunk/identity-api/src/main/java/org/jboss/identity/api/managers/
trunk/identity-api/src/main/java/org/jboss/identity/api/managers/IdentityManager.java
trunk/identity-api/src/main/java/org/jboss/identity/api/managers/RelationshipManager.java
Modified:
trunk/identity-api/.classpath
trunk/identity-api/pom.xml
Log:
JBID-5: managers
Modified: trunk/identity-api/.classpath
===================================================================
--- trunk/identity-api/.classpath 2008-07-10 08:41:27 UTC (rev 11)
+++ trunk/identity-api/.classpath 2008-07-10 08:41:59 UTC (rev 12)
@@ -2,5 +2,6 @@
<classpath>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/identity-model"/>
<classpathentry kind="output" path="target/eclipse-classes"/>
</classpath>
Modified: trunk/identity-api/pom.xml
===================================================================
--- trunk/identity-api/pom.xml 2008-07-10 08:41:27 UTC (rev 11)
+++ trunk/identity-api/pom.xml 2008-07-10 08:41:59 UTC (rev 12)
@@ -28,6 +28,11 @@
</scm>
<dependencies>
<dependency>
+ <groupId>org.jboss.identity</groupId>
+ <artifactId>jboss-identity-model</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
Added: trunk/identity-api/src/main/java/org/jboss/identity/api/managers/IdentityManager.java
===================================================================
--- trunk/identity-api/src/main/java/org/jboss/identity/api/managers/IdentityManager.java (rev 0)
+++ trunk/identity-api/src/main/java/org/jboss/identity/api/managers/IdentityManager.java 2008-07-10 08:41:59 UTC (rev 12)
@@ -0,0 +1,90 @@
+/*
+ * 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.api.managers;
+
+import java.io.InputStream;
+
+import org.jboss.identity.model.Identity;
+import org.jboss.identity.model.Role;
+import org.jboss.identity.model.RoleType;
+import org.jboss.identity.model.domain.Realm;
+import org.jboss.identity.model.groups.Group;
+
+/**
+ * Performs Operations associated with a Realm
+ * including the models
+ * @author Anil.Saldhana(a)redhat.com
+ * @since Jul 10, 2008
+ */
+public interface IdentityManager
+{
+ /**
+ * <p>Create a Realm or return an already
+ * created realm. Bootstrapping includes generating
+ * the models in the realm</p>
+ * @param realmName
+ * @return
+ */
+ Realm bootstrap(String realmName);
+
+ /**
+ * <p>Bootstrap a realm given a configuration</p>
+ * @param realmName
+ * @param config
+ * @return
+ */
+ Realm bootstrap(String realmName, InputStream config);
+
+ /**
+ * <p>Return a realm</p>
+ * @param realmName
+ * @param shouldBootstrap Should we bootstrap if a realm does not exist?
+ * (Default: true)
+ * @return
+ */
+ Realm getRealm(String realmName, boolean shouldBootstrap);
+
+ /**
+ * <p>Create an identity in the realm</p>
+ * @param realm
+ * @param identityName
+ * @return
+ */
+ Identity createIdentity(Realm realm, String identityName);
+
+ /**
+ * <p>Create a group in the realm</p>
+ * @param realm
+ * @param groupName
+ * @return
+ */
+ Group createGroup(Realm realm, String groupName);
+
+ /**
+ * <p>Create a role in the realm</p>
+ * @param realm
+ * @param roleName name of role
+ * @param roleType Type of Role
+ * @return
+ */
+ Role createRole(Realm realm, String roleName, RoleType roleType);
+}
\ No newline at end of file
Added: trunk/identity-api/src/main/java/org/jboss/identity/api/managers/RelationshipManager.java
===================================================================
--- trunk/identity-api/src/main/java/org/jboss/identity/api/managers/RelationshipManager.java (rev 0)
+++ trunk/identity-api/src/main/java/org/jboss/identity/api/managers/RelationshipManager.java 2008-07-10 08:41:59 UTC (rev 12)
@@ -0,0 +1,51 @@
+/*
+ * 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.api.managers;
+
+import org.jboss.identity.model.domain.Realm;
+import org.jboss.identity.model.groups.Group;
+import org.jboss.identity.model.relation.RelationshipType;
+
+/**
+ * Manages the relationships between
+ * groups, realms
+ * @author Anil.Saldhana(a)redhat.com
+ * @since Jul 10, 2008
+ */
+public interface RelationshipManager
+{
+ /**
+ * <p>Associate a relationship between two groups</p>
+ * @param groupA
+ * @param groupB
+ * @param relationshipType
+ */
+ void associate(Group groupA, Group groupB, RelationshipType relationshipType);
+
+ /**
+ * <p>Associate a relationship between two realms</p>
+ * @param realmA
+ * @param realmB
+ * @param relationshipType
+ */
+ void associate(Realm realmA, Realm realmB, RelationshipType relationshipType);
+}
\ No newline at end of file
16 years, 6 months
JBoss Identity SVN: r11 - trunk/identity-model/src/main/java/org/jboss/identity/model/domain.
by jboss-identity-commits@lists.jboss.org
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
16 years, 6 months
JBoss Identity SVN: r10 - in trunk/identity-model/src/main/java/org/jboss/identity/model: domain and 2 other directories.
by jboss-identity-commits@lists.jboss.org
Author: anil.saldhana(a)jboss.com
Date: 2008-07-09 17:15:16 -0400 (Wed, 09 Jul 2008)
New Revision: 10
Added:
trunk/identity-model/src/main/java/org/jboss/identity/model/Identity.java
trunk/identity-model/src/main/java/org/jboss/identity/model/IdentityAttribute.java
trunk/identity-model/src/main/java/org/jboss/identity/model/Role.java
trunk/identity-model/src/main/java/org/jboss/identity/model/RoleType.java
trunk/identity-model/src/main/java/org/jboss/identity/model/domain/
trunk/identity-model/src/main/java/org/jboss/identity/model/domain/IdentityDomain.java
trunk/identity-model/src/main/java/org/jboss/identity/model/groups/
trunk/identity-model/src/main/java/org/jboss/identity/model/groups/Group.java
trunk/identity-model/src/main/java/org/jboss/identity/model/relation/
trunk/identity-model/src/main/java/org/jboss/identity/model/relation/RelationshipType.java
Log:
JBID-4: identity model
Added: trunk/identity-model/src/main/java/org/jboss/identity/model/Identity.java
===================================================================
--- trunk/identity-model/src/main/java/org/jboss/identity/model/Identity.java (rev 0)
+++ trunk/identity-model/src/main/java/org/jboss/identity/model/Identity.java 2008-07-09 21:15:16 UTC (rev 10)
@@ -0,0 +1,58 @@
+/*
+ * 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;
+
+import java.util.List;
+
+import org.jboss.identity.model.groups.Group;
+
+/**
+ * Represents an Identity
+ * @author Anil.Saldhana(a)redhat.com
+ * @since Jun 30, 2008
+ */
+public interface Identity
+{
+ /**
+ * <p>Return the name of the identity</p>
+ * @return
+ */
+ String getName();
+
+ /**
+ * <p>Return a list of attributes</p>
+ * @return
+ */
+ List<IdentityAttribute> getAttributes();
+
+ /**
+ * <p>Return a list of Roles</p>
+ * @return
+ */
+ List<Role> getRoles();
+
+ /**
+ * <p>Return a list of groups</p>
+ * @return
+ */
+ List<Group> getGroups();
+}
\ No newline at end of file
Added: trunk/identity-model/src/main/java/org/jboss/identity/model/IdentityAttribute.java
===================================================================
--- trunk/identity-model/src/main/java/org/jboss/identity/model/IdentityAttribute.java (rev 0)
+++ trunk/identity-model/src/main/java/org/jboss/identity/model/IdentityAttribute.java 2008-07-09 21:15:16 UTC (rev 10)
@@ -0,0 +1,31 @@
+/*
+ * 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;
+
+/**
+ * An attribute of an identity
+ * @author Anil.Saldhana(a)redhat.com
+ * @since Jun 30, 2008
+ */
+public interface IdentityAttribute
+{
+}
\ No newline at end of file
Added: trunk/identity-model/src/main/java/org/jboss/identity/model/Role.java
===================================================================
--- trunk/identity-model/src/main/java/org/jboss/identity/model/Role.java (rev 0)
+++ trunk/identity-model/src/main/java/org/jboss/identity/model/Role.java 2008-07-09 21:15:16 UTC (rev 10)
@@ -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 represents a role
+ * @author Anil.Saldhana(a)redhat.com
+ * @since Jun 30, 2008
+ */
+public interface Role
+{
+ RoleType getRoleType();
+}
\ No newline at end of file
Added: trunk/identity-model/src/main/java/org/jboss/identity/model/RoleType.java
===================================================================
--- trunk/identity-model/src/main/java/org/jboss/identity/model/RoleType.java (rev 0)
+++ trunk/identity-model/src/main/java/org/jboss/identity/model/RoleType.java 2008-07-09 21:15:16 UTC (rev 10)
@@ -0,0 +1,48 @@
+/*
+ * 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;
+
+/**
+ * Type of Role
+ * @author Anil.Saldhana(a)redhat.com
+ * @since Jun 30, 2008
+ */
+public enum RoleType
+{
+ /**
+ * Plain Role
+ */
+ REGULAR,
+ /**
+ * A role that is nested within another
+ */
+ NESTED,
+ /**
+ * A role that is part of an hierarchy
+ * (Eg. LDAP Role)
+ */
+ HIERARCHICAL,
+ /**
+ * Custom Role
+ */
+ CUSTOM;
+}
\ No newline at end of file
Added: 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 (rev 0)
+++ trunk/identity-model/src/main/java/org/jboss/identity/model/domain/IdentityDomain.java 2008-07-09 21:15:16 UTC (rev 10)
@@ -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.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/groups/Group.java
===================================================================
--- trunk/identity-model/src/main/java/org/jboss/identity/model/groups/Group.java (rev 0)
+++ trunk/identity-model/src/main/java/org/jboss/identity/model/groups/Group.java 2008-07-09 21:15:16 UTC (rev 10)
@@ -0,0 +1,63 @@
+/*
+ * 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;
+
+import java.util.List;
+
+import org.jboss.identity.model.Role;
+
+/**
+ * Represents a Group
+ * @author Anil.Saldhana(a)redhat.com
+ * @since Jul 9, 2008
+ */
+public interface Group
+{
+ /**
+ * <p>Get the name</p>
+ * @return
+ */
+ String getName();
+
+ /**
+ * <p>Get the list of roles</p>
+ * @return
+ */
+ List<Role> getRoles();
+
+ /**
+ * <p>Get the parent group in hierarchy.</p>
+ * <p> May be <i>Null<i>.</p>
+ * @return
+ */
+ Group getParent();
+
+ /**
+ * <p>Get the subgroups contained.</p>
+ * <p>May be <i>Null<i>.</p>
+ * @return
+ */
+ List<Group> getSubGroups();
+}
\ No newline at end of file
Added: trunk/identity-model/src/main/java/org/jboss/identity/model/relation/RelationshipType.java
===================================================================
--- trunk/identity-model/src/main/java/org/jboss/identity/model/relation/RelationshipType.java (rev 0)
+++ trunk/identity-model/src/main/java/org/jboss/identity/model/relation/RelationshipType.java 2008-07-09 21:15:16 UTC (rev 10)
@@ -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.relation;
+
+/**
+ * Defines a <b>relationship</b> between groups, domains etc
+ * @author Anil.Saldhana(a)redhat.com
+ * @since Jul 9, 2008
+ */
+public interface RelationshipType
+{
+ String getName();
+}
\ No newline at end of file
16 years, 6 months