Search in sources :

Example 1 with AssignedToEditList

use of net.sourceforge.processdash.ui.lib.autocomplete.AssignedToEditList in project processdash by dtuma.

the class TeamTimeColumn method changeInitials.

public static void changeInitials(WBSModel wbsModel, Map<String, String> initialsToChange) {
    AssignedToEditList initialsChanges = new AssignedToEditList();
    for (Entry<String, String> e : initialsToChange.entrySet()) {
        Change change = new Change();
        change.origInitials = e.getKey();
        change.newInitials = e.getValue();
        initialsChanges.add(change);
    }
    updateRoleAssignments(initialsChanges, wbsModel.getRoot());
    for (WBSNode node : wbsModel.getDescendants(wbsModel.getRoot())) updateRoleAssignments(initialsChanges, node);
}
Also used : Change(net.sourceforge.processdash.ui.lib.autocomplete.AssignedToEditList.Change) AssignedToEditList(net.sourceforge.processdash.ui.lib.autocomplete.AssignedToEditList) WBSNode(teamdash.wbs.WBSNode)

Aggregations

AssignedToEditList (net.sourceforge.processdash.ui.lib.autocomplete.AssignedToEditList)1 Change (net.sourceforge.processdash.ui.lib.autocomplete.AssignedToEditList.Change)1 WBSNode (teamdash.wbs.WBSNode)1