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, redirect
public boolean processEditContent(String path, String editViewKey, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws RegistryException
processEditContent
in class EditProcessor
path
- 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.RegistryException
public boolean processNewContent(String path, String newViewKey, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws RegistryException
EditProcessor
processNewContent
in class EditProcessor
path
- 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.