public interface JsonData
JsonLoader
models have to implement this interface
it's recommended to implement JsonDataAdapter
insteadModifier and Type | Method and Description |
---|---|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getData()
Two cases: id is known, return the object with this id,
else return all objects.
|
void |
init(javax.servlet.http.HttpServletRequest req,
java.lang.String params,
java.lang.String id,
NavigationTreeNode config)
called once when initalizing the model
|
boolean |
supportsPaging()
return
true if the model supports basic paging |
void init(javax.servlet.http.HttpServletRequest req, java.lang.String params, java.lang.String id, NavigationTreeNode config) throws java.lang.Exception
req
- the current servlet-requestparams
- the trailing part of the REST-URLid
- the id when using single-object-requestsconfig
- configuration node holding more informationjava.lang.Exception
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getData() throws java.lang.Exception
java.lang.Exception
boolean supportsPaging()
true
if the model supports basic paging@enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.