public abstract class EditProcessor extends Object
Constructor and Description |
---|
EditProcessor() |
Modifier and Type | Method and Description |
---|---|
protected Registry |
getRegistry(javax.servlet.http.HttpServletRequest request)
Obtains an instance of the Registry that the user can work with.
|
abstract boolean |
processEditContent(String path,
String editViewKey,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Implementations of this method should extract input parameters from edit view and update the
resource content.
|
abstract boolean |
processNewContent(String parentPath,
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.
|
protected void |
redirect(String url,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Redirects the incoming request to the given URL.
|
public abstract boolean processEditContent(String path, String editViewKey, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws RegistryException
path
- Path of the edited resource.editViewKey
- UI key of the edit UI.request
- HttpServletRequest received from the the CustomUIServletresponse
- HttpServletResponse to be sent the the CustomUIServletRegistryException
- if an error occurs while processing content.public abstract boolean processNewContent(String parentPath, String newViewKey, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws RegistryException
parentPath
- 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.protected Registry getRegistry(javax.servlet.http.HttpServletRequest request) throws RegistryException
request
- the HTTP Servlet Request.RegistryException
- if an error occurs.protected void redirect(String url, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
url
- the target URL.request
- the HTTP Servlet Request.response
- the HTTP Servlet Response.Copyright © 2015 WSO2 Inc. All Rights Reserved.