Class IndividualsForClassesDataGetter
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.utils.dataGetter.DataGetterBase
-
- edu.cornell.mannlib.vitro.webapp.utils.dataGetter.IndividualsForClassesDataGetter
-
- All Implemented Interfaces:
DataGetter
public class IndividualsForClassesDataGetter extends DataGetterBase implements DataGetter
This will pass these variables to the template: classGroupUri: uri of the classgroup associated with this page. vClassGroup: a data structure that is the classgroup associated with this page.
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringrestrictClassesTemplateName-
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 IndividualsForClassesDataGetter(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.JsonNodeconvertToJSON(Map<String,Object> dataMap, VitroRequest vreq)For processig of JSONObjectprotected static StringgetAlphaParameter(VitroRequest request)static VClassGroupTemplateModelgetClassGroup(String classGroupUri, VitroRequest vreq)protected Map<String,Object>getClassIntersectionsMap(org.apache.jena.rdf.model.Model displayModel)Get the classes and classes to restrict by - if anyMap<String,Object>getData(Map<String,Object> pageData)Get data.StringgetDataServiceUrl()protected static intgetPageParameter(VitroRequest request)StringgetType()protected voidprocessClassesAndRestrictions(VitroRequest vreq, javax.servlet.ServletContext context, HashMap<String,Object> data, List<String> classes, List<String> restrictClasses)protected List<String>retrieveClasses(javax.servlet.ServletContext context, Map<String,Object> classIntersectionsMap)protected List<String>retrieveRestrictClasses(javax.servlet.ServletContext context, Map<String,Object> classIntersectionsMap)protected static voidsetAllClassCountsToZero(VClassGroup vcg)protected voidsetTemplateName()-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.utils.dataGetter.DataGetterBase
getModel
-
-
-
-
Field Detail
-
restrictClassesTemplateName
protected static String restrictClassesTemplateName
-
-
Constructor Detail
-
IndividualsForClassesDataGetter
public IndividualsForClassesDataGetter(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.
-
getClassIntersectionsMap
protected Map<String,Object> getClassIntersectionsMap(org.apache.jena.rdf.model.Model displayModel)
Get the classes and classes to restrict by - if any
-
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.
-
setTemplateName
protected void setTemplateName()
-
retrieveClasses
protected List<String> retrieveClasses(javax.servlet.ServletContext context, Map<String,Object> classIntersectionsMap)
-
retrieveRestrictClasses
protected List<String> retrieveRestrictClasses(javax.servlet.ServletContext context, Map<String,Object> classIntersectionsMap)
-
processClassesAndRestrictions
protected void processClassesAndRestrictions(VitroRequest vreq, javax.servlet.ServletContext context, HashMap<String,Object> data, List<String> classes, List<String> restrictClasses)
-
getClassGroup
public static VClassGroupTemplateModel getClassGroup(String classGroupUri, VitroRequest vreq)
-
getType
public String getType()
-
getDataServiceUrl
public String getDataServiceUrl()
-
convertToJSON
public com.fasterxml.jackson.databind.JsonNode convertToJSON(Map<String,Object> dataMap, VitroRequest vreq)
For processig of JSONObject
-
setAllClassCountsToZero
protected static void setAllClassCountsToZero(VClassGroup vcg)
-
getAlphaParameter
protected static String getAlphaParameter(VitroRequest request)
-
getPageParameter
protected static int getPageParameter(VitroRequest request)
-
-