Class ModelBrowserHelper.NodeBuilder

  • Enclosing class:
    ModelBrowserHelper

    protected static final class ModelBrowserHelper.NodeBuilder
    extends java.lang.Object
    An object that will descend through the model and build a tree of metadata nodes. This class partly exists so that we don't have static methods with 14 parameters.
    Author:
    Alex Kalderimis
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void buildTree​(java.lang.String path)
      Recurse through the model and build a tree of metadata nodes based on this
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NodeBuilder

        protected NodeBuilder​(boolean isSuperUser,
                              PathQuery query,
                              java.util.Map<java.lang.String,​java.util.List<FieldDescriptor>> classKeys,
                              BagManager bagManager,
                              Profile profile,
                              ObjectStoreSummary oss,
                              WebConfig webConfig)
                       throws PathException
        Construct a NodeBuilder
        Parameters:
        isSuperUser - true if the user is the superuser
        webConfig - the web configuration.
        query - a PathQuery, for working out possible loops
        classKeys - a Map of class keys, for working out if a path has any
        bagManager - a BagManager object, for working out if it is possible to constrain by bag.
        profile - the profile of the current user, for fetching bags from the BagManager
        oss - to determine which nodes are null
        Throws:
        PathException - if the path-query is invalid.
    • Method Detail

      • buildTree

        protected void buildTree​(java.lang.String path)
        Recurse through the model and build a tree of metadata nodes based on this
        Parameters:
        path - The starting point for the tree.