Package com.groiss.smartclient
Interface ReadWriteJsonData
- All Superinterfaces:
JsonData
- All Known Implementing Classes:
ObjectSelectProvider
basic interface to enable data-manipulation using the
JsonLoader
-
Method Summary
Modifier and TypeMethodDescriptionvoid
called for DELETE requests should delete the object provided in theJsonData.init(javax.servlet.http.HttpServletRequest, String, String, com.groiss.gui.NavigationTreeNode)
called for POST requests should create a new object and return the new object's objectId after the successful operation,JsonData.getData()
has to return a single row with the details for the new objectvoid
called for PUT requests update the object provided in theJsonData.init(javax.servlet.http.HttpServletRequest, String, String, com.groiss.gui.NavigationTreeNode)
with the given data after the successful operation,JsonData.getData()
has to return a single row with the details for the new object
-
Method Details
-
insert
called for POST requests should create a new object and return the new object's objectId after the successful operation,JsonData.getData()
has to return a single row with the details for the new object- Parameters:
data
- the parameters provided from the request- Returns:
- the new objectId
-
update
called for PUT requests update the object provided in theJsonData.init(javax.servlet.http.HttpServletRequest, String, String, com.groiss.gui.NavigationTreeNode)
with the given data after the successful operation,JsonData.getData()
has to return a single row with the details for the new object- Parameters:
data
-
-
delete
called for DELETE requests should delete the object provided in theJsonData.init(javax.servlet.http.HttpServletRequest, String, String, com.groiss.gui.NavigationTreeNode)
- Parameters:
data
-
-