public ViewConfig getViewConfig(DoradoContext context, String viewName) throws Exception { ViewConfig viewConfig = (ViewConfig) context.getAttribute(viewName); if (viewConfig == null) { viewConfig = viewConfigManager.getViewConfig(viewName); context.setAttribute(viewName, viewConfig); } return viewConfig; }
@SuppressWarnings("unchecked") private Map<String, String> doUserQuerySchemas() { DoradoContext context = DoradoContext.getCurrent(); Map<String, String> querySchemas = (Map<String, String>) context.getAttribute(DoradoContext.SESSION, QUERY_SCHEMAS_KEY); if (querySchemas == null) { querySchemas = new LinkedHashMap<String, String>(); querySchemas.putAll(QUERY_SCHEMAS); context.setAttribute(DoradoContext.SESSION, QUERY_SCHEMAS_KEY, querySchemas); } return querySchemas; }