Package org.intermine.web.uri
Class InterMineLUIConverter
- java.lang.Object
-
- org.intermine.web.uri.InterMineLUIConverter
-
public class InterMineLUIConverter extends java.lang.Object
This class converts an intermineID into a InterMineLUI or a InterMineLUI into an intermineID.- Author:
- Daniela Butano
-
-
Constructor Summary
Constructors Constructor Description InterMineLUIConverter()
ConstructorInterMineLUIConverter(Profile profile)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InterMineAPI
getInterMineAPI()
Returns the InterMineAPIjava.lang.Integer
getInterMineID(InterMineLUI interMineLUI)
Given a InterMineLUI (compact uri, e.g.InterMineLUI
getInterMineLUI(java.lang.Integer interMineID)
Generate the InterMineLUI associated to the internal interMine IDprotected Model
getModel()
Returns the modelPathQueryExecutor
getPathQueryExecutor()
Returns the PathQueryExecutor
-
-
-
Field Detail
-
profile
protected Profile profile
-
-
Constructor Detail
-
InterMineLUIConverter
public InterMineLUIConverter(Profile profile)
Constructor- Parameters:
profile
- the profile
-
InterMineLUIConverter
public InterMineLUIConverter()
Constructor
-
-
Method Detail
-
getInterMineID
public java.lang.Integer getInterMineID(InterMineLUI interMineLUI) throws ObjectStoreException
Given a InterMineLUI (compact uri, e.g. protein:P27362) returns the internal intermine Id- Parameters:
interMineLUI
- the interMineLUI- Returns:
- internal intermine id OR -1 if there is no entity matching with the LUI or if there is no identifier set in the class_keys.properties file for the class defined in the lui
- Throws:
ObjectStoreException
- if there are any objectstore issues
-
getInterMineLUI
public InterMineLUI getInterMineLUI(java.lang.Integer interMineID)
Generate the InterMineLUI associated to the internal interMine ID- Parameters:
interMineID
- the interMineID- Returns:
- the InterMineLUI
-
getModel
protected Model getModel()
Returns the model- Returns:
- the model
-
getInterMineAPI
protected InterMineAPI getInterMineAPI()
Returns the InterMineAPI- Returns:
- the InterMineAPI
-
getPathQueryExecutor
public PathQueryExecutor getPathQueryExecutor()
Returns the PathQueryExecutor- Returns:
- the PathQueryExecutor
-
-