Class ModelBrowserHelper.NodeBuilder
- java.lang.Object
-
- org.intermine.web.logic.querybuilder.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
-
-
Constructor Summary
Constructors Modifier Constructor Description 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)
Construct a NodeBuilder
-
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
-
-
-
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 superuserwebConfig
- the web configuration.query
- a PathQuery, for working out possible loopsclassKeys
- a Map of class keys, for working out if a path has anybagManager
- 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 BagManageross
- to determine which nodes are null- Throws:
PathException
- if the path-query is invalid.
-
-