org.wso2.carbon.registry.core.jdbc.handlers
Class TextEditProcessor
java.lang.Object
org.wso2.carbon.registry.core.jdbc.handlers.EditProcessor
org.wso2.carbon.registry.core.jdbc.handlers.TextEditProcessor
public class TextEditProcessor
- extends EditProcessor
Built-in EditProcessor implementation to process text inputs.
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextEditProcessor
public TextEditProcessor()
processEditContent
public boolean processEditContent(String path,
String editViewKey,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws RegistryException
- Extracts text based user input from a HTML control named "generic-text-input" and sets it as
the resource content.
- Specified by:
processEditContent
in class EditProcessor
- Parameters:
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.
- Returns:
- true if response is sent within the EditProcessor implementation.
- Throws:
RegistryException
processNewContent
public boolean processNewContent(String path,
String newViewKey,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws RegistryException
- Description copied from class:
EditProcessor
- Implementations of this method should extract input parameters from new view and create a new
resource with that content.
- Specified by:
processNewContent
in class EditProcessor
- Parameters:
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 CustomUIServlet
- Returns:
- true if response is sent within the EditProcessor implementation.
- Throws:
RegistryException
- if an error occurs while processing content.
Copyright © 2013 WSO2 Inc. All Rights Reserved.