Class ReportPathNode


  • public class ReportPathNode
    extends PathNode
    Node in a report path response. Contains recursive folders leading to the target report.
    • Constructor Detail

      • ReportPathNode

        public ReportPathNode()
    • Method Detail

      • setFolders

        public ReportPathNode setFolders​(java.util.List<ReportPathNode> folders)
        Parameters:
        folders - the list of nested folder nodes; may be null
      • getReports

        public java.util.List<PathLeaf> getReports()
      • setReports

        public ReportPathNode setReports​(java.util.List<PathLeaf> reports)
        Parameters:
        reports - the list of report leaf nodes within this folder; may be null
      • getLeafReport

        public PathLeaf getLeafReport()
        Walks down through folders until a node contains reports, then returns the first report.
      • getLeafReportPath

        public java.lang.String getLeafReportPath()
        Returns a UNIX style /-joined path of folder names plus the target report name.

        Examples:

        • Workspace → Folder → Report returns "/Workspace/Folder/Report"
        • Workspace → Report (no intermediate folders) returns "/Workspace/Report"