/** * Provides a link to the Navigation Index that is used for this particular report. If there is more than one (for example, in the case of a * single report used both globally and associated with an application), then return the one associated with an app. */ default ApplicationReportIndexModel getApplicationReportIndexModel() { ApplicationReportIndexModel result = null; Iterator<Vertex> vertexIterator = getElement().vertices(Direction.IN, ApplicationReportIndexModel.APPLICATION_REPORT_INDEX_TO_REPORT_MODEL); while (vertexIterator.hasNext()) { Vertex v = vertexIterator.next(); ApplicationReportIndexModel model = getGraph().frameElement(v, ApplicationReportIndexModel.class); if (result == null) result = model; else if (!result.getProjectModels().iterator().hasNext() && model.getProjectModels().iterator().hasNext()) result = model; } return result; }
/** * Provides a link to the Navigation Index that is used for this particular report. If there is more than one (for example, in the case of a * single report used both globally and associated with an application), then return the one associated with an app. */ default ApplicationReportIndexModel getApplicationReportIndexModel() { ApplicationReportIndexModel result = null; Iterator<Vertex> vertexIterator = getElement().vertices(Direction.IN, ApplicationReportIndexModel.APPLICATION_REPORT_INDEX_TO_REPORT_MODEL); while (vertexIterator.hasNext()) { Vertex v = vertexIterator.next(); ApplicationReportIndexModel model = getGraph().frameElement(v, ApplicationReportIndexModel.class); if (result == null) result = model; else if (!result.getProjectModels().iterator().hasNext() && model.getProjectModels().iterator().hasNext()) result = model; } return result; }