org.wso2.registry.jdbc.handlers
Class UIEnabledHandler

java.lang.Object
  extended by org.wso2.registry.jdbc.handlers.Handler
      extended by org.wso2.registry.jdbc.handlers.UIEnabledHandler
Direct Known Subclasses:
XSLTBasedUIEnabledHandler

public abstract class UIEnabledHandler
extends Handler


Field Summary
 
Fields inherited from class org.wso2.registry.jdbc.handlers.Handler
authorizationUtil, resourceDAO
 
Constructor Summary
UIEnabledHandler()
           
 
Method Summary
 Resource get(RequestContext requestContext)
          Processes the GET action for resource path of the requestContext.
abstract  java.lang.String[] getBrowseViews()
           
 java.lang.String getDefaultBrowseView()
           
 java.lang.String getDefaultEditView()
           
abstract  Resource getEdit(java.lang.String editName, RequestContext requestContext)
           
abstract  java.lang.String[] getEditViews()
           
 Resource getRawResource(RequestContext requestContext)
           
abstract  Resource getView(java.lang.String viewName, RequestContext requestContext)
           
 
Methods inherited from class org.wso2.registry.jdbc.handlers.Handler
delete, importChild, importResource, put, putChild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIEnabledHandler

public UIEnabledHandler()
Method Detail

get

public Resource get(RequestContext requestContext)
             throws RegistryException
Description copied from class: Handler
Processes the GET action for resource path of the requestContext.

Overrides:
get in class Handler
Parameters:
requestContext - Information about the current request. requestContext.resourcePath: Path of the resource requestContext.resource: Resource at the given path. This can be null if no other handler has retrieved that resource so far. If it contains a value, matching handlers are free to do any change to the resource, even thay can replace the resource with completely new instance.
Returns:
Resource instance if the handler processed the GET action successfully.
Throws:
RegistryException - If the media type handler is supposed to handle the get on the media type and if the get fails due a handler specific error

getRawResource

public Resource getRawResource(RequestContext requestContext)
                        throws RegistryException
Throws:
RegistryException

getBrowseViews

public abstract java.lang.String[] getBrowseViews()

getEditViews

public abstract java.lang.String[] getEditViews()

getDefaultBrowseView

public java.lang.String getDefaultBrowseView()

getDefaultEditView

public java.lang.String getDefaultEditView()

getView

public abstract Resource getView(java.lang.String viewName,
                                 RequestContext requestContext)
                          throws RegistryException
Throws:
RegistryException

getEdit

public abstract Resource getEdit(java.lang.String editName,
                                 RequestContext requestContext)
                          throws RegistryException
Throws:
RegistryException


Copyright © 2007 Apache Web Services Project. All Rights Reserved.