public String getFooter() { return getFooter(gfJsonObject); }
public String getFooter() { return getFooter(gfJsonObject); }
private void addFooterInRowGroup(RowGroup rowGroup, GfJsonObject fromJsonObject) { String footer = getFooter(fromJsonObject); if (footer != null && !footer.isEmpty()) { rowGroup.newRow().newLeftCol(footer); } }
private void addFooterInTable(Table resultTable, GfJsonObject fromJsonObject) { String footer = getFooter(fromJsonObject); if (footer != null && !footer.isEmpty()) { resultTable.newRow().newLeftCol(footer); } }
private void addFooterInRowGroup(RowGroup rowGroup, GfJsonObject fromJsonObject) { String footer = getFooter(fromJsonObject); if (footer != null && !footer.isEmpty()) { rowGroup.newRow().newLeftCol(footer); } }
private void addFooterInTable(Table resultTable, GfJsonObject fromJsonObject) { String footer = getFooter(fromJsonObject); if (footer != null && !footer.isEmpty()) { resultTable.newRow().newLeftCol(footer); } }
protected String commandResultToString(final CommandResult commandResult) { assertNotNull(commandResult); commandResult.resetToFirstLine(); StringBuilder buffer = new StringBuilder(commandResult.getHeader()); while (commandResult.hasNextLine()) { buffer.append(commandResult.nextLine()); } buffer.append(commandResult.getFooter()); return buffer.toString(); }
public static CommandResponse prepareCommandResponse(String memberName, CommandResult result) { GfJsonObject content = null; try { content = result.getContent(); } catch (GfJsonException e) { try { content = new GfJsonObject(e.getMessage()); } catch (GfJsonException e1) { content = new GfJsonObject(); } } return new CommandResponse(memberName, // sender getType(result), // contentType result.getStatus().getCode(), // status code "1/1", // page --- TODO - Abhishek - define a scrollable ResultData NO_TOKEN_ACCESSOR, // tokenAccessor for next results getDebugInfo(result), // debugData result.getHeader(), // header content, // content result.getFooter(), // footer result.failedToPersist()); // failed to persist }
public static CommandResponse prepareCommandResponse(String memberName, CommandResult result) { GfJsonObject content = null; try { content = result.getContent(); } catch (GfJsonException e) { try { content = new GfJsonObject(e.getMessage()); } catch (GfJsonException e1) { content = new GfJsonObject(); } } return new CommandResponse(memberName, // sender getType(result), // contentType result.getStatus().getCode(), // status code "1/1", // page --- TODO - Abhishek - define a scrollable ResultData NO_TOKEN_ACCESSOR, // tokenAccessor for next results getDebugInfo(result), // debugData result.getHeader(), // header content, // content result.getFooter()); // footer }