Class 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
    • 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