/** * Get the full view of the logical metric. * * @param logicalMetric Logical metric to get the view of * @param logicalTableDictionary Logical Table Dictionary to look up the logical tables this metric is on * @param uriInfo UriInfo of the request * * @return Full view of the logical metric */ public static Map<String, Object> getLogicalMetricFullView( LogicalMetric logicalMetric, LogicalTableDictionary logicalTableDictionary, UriInfo uriInfo ) { Map<String, Object> resultRow = new LinkedHashMap<>(); resultRow.put("category", logicalMetric.getCategory()); resultRow.put("name", logicalMetric.getName()); resultRow.put("longName", logicalMetric.getLongName()); resultRow.put("description", logicalMetric.getDescription()); resultRow.put( "tables", TablesServlet.getLogicalTableListSummaryView( logicalTableDictionary.findByLogicalMetric(logicalMetric), uriInfo ) ); return resultRow; }