|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.bc.group.GroupRemoveChildMapper
public class GroupRemoveChildMapper
Holds the parameters that specify which children should be removed from which groups. Also holds a list of
default groups which children can be registered to be removed from.
This class is not threadsafe.
The only time you want to use the register methods and not the register(String)
method is
when you are updating multiple groups and multiple children and not all children are being removed from all groups.
In all other cases the usage pattern for this class should be:
GroupRemoveChildMapper mapper = new GroupRemoveChildMapper(listOfGroupNamesToRemoveFrom);
mapper.registerForSelected(childNameWhoShouldBeRemovedFromGroups);
Constructor Summary | |
---|---|
GroupRemoveChildMapper()
Creates the mapper with no default groups. |
|
GroupRemoveChildMapper(List defaultGroupNames)
Creates the mapper with the given groups marked as default groups. |
Method Summary | |
---|---|
Iterator |
childIterator()
Provides an iterator over the childNames. |
List |
getDefaultGroupNames()
Returns the default groups. |
Collection |
getGroups(String childName)
Provides an unmodifiable collection of all registered groups for a child. |
Iterator |
getGroupsIterator(String childName)
Provides an Iterator to loop over all registered groups for a child. |
boolean |
isRemoveFromAllSelected(String childName)
Indicates that the given child is to be removed from all default groups. |
GroupRemoveChildMapper |
register(String childName)
Registers the given childName to be removed from the configured list of default groups. |
GroupRemoveChildMapper |
register(String childName,
Collection groupNames)
Registers the given childName to be removed from the specified group names. |
GroupRemoveChildMapper |
register(String childName,
String groupName)
Registers the given childName to be removed from the specified groupName. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GroupRemoveChildMapper()
public GroupRemoveChildMapper(List defaultGroupNames)
defaultGroupNames
- the defaultGroupNames.Method Detail |
---|
public GroupRemoveChildMapper register(String childName)
childName
- identifies the child to be removed from the default groups.
public GroupRemoveChildMapper register(String childName, String groupName)
childName
- identifies the child to be removed from the default groups.groupName
- identifies the group to remove the child from.
public GroupRemoveChildMapper register(String childName, Collection groupNames)
childName
- identifies the child to be removed from the default groups.groupNames
- a collection of groupNames that identify the groups to remove the child from.
public boolean isRemoveFromAllSelected(String childName)
childName
- identifies the child to be removed from the default groups.
public Iterator getGroupsIterator(String childName)
childName
- identifies the child whose groups we want to iterate over.
public Collection getGroups(String childName)
childName
- identifies the child to be removed from the default groups.
public Iterator childIterator()
public List getDefaultGroupNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |