Class BrowseDataGetter
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.utils.dataGetter.DataGetterBase
-
- edu.cornell.mannlib.vitro.webapp.utils.dataGetter.BrowseDataGetter
-
- All Implemented Interfaces:
DataGetter
public class BrowseDataGetter extends DataGetterBase implements DataGetter
-
-
Field Summary
Fields Modifier and Type Field Description protected static edu.cornell.mannlib.vitro.webapp.utils.dataGetter.BrowseDataGetter.ModeDEFAULT_MODE-
Fields inherited from class edu.cornell.mannlib.vitro.webapp.utils.dataGetter.DataGetterBase
CONTEXT_DISPLAY_MODEL, REQUEST_DISPLAY_MODEL, REQUEST_JENA_ONT_MODEL
-
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigure(VitroRequest vreq, org.apache.jena.rdf.model.Model displayModel, String dataGetterURI)Configure this instance based on the URI and display model.com.fasterxml.jackson.databind.node.ObjectNodeconvertToJSON(Map<String,Object> dataMap, VitroRequest vreq)For processig of JSONObjectprotected Map<String,Object>doAllClassGroupsDisplay(Map params, VitroRequest request, javax.servlet.ServletContext context)protected Map<String,Object>doClassDisplay(Map params, VitroRequest request, javax.servlet.ServletContext context)protected Map<String,Object>doClassGroupDisplay(Map params, VitroRequest request, javax.servlet.ServletContext context)protected Map<String,Object>getAllClassGroupData(VitroRequest request, Map params, javax.servlet.ServletContext context)Gets a list of all VClassGroups with vclasses with individual counts.protected Map<String,Object>getClassGroupData(VitroRequest request, Map params, javax.servlet.ServletContext context)Map<String,Object>getData(Map<String,Object> pageData)Get data.StringgetDataServiceUrl()protected edu.cornell.mannlib.vitro.webapp.utils.dataGetter.BrowseDataGetter.ModegetMode(VitroRequest request, Map<String,Object> params)static StringgetParam(edu.cornell.mannlib.vitro.webapp.utils.dataGetter.BrowseDataGetter.Mode mode, VitroRequest request, Map params)StringgetType()-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.utils.dataGetter.DataGetterBase
getModel
-
-
-
-
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:DataGetterGet data. Throwing an Exception is acceptable.- Specified by:
getDatain interfaceDataGetter- 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 VitroRequestparams- a parameter mapcontext- current servlet context
-
doClassDisplay
protected Map<String,Object> doClassDisplay(Map params, VitroRequest request, javax.servlet.ServletContext context)
-
doClassGroupDisplay
protected Map<String,Object> doClassGroupDisplay(Map params, VitroRequest request, javax.servlet.ServletContext context)
-
getClassGroupData
protected Map<String,Object> getClassGroupData(VitroRequest request, Map params, 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
-
-