org.intermine.web.logic.bag
Class BagConversionHelper
java.lang.Object
org.intermine.web.logic.bag.BagConversionHelper
public class BagConversionHelper
- extends java.lang.Object
Utility methods used when converting lists (bags) between types.
|
Method Summary |
static WebResults |
getConvertedObjects(javax.servlet.http.HttpSession session,
java.util.List<TemplateQuery> conversionTemplates,
java.lang.Class typeA,
java.lang.Class typeB,
InterMineBag imBag)
Converts a List of objects from one type to another type using a TemplateQuery,
returns the converted objects. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BagConversionHelper
public BagConversionHelper()
getConvertedObjects
public static WebResults getConvertedObjects(javax.servlet.http.HttpSession session,
java.util.List<TemplateQuery> conversionTemplates,
java.lang.Class typeA,
java.lang.Class 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 occurs
ObjectStoreException - if an error occurs