Class MetabolicGeneSummaryDisplayer.GeneSummary

  • Enclosing class:
    MetabolicGeneSummaryDisplayer

    public class MetabolicGeneSummaryDisplayer.GeneSummary
    extends java.lang.Object
    Internal wrapper.
    • Constructor Summary

      Constructors 
      Constructor Description
      GeneSummary​(org.intermine.model.InterMineObject imObj, javax.servlet.http.HttpServletRequest request)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addCollectionCount​(java.lang.String key, java.lang.String description, java.lang.Object param, java.lang.String anchor)
      Add collection count to the summary.
      void addCollectionDistinctCount​(java.lang.String key, java.lang.String description, java.lang.Object param, java.lang.String anchor)
      Add collection distinct count to the summary.
      void addCustom​(java.lang.String key, java.lang.String description, java.lang.Object data, java.lang.String anchor, java.lang.String jsp)
      Add a custom object to the displayer.
      void addImageLink​(java.lang.String key, java.lang.String link, java.lang.String anchor, java.lang.String description)
      Add a link to an image for the summary.
      org.intermine.api.query.PathQueryExecutor getExecutor()  
      java.util.LinkedHashMap<java.lang.String,​java.util.HashMap<java.lang.String,​java.lang.Object>> getFields()  
      java.lang.Integer getObjectId()  
      java.lang.String getPrimaryId()  
      java.lang.Boolean isThisAHuman()  
      java.lang.Boolean isThisAMouser()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GeneSummary

        public GeneSummary​(org.intermine.model.InterMineObject imObj,
                           javax.servlet.http.HttpServletRequest request)
        Parameters:
        imObj - InterMineObject
        request - Request
    • Method Detail

      • addCustom

        public void addCustom​(java.lang.String key,
                              java.lang.String description,
                              java.lang.Object data,
                              java.lang.String anchor,
                              java.lang.String jsp)
        Add a custom object to the displayer.
        Parameters:
        key - to show under in the summary
        description - to show under the title
        data - to save on the wrapper object
        anchor - says where we will scroll onlick, an ID attr of the target element
        jsp - to include that knows how to display us
      • addCollectionCount

        public void addCollectionCount​(java.lang.String key,
                                       java.lang.String description,
                                       java.lang.Object param,
                                       java.lang.String anchor)
        Add collection count to the summary.
        Parameters:
        key - to show under in the summary
        description - to show under the title
        param - can be a fieldName or a PathQuery
        anchor - says where we will scroll onlick, an ID attr of the target element
      • addCollectionDistinctCount

        public void addCollectionDistinctCount​(java.lang.String key,
                                               java.lang.String description,
                                               java.lang.Object param,
                                               java.lang.String anchor)
        Add collection distinct count to the summary. Will get the distinct value referenced and get their count.
        Parameters:
        key - to show under in the summary
        description - to show under the title
        param - can be a fieldName or a PathQuery
        anchor - says where we will scroll onlick, an ID attr of the target element
      • addImageLink

        public void addImageLink​(java.lang.String key,
                                 java.lang.String link,
                                 java.lang.String anchor,
                                 java.lang.String description)
        Add a link to an image for the summary.
        Parameters:
        key - to show under in the summary
        description - to show under the title
        link - refers to the src attr of the img element
        anchor - says where we will scroll onlick, an ID attr of the target element
      • getObjectId

        public java.lang.Integer getObjectId()
        Returns:
        InterMineObject ID
      • isThisAMouser

        public java.lang.Boolean isThisAMouser()
        Returns:
        true if we are on a mouseified gene
      • isThisAHuman

        public java.lang.Boolean isThisAHuman()
        Returns:
        true if we are on a sapien gene
      • getPrimaryId

        public java.lang.String getPrimaryId()
        Returns:
        ReportObject primaryIdentifier
      • getExecutor

        public org.intermine.api.query.PathQueryExecutor getExecutor()
        Returns:
        PathQuery Executor
      • getFields

        public java.util.LinkedHashMap<java.lang.String,​java.util.HashMap<java.lang.String,​java.lang.Object>> getFields()
        Returns:
        Map of the fields configged here for the JSP to traverse