public class EmbedController extends ViewController implements org.springframework.web.servlet.mvc.Controller
| Modifier and Type | Field and Description |
|---|---|
static String |
MODEL_FIELD_CONTEXT_ID |
static String |
MODEL_FIELD_ED_PREDEFINED_PROPERTIES |
static String |
MODEL_FIELD_UNRESETABLE_FILTER_PARAMETERS |
static String |
PROPERTY_EMBED_ADDITIONAL_CSS_URL |
protected static String |
URL |
DEFAULT_MAIN_TEMPLATE, DEFAULT_MAIN_TEMPLATE_ADMINISTRATION| Constructor and Description |
|---|
EmbedController(org.osgi.framework.BundleContext bundleContext) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addEdPredefinedNoteProperty(org.springframework.web.servlet.ModelAndView mav,
String keyGroup,
String key,
String value)
Add a note property to to the properties which should be passed to the editor.
|
static Object |
createNotePropertyFilter(String keyGroup,
String key,
String value,
PropertyFilter.MatchMode matchMode,
boolean negate) |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Map<String,Object> model)
Handles GET requests.
|
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Map<String,Object> model)
Handles POST requests.
|
String |
getContentTemplate() |
String |
getMainTemplate()
The key for the main template.
|
QueryParametersParameterNameProvider |
getNameProvider() |
org.springframework.web.servlet.ModelAndView |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
Map<String,? extends Object> |
processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Processes the request and returns a map with additional content.
|
void |
registerProcessor(EmbedControllerRequestPostProcessor processor)
Add a processor to be invoked before rendering the view
|
void |
start() |
void |
stop() |
void |
unregisterProcessor(EmbedControllerRequestPostProcessor processor)
Remove a previously added processor
|
doDelete, doHead, doPut, doUnknown, getSymbolicNameprotected static final String URL
public static final String MODEL_FIELD_UNRESETABLE_FILTER_PARAMETERS
public static final String MODEL_FIELD_CONTEXT_ID
public static final String MODEL_FIELD_ED_PREDEFINED_PROPERTIES
public static final String PROPERTY_EMBED_ADDITIONAL_CSS_URL
public EmbedController(org.osgi.framework.BundleContext bundleContext)
bundleContext - The current bundle context.public static void addEdPredefinedNoteProperty(org.springframework.web.servlet.ModelAndView mav,
String keyGroup,
String key,
String value)
mav - the model and viewkeyGroup - the group of the propertykey - the key of the propertyvalue - the valuepublic static Object createNotePropertyFilter(String keyGroup, String key, String value, PropertyFilter.MatchMode matchMode, boolean negate)
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Map<String,Object> model)
throws ViewControllerException
ViewControllerdoGet in class ViewControllerrequest - The request.response - The response.model - The model.ViewControllerException - Exception.public void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Map<String,Object> model)
throws ViewControllerException
ViewControllerdoPost in class ViewControllerrequest - The request.response - The response.model - The model.ViewControllerException - Exception.public String getContentTemplate()
getContentTemplate in interface PluginViewControllergetContentTemplate in class ViewControllerpublic String getMainTemplate()
PluginViewControllergetMainTemplate in interface PluginViewControllergetMainTemplate in class ViewControllerPluginViewController.DEFAULT_MAIN_TEMPLATEpublic QueryParametersParameterNameProvider getNameProvider()
public org.springframework.web.servlet.ModelAndView handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
ViewControllerhandleRequest in interface org.springframework.web.servlet.mvc.ControllerhandleRequest in class ViewControllerExceptionpublic Map<String,? extends Object> processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ViewControllerException
ViewControllerprocessRequest in class ViewControllerrequest - The request.response - The response.ViewControllerException - Exception.public void registerProcessor(EmbedControllerRequestPostProcessor processor)
processor - the processor to addpublic void start()
public void stop()
public void unregisterProcessor(EmbedControllerRequestPostProcessor processor)
processor - the processor to removeCopyright © 2019 Communote team. All rights reserved.