Package org.intermine.web.logic.bag
Class BagConverter
- java.lang.Object
-
- org.intermine.web.logic.bag.BagConverter
-
public abstract class BagConverter extends java.lang.Object
- Author:
- "Xavier Watkins"
-
-
Field Summary
Fields Modifier and Type Field Description protected InterMineAPI
im
protected WebConfig
webConfig
-
Constructor Summary
Constructors Constructor Description BagConverter(InterMineAPI im, WebConfig webConfig)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract org.apache.struts.action.ActionMessage
getActionMessage(java.lang.String externalids, int convertedSize, java.lang.String type, java.lang.String parameters)
Get the ActionMessage to display in the webappabstract java.util.List<java.lang.Integer>
getConvertedObjectIds(Profile profile, java.lang.String bagType, java.util.List<java.lang.Integer> bagList, java.lang.String constraintValue)
abstract java.util.Map<java.lang.String,java.lang.String>
getCounts(Profile profile, InterMineBag bag)
Method to return list of values and the counts of converted objects for that object used for display on list analysis page.
-
-
-
Field Detail
-
im
protected InterMineAPI im
-
webConfig
protected WebConfig webConfig
-
-
Constructor Detail
-
BagConverter
public BagConverter(InterMineAPI im, WebConfig webConfig)
- Parameters:
im
- intermine APIwebConfig
- the webconfig
-
-
Method Detail
-
getActionMessage
public abstract org.apache.struts.action.ActionMessage getActionMessage(java.lang.String externalids, int convertedSize, java.lang.String type, java.lang.String parameters) throws ObjectStoreException, java.io.UnsupportedEncodingException
Get the ActionMessage to display in the webapp- Parameters:
externalids
- the initial ids as a comma separated listparameters
- the parametersconvertedSize
- the converted sizetype
- the type- Returns:
- an ActionMessage
- Throws:
ObjectStoreException
- exceptionjava.io.UnsupportedEncodingException
- exception
-
getConvertedObjectIds
public abstract java.util.List<java.lang.Integer> getConvertedObjectIds(Profile profile, java.lang.String bagType, java.util.List<java.lang.Integer> bagList, java.lang.String constraintValue) throws ObjectStoreException
- Parameters:
profile
- user's profilebagType
- class of listbagList
- list of intermine object IDsconstraintValue
- value of constraint- Returns:
- list of intermine IDs
- Throws:
ObjectStoreException
- if we have issues querying the db.
-
getCounts
public abstract java.util.Map<java.lang.String,java.lang.String> getCounts(Profile profile, InterMineBag bag) throws ObjectStoreException
Method to return list of values and the counts of converted objects for that object used for display on list analysis page.- Parameters:
bag
- intermine bagprofile
- user profile- Returns:
- map of values to counts
- Throws:
ObjectStoreException
- if we have issues querying the db.
-
-