Package com.groiss.smartclient
Interface JsonData
- All Known Subinterfaces:
ReadWriteJsonData
- All Known Implementing Classes:
JsonDataAdapter
,ObjectSelectProvider
public interface JsonData
Enables data to be loaded via
JsonLoader
.
Models have to implement this interface,
it's recommended to implement JsonDataAdapter
instead.-
Method Summary
Modifier and TypeMethodDescriptiongetData()
Two cases: id is known, return the object with this id, else return all objects.void
init
(HttpServletRequest req, String params, String id, NavigationTreeNode config) called once when initalizing the model
-
Method Details
-
getData
Two cases: id is known, return the object with this id, else return all objects.- Returns:
- all available data
- Throws:
Exception