Package org.intermine.web.logic.bag
Class BagConversionHelper
- java.lang.Object
-
- org.intermine.web.logic.bag.BagConversionHelper
-
public final class BagConversionHelper extends java.lang.Object
Utility methods used when converting lists (bags) between types.- Author:
- Richard Smith
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PathQuery
getConvertedObjects(javax.servlet.http.HttpSession session, java.util.List<ApiTemplate> conversionTemplates, java.lang.Class<? extends InterMineObject> typeA, java.lang.Class<? extends InterMineObject> typeB, InterMineBag imBag)
Converts a List of objects from one type to another type using a TemplateQuery, returns the converted objects.
-
-
-
Method Detail
-
getConvertedObjects
public static PathQuery getConvertedObjects(javax.servlet.http.HttpSession session, java.util.List<ApiTemplate> conversionTemplates, java.lang.Class<? extends InterMineObject> typeA, java.lang.Class<? extends InterMineObject> typeB, InterMineBag imBag) throws InterMineException, ObjectStoreException
Converts a List of objects from one type to another type using a TemplateQuery, returns the converted objects.- Parameters:
session
- of the user running the queryconversionTemplates
- a list of templates to be used for conversiontypeA
- the type to convert fromtypeB
- the type to convert toimBag
- an InterMineBag or Collection of objects of type typeA- Returns:
- a WebResults object containing the converted objects
- Throws:
InterMineException
- if an error occursObjectStoreException
- if an error occurs
-
-