Author: anil.saldhana(a)jboss.com
Date: 2008-07-11 12:33:16 -0400 (Fri, 11 Jul 2008)
New Revision: 24
Added:
trunk/identity-model/src/main/java/org/jboss/identity/model/groups/GroupType.java
Modified:
trunk/identity-api/src/main/java/org/jboss/identity/api/managers/IdentityManager.java
Log:
JBID-14: group type and IdentityManager creating a group of a particular group type
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-11
16:29:14 UTC (rev 23)
+++
trunk/identity-api/src/main/java/org/jboss/identity/api/managers/IdentityManager.java 2008-07-11
16:33:16 UTC (rev 24)
@@ -29,6 +29,7 @@
import org.jboss.identity.model.RoleType;
import org.jboss.identity.model.domain.Realm;
import org.jboss.identity.model.groups.Group;
+import org.jboss.identity.model.groups.GroupType;
/**
* Performs Operations associated with a Realm
@@ -88,6 +89,15 @@
Group createGroup(Realm realm, String groupName);
/**
+ * Create a group of a particular type
+ * @param realm
+ * @param groupName
+ * @param groupType
+ * @return
+ */
+ Group createGroup(Realm realm, String groupName, GroupType groupType);
+
+ /**
* <p>Create a role in the realm</p>
* @param realm
* @param roleName name of role
Added: trunk/identity-model/src/main/java/org/jboss/identity/model/groups/GroupType.java
===================================================================
--- trunk/identity-model/src/main/java/org/jboss/identity/model/groups/GroupType.java
(rev 0)
+++
trunk/identity-model/src/main/java/org/jboss/identity/model/groups/GroupType.java 2008-07-11
16:33:16 UTC (rev 24)
@@ -0,0 +1,36 @@
+/*
+ * 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;
+
+/**
+ * Type of Group
+ * @author Anil.Saldhana(a)redhat.com
+ * @since Jul 11, 2008
+ */
+public interface GroupType
+{
+ /**
+ * Get the name of the type of group
+ * @return
+ */
+ String getName();
+}
\ No newline at end of file