|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.core.user.GroupUtils
public class GroupUtils
A utility class for operating on groups.
UserUtils| Constructor Summary | |
|---|---|
GroupUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
existsGroup(java.lang.String name)
A simple method to tell if a group already exists or not |
static com.opensymphony.user.Group |
getGroup(java.lang.String name)
Get a group from the underlying user manager. |
static java.util.Collection |
getGroups()
|
static com.opensymphony.user.Group |
getGroupSafely(java.lang.String name)
This method gets a group from OSUser - however if the group does not exist, it tries to create it and then return it (mitigates the need for a setup file). |
static void |
removeGroup(com.opensymphony.user.Group group)
This will remove a group, and remove any users from that group |
static void |
sortGroupNames(java.util.List groups)
Sort group names in alphabetical (*not* ascii) order. |
static void |
sortGroups(java.util.List groups)
Sort group names in alphabetical (*not* ascii) order. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GroupUtils()
| Method Detail |
|---|
public static com.opensymphony.user.Group getGroupSafely(java.lang.String name)
throws com.opensymphony.user.ImmutableException
com.opensymphony.user.ImmutableExceptionpublic static com.opensymphony.user.Group getGroup(java.lang.String name)
public static boolean existsGroup(java.lang.String name)
public static java.util.Collection getGroups()
public static void sortGroups(java.util.List groups)
groups - public static void sortGroupNames(java.util.List groups)
groups -
public static void removeGroup(com.opensymphony.user.Group group)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||