Class GetEntitiesByVClass
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.controller.json.JsonProducer
-
- edu.cornell.mannlib.vitro.webapp.controller.json.JsonArrayProducer
-
- edu.cornell.mannlib.vitro.webapp.controller.json.GetEntitiesByVClass
-
public class GetEntitiesByVClass extends JsonArrayProducer
Gets a list of entities that are members of the indicated vClass. If the list is large then we will pass some token indicating that there is more to come. The results are sent back in 250 entity blocks. To get all of the entities for a VClass just keep requesting lists until there are not more continue tokens. If there are more entities the last item on the returned array will be an object with no id property. It will look like this:{"resultGroup":0, "resultKey":"2WEK2306", "nextUrl":"http://caruso.mannlib.cornell.edu:8080/vitro/dataservice?getEntitiesByVClass=1&resultKey=2WEK2306&resultGroup=1&vclassId=null", "entsInVClass":1752, "nextResultGroup":1, "standardReplySize":256}
-
-
Field Summary
-
Fields inherited from class edu.cornell.mannlib.vitro.webapp.controller.json.JsonArrayProducer
ctx, vreq
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGetEntitiesByVClass(VitroRequest vreq)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.fasterxml.jackson.databind.node.ArrayNodeprocess()Sub-classes implement this method.-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.controller.json.JsonArrayProducer
process
-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.controller.json.JsonProducer
getVclassIds, getVclassParameter, individualsToJson
-
-
-
-
Constructor Detail
-
GetEntitiesByVClass
protected GetEntitiesByVClass(VitroRequest vreq)
-
-
Method Detail
-
process
protected com.fasterxml.jackson.databind.node.ArrayNode process() throws javax.servlet.ServletExceptionDescription copied from class:JsonArrayProducerSub-classes implement this method. Given the request, produce a JSON object as the result.- Specified by:
processin classJsonArrayProducer- Throws:
javax.servlet.ServletException
-
-