org.wso2.carbon.registry.core.jdbc.handlers
Class CustomEditManager

java.lang.Object
  extended by org.wso2.carbon.registry.core.jdbc.handlers.CustomEditManager

public class CustomEditManager
extends java.lang.Object

Manages execution of EditProcessor implementations of custom UIs. EditProcessors are registered in this class at the initialization of the registry.


Constructor Summary
CustomEditManager()
          Creates new edit manager instance for the edit processors' use.
 
Method Summary
 void addProcessor(java.lang.String processorKey, EditProcessor editProcessor)
          Registers EditProcessors in the registry.
 void process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Handles edit and new resource requests generated from custom UIs by delegating them to corresponding EditProcessors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomEditManager

public CustomEditManager()
Creates new edit manager instance for the edit processors' use.

Method Detail

addProcessor

public void addProcessor(java.lang.String processorKey,
                         EditProcessor editProcessor)
Registers EditProcessors in the registry.

Parameters:
processorKey - Edit processor key given in the configuration. This is used to refer edit processors by custom UIs.
editProcessor - EditProcessor implementation.

process

public void process(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws RegistryException
Handles edit and new resource requests generated from custom UIs by delegating them to corresponding EditProcessors.

Parameters:
request - HttpServletRequest containing the request details.
response - HttpServletResponse to be filled with response details.
Throws:
RegistryException - Throws if edit processor key is not specified in the request, EditProcessor is not associated with the given key or view type parameter is not specified in the request.


Copyright © 2011 WSO2 Inc. All Rights Reserved.