|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.core.user.GroupUtils
GroupManager
instead. Since v4.4.
public class GroupUtils
A utility class for operating on groups.
This used to live in the atlassian-core library. This Class is deprecated and will be removed in JIRA v5.0
You should be using GroupManager
to do group operations.
If you cannot get this injected into your class and need static access, then use ComponentAccessor.getGroupManager()
.
Constructor Summary | |
---|---|
GroupUtils()
Deprecated. |
Method Summary | |
---|---|
static boolean |
existsGroup(String name)
Deprecated. A simple method to tell if a group already exists or not |
static Group |
getGroup(String name)
Deprecated. Get a group from the underlying user manager. |
static Collection |
getGroups()
Deprecated. |
static Group |
getGroupSafely(String name)
Deprecated. 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(Group group)
Deprecated. This will remove a group, and remove any users from that group |
static void |
sortGroupNames(List groups)
Deprecated. Sort group names in alphabetical (*not* ascii) order. |
static void |
sortGroups(List groups)
Deprecated. 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 Group getGroupSafely(String name) throws ImmutableException
ImmutableException
public static Group getGroup(String name)
public static boolean existsGroup(String name)
public static Collection getGroups()
public static void sortGroups(List groups)
groups
- public static void sortGroupNames(List groups)
groups
- public static void removeGroup(Group group) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |