Package org.intermine.web.logic.query
Class DisplayConstraintFactory
- java.lang.Object
-
- org.intermine.web.logic.query.DisplayConstraintFactory
-
public class DisplayConstraintFactory extends java.lang.Object
A class that will help you manufacture instances of DisplayConstraint.- Author:
- Alex Kalderimis
-
-
Constructor Summary
Constructors Constructor Description DisplayConstraintFactory(InterMineAPI im, AutoCompleter ac)
Get an object that creates display constraints.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DisplayConstraint
get(PathConstraint con, Profile profile, PathQuery query)
Get a display constraint.DisplayConstraint
get(Path path, Profile profile, PathQuery query)
Get a display constraint.
-
-
-
Constructor Detail
-
DisplayConstraintFactory
public DisplayConstraintFactory(InterMineAPI im, AutoCompleter ac)
Get an object that creates display constraints.- Parameters:
im
- The InterMine state object.ac
- Something that can provide autocomplete hints.
-
-
Method Detail
-
get
public DisplayConstraint get(Path path, Profile profile, PathQuery query)
Get a display constraint.- Parameters:
path
- The path this constraint constrains.profile
- The profile of the current user (needed so we know what bags are available)query
- The query this constraint constrains.- Returns:
- A display constraint.
-
get
public DisplayConstraint get(PathConstraint con, Profile profile, PathQuery query) throws PathException
Get a display constraint.- Parameters:
con
- The existing constraint we want to wrap.profile
- The profile of the current user (needed so we know what bags are available)query
- The query this constraint constrains.- Returns:
- A display constraint.
- Throws:
PathException
- if the existing constraint is invalid.
-
-