public class TextEditProcessor extends EditProcessor
| Constructor and Description |
|---|
TextEditProcessor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
processEditContent(String path,
String editViewKey,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Extracts text based user input from a HTML control named "generic-text-input" and sets it as
the resource content.
|
boolean |
processNewContent(String path,
String newViewKey,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Implementations of this method should extract input parameters from new view and create a new
resource with that content.
|
getRegistry, redirectpublic boolean processEditContent(String path, String editViewKey, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws RegistryException
processEditContent in class EditProcessorpath - Path of the resource to be edited.editViewKey - UI key of the edit view. This parameter does not have a useful meaning in
text edit processor as only one view is supported.request - HttpServletRequest instance.response - HttpServletResponse instance.RegistryExceptionpublic boolean processNewContent(String path, String newViewKey, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws RegistryException
EditProcessorprocessNewContent in class EditProcessorpath - Path of the parent collection of new resource.newViewKey - UI key of the new UI.request - HttpServletRequest received from the the CustomUIServletresponse - HttpServletResponse to be sent the the CustomUIServletRegistryException - if an error occurs while processing content.Copyright © 2015 WSO2 Inc. All Rights Reserved.