org.intermine.api
Class InterMineAPI
java.lang.Object
org.intermine.api.InterMineAPI
public class InterMineAPI
- extends java.lang.Object
InterMineAPI provides access to manager objects for the main parts of an InterMine application:
the production ObjectStore, the userprofile (via ProfileManager), template queries, bags and
tags. There should be one InterMineAPI object per application.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InterMineAPI
public InterMineAPI(ObjectStore objectStore,
ObjectStoreWriter userProfileWriter,
java.util.Map<java.lang.String,java.util.List<FieldDescriptor>> classKeys,
BagQueryConfig bagQueryConfig,
ObjectStoreSummary oss)
- Construct an InterMine API object.
- Parameters:
objectStore - the production databaseuserProfileWriter - a writer for the userprofile databaseclassKeys - the class keysbagQueryConfig - configured bag queries used by BagQueryRunneross - summary information for the ObjectStore
getObjectStore
public ObjectStore getObjectStore()
- Returns:
- the objectStore
getModel
public Model getModel()
- Returns:
- the model
getProfileManager
public ProfileManager getProfileManager()
- Returns:
- the profileManager
getTemplateManager
public TemplateManager getTemplateManager()
- Returns:
- the templateManager
getBagManager
public BagManager getBagManager()
- Returns:
- the bagManager
getTagManager
public TagManager getTagManager()
- Returns:
- the TagManager
getTemplateSummariser
public TemplateSummariser getTemplateSummariser()
- Returns:
- the templateSummariser
getWebResultsExecutor
public WebResultsExecutor getWebResultsExecutor(Profile profile)
- Parameters:
profile - the user that is executing the query
- Returns:
- the webResultsExecutor
getPathQueryExecutor
public PathQueryExecutor getPathQueryExecutor(Profile profile)
- Parameters:
profile - the user that is executing the query
- Returns:
- the pathQueryExecutor
getBagQueryRunner
public BagQueryRunner getBagQueryRunner()
- Returns:
- the bagQueryRunner
getObjectStoreSummary
public ObjectStoreSummary getObjectStoreSummary()
- Returns:
- the oss
getClassKeys
public java.util.Map<java.lang.String,java.util.List<FieldDescriptor>> getClassKeys()
- Returns:
- the classKeys
getBagQueryConfig
public BagQueryConfig getBagQueryConfig()
- Returns:
- the bagQueryConfig