StagingCheckerOutput.java 文件源码

java
阅读 19 收藏 0 点赞 0 评论 0

项目:staging-checker 作者:
@SuppressWarnings("unchecked")
public static List<String> generateCSVOutput(
    PortletConfig portletConfig, RenderRequest renderRequest) {

    String title = (String) renderRequest.getAttribute("title");
    EnumSet<ExecutionMode> executionMode =
        (EnumSet<ExecutionMode>)renderRequest.getAttribute("executionMode");
    Map<Company, Long> companyProcessTime =
        (Map<Company, Long>)renderRequest.getAttribute(
            "companyProcessTime");
    Map<Company, Map<Long, List<Comparison>>> companyResultDataMap =
        (Map<Company, Map<Long, List<Comparison>>>)
        renderRequest.getAttribute("companyResultDataMap");
    Map<Company, String> companyError =
        (Map<Company, String>) renderRequest.getAttribute("companyError");

    if ((executionMode == null)||(companyProcessTime == null)||
        (companyResultDataMap == null)) {

        return null;
    }

    return generateCSVOutput(
        portletConfig, title, renderRequest.getLocale(), true,
        companyProcessTime, companyResultDataMap, companyError);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号