Search in sources :

Example 6 with EVTaskListFilter

use of net.sourceforge.processdash.ev.EVTaskListFilter in project processdash by dtuma.

the class TimeRatioMemberTrackingChartData method recalc.

public void recalc() {
    clearSeries();
    // see if the user has permission to view personal data in this chart
    UserFilter f = GroupPermission.getGrantedMembers(permissionID);
    if (f == null)
        return;
    EVTaskListFilter pf = new EVTaskListGroupFilter(f);
    MemberChartNameHelper nameHelper = new MemberChartNameHelper(rollup);
    for (int i = 0; i < rollup.getSubScheduleCount(); i++) {
        EVTaskList tl = rollup.getSubSchedule(i);
        String personalDataID = tl.getPersonalDataID();
        if (personalDataID != null && !pf.include(personalDataID))
            continue;
        EVSchedule subsched = tl.getSchedule();
        String seriesName = nameHelper.get(tl);
        maybeAddSeries(subsched.getTimeRatioTrackingChartSeries(seriesName, maxDataPoints));
    }
}
Also used : EVTaskListFilter(net.sourceforge.processdash.ev.EVTaskListFilter) EVTaskListGroupFilter(net.sourceforge.processdash.ev.EVTaskListGroupFilter) EVSchedule(net.sourceforge.processdash.ev.EVSchedule) UserFilter(net.sourceforge.processdash.team.group.UserFilter) EVTaskList(net.sourceforge.processdash.ev.EVTaskList)

Aggregations

EVTaskListFilter (net.sourceforge.processdash.ev.EVTaskListFilter)6 EVTaskListGroupFilter (net.sourceforge.processdash.ev.EVTaskListGroupFilter)6 UserFilter (net.sourceforge.processdash.team.group.UserFilter)6 EVTaskList (net.sourceforge.processdash.ev.EVTaskList)5 EVSchedule (net.sourceforge.processdash.ev.EVSchedule)4 Date (java.util.Date)2 IOException (java.io.IOException)1 DefaultTaskLabeler (net.sourceforge.processdash.ev.DefaultTaskLabeler)1 EVDependencyCalculator (net.sourceforge.processdash.ev.EVDependencyCalculator)1 EVTaskFilter (net.sourceforge.processdash.ev.EVTaskFilter)1 EVTaskListRollup (net.sourceforge.processdash.ev.EVTaskListRollup)1 SingleValueConfidenceInterval (net.sourceforge.processdash.ev.ci.SingleValueConfidenceInterval)1 TinyCGIException (net.sourceforge.processdash.net.http.TinyCGIException)1 UserGroupPrivacyBlock (net.sourceforge.processdash.team.group.UserGroupPrivacyBlock)1