/** * */ package net.sourceforge.fenixedu.presentationTier.ajax.gep; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.Map; import net.sourceforge.fenixedu.applicationTier.IUserView; import pt.ist.fenixWebFramework.security.UserView; /** * @author - Shezad Anavarali (shezad@ist.utl.pt) * */ public class CurricularCourseStatisticsStatusBridge { public static Map> processedDegreeCurricularPlans = new HashMap>(); public static Map> processingDegreeCurricularPlans = new HashMap>(); public static Map> toProcessDegreeCurricularPlans = new HashMap>(); public static Collection readProcessedDegreeCurricularPlans() { Collection degreeCurricularPlans = processedDegreeCurricularPlans.get(getUserVIew()); return (degreeCurricularPlans != null) ? degreeCurricularPlans : new ArrayList(); } public static Collection readProcessingDegreeCurricularPlans() { Collection degreeCurricularPlans = processingDegreeCurricularPlans.get(getUserVIew()); return (degreeCurricularPlans != null) ? degreeCurricularPlans : new ArrayList(); } public static Collection readToProcessDegreeCurricularPlans() { Collection degreeCurricularPlans = toProcessDegreeCurricularPlans.get(getUserVIew()); return (degreeCurricularPlans != null) ? degreeCurricularPlans : new ArrayList(); } private static IUserView getUserVIew() { return UserView.getUser(); } }