public class IndividualsForClassesDataGetter extends DataGetterBase implements DataGetter
| Modifier and Type | Field and Description |
|---|---|
protected static String |
restrictClassesTemplateName |
CONTEXT_DISPLAY_MODEL, REQUEST_DISPLAY_MODEL, REQUEST_JENA_ONT_MODEL| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure(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.JsonNode |
convertToJSON(Map<String,Object> dataMap,
VitroRequest vreq)
For processig of JSONObject
|
protected static String |
getAlphaParameter(VitroRequest request) |
static VClassGroupTemplateModel |
getClassGroup(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 any
|
Map<String,Object> |
getData(Map<String,Object> pageData)
Get data.
|
String |
getDataServiceUrl() |
protected static int |
getPageParameter(VitroRequest request) |
String |
getType() |
protected void |
processClassesAndRestrictions(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 void |
setAllClassCountsToZero(VClassGroup vcg) |
protected void |
setTemplateName() |
getModelprotected static String restrictClassesTemplateName
public IndividualsForClassesDataGetter(VitroRequest vreq, org.apache.jena.rdf.model.Model displayModel, String dataGetterURI)
protected void configure(VitroRequest vreq, org.apache.jena.rdf.model.Model displayModel, String dataGetterURI)
protected Map<String,Object> getClassIntersectionsMap(org.apache.jena.rdf.model.Model displayModel)
public Map<String,Object> getData(Map<String,Object> pageData)
DataGettergetData in interface DataGetterpageData - any values already generated by data getters or the controller.
Might be immutable, and should not be modified within the method.protected void setTemplateName()
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 void processClassesAndRestrictions(VitroRequest vreq, javax.servlet.ServletContext context, HashMap<String,Object> data, List<String> classes, List<String> restrictClasses)
public static VClassGroupTemplateModel getClassGroup(String classGroupUri, VitroRequest vreq)
public String getType()
public String getDataServiceUrl()
public com.fasterxml.jackson.databind.JsonNode convertToJSON(Map<String,Object> dataMap, VitroRequest vreq)
protected static void setAllClassCountsToZero(VClassGroup vcg)
protected static String getAlphaParameter(VitroRequest request)
protected static int getPageParameter(VitroRequest request)
Copyright © 2022. All rights reserved.