Class BrowseDataGetter

    • Field Detail

      • DEFAULT_MODE

        protected static final edu.cornell.mannlib.vitro.webapp.utils.dataGetter.BrowseDataGetter.Mode DEFAULT_MODE
    • Constructor Detail

      • BrowseDataGetter

        public BrowseDataGetter​(VitroRequest vreq,
                                org.apache.jena.rdf.model.Model displayModel,
                                String dataGetterURI)
        Constructor with display model and data getter URI that will be called by reflection.
    • Method Detail

      • configure

        protected void configure​(VitroRequest vreq,
                                 org.apache.jena.rdf.model.Model displayModel,
                                 String dataGetterURI)
        Configure this instance based on the URI and display model.
      • getData

        public Map<String,​Object> getData​(Map<String,​Object> pageData)
        Description copied from interface: DataGetter
        Get data. Throwing an Exception is acceptable.
        Specified by:
        getData in interface DataGetter
        Parameters:
        pageData - any values already generated by data getters or the controller. Might be immutable, and should not be modified within the method.
        Returns:
        data to add to valueMap. Might be empty, but should not be null.
      • getType

        public String getType()
      • getDataServiceUrl

        public String getDataServiceUrl()
      • doAllClassGroupsDisplay

        protected Map<String,​Object> doAllClassGroupsDisplay​(Map params,
                                                                   VitroRequest request,
                                                                   javax.servlet.ServletContext context)
      • getAllClassGroupData

        protected Map<String,​Object> getAllClassGroupData​(VitroRequest request,
                                                                Map params,
                                                                javax.servlet.ServletContext context)
        Gets a list of all VClassGroups with vclasses with individual counts.
        Parameters:
        request - current VitroRequest
        params - a parameter map
        context - current servlet context
      • doClassGroupDisplay

        protected Map<String,​Object> doClassGroupDisplay​(Map params,
                                                               VitroRequest request,
                                                               javax.servlet.ServletContext context)
      • getMode

        protected edu.cornell.mannlib.vitro.webapp.utils.dataGetter.BrowseDataGetter.Mode getMode​(VitroRequest request,
                                                                                                  Map<String,​Object> params)
      • getParam

        public static String getParam​(edu.cornell.mannlib.vitro.webapp.utils.dataGetter.BrowseDataGetter.Mode mode,
                                      VitroRequest request,
                                      Map params)
      • convertToJSON

        public com.fasterxml.jackson.databind.node.ObjectNode convertToJSON​(Map<String,​Object> dataMap,
                                                                            VitroRequest vreq)
        For processig of JSONObject