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, getSymbolicName
protected 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
ViewController
doGet
in class ViewController
request
- 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
ViewController
doPost
in class ViewController
request
- The request.response
- The response.model
- The model.ViewControllerException
- Exception.public String getContentTemplate()
getContentTemplate
in interface PluginViewController
getContentTemplate
in class ViewController
public String getMainTemplate()
PluginViewController
getMainTemplate
in interface PluginViewController
getMainTemplate
in class ViewController
PluginViewController.DEFAULT_MAIN_TEMPLATE
public QueryParametersParameterNameProvider getNameProvider()
public org.springframework.web.servlet.ModelAndView handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
ViewController
handleRequest
in interface org.springframework.web.servlet.mvc.Controller
handleRequest
in class ViewController
Exception
public Map<String,? extends Object> processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ViewControllerException
ViewController
processRequest
in class ViewController
request
- 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.