public interface CrudService
Some example of how CrudService can be used (inside Spring MVC Controller):
@RequestMapping(value = "examplePluginPages/infoPage", method = RequestMethod.GET)
public ModelAndView getInfoPageView(@RequestParam final Map<String, String> arguments, final Locale locale) {
arguments.put("popup", "true");
ModelAndView mav = crudService.prepareView("examplePlugin", "exampleView", arguments, locale);
// some ModelAndView modifications, like:
mav.addObject("headerClass", "successHeader");
return mav;
}
| Modifier and Type | Method and Description |
|---|---|
ViewDefinitionState |
invokeEvent(String pluginIdentifier,
String viewName,
JSONObject body,
Locale locale)
Performs event on specified view and returns view definition state.
|
JSONObject |
invokeEventAndRenderView(String pluginIdentifier,
String viewName,
JSONObject body,
Locale locale)
Performs event on specified view and returns the result
|
org.springframework.web.servlet.ModelAndView |
prepareView(String pluginIdentifier,
String viewName,
Map<String,String> arguments,
Locale locale)
Generates Spring ModelAndView for specified view.
|
JSONObject |
renderView(ViewDefinitionState state)
Render given view definition state.
|
ViewDefinitionState invokeEvent(String pluginIdentifier, String viewName, JSONObject body, Locale locale)
pluginIdentifier - identifier of pluginviewName - name of viewbody - request json bodylocale - current localeJSONObject invokeEventAndRenderView(String pluginIdentifier, String viewName, JSONObject body, Locale locale)
pluginIdentifier - identifier of pluginviewName - name of viewbody - request json bodylocale - current localeorg.springframework.web.servlet.ModelAndView prepareView(String pluginIdentifier, String viewName, Map<String,String> arguments, Locale locale)
pluginIdentifier - identifier of pluginviewName - name of viewarguments - map of argumentslocale - current localeJSONObject renderView(ViewDefinitionState state)
state - view definition stateCopyright © 2010-2025 Qcadoo Limited