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

java.lang.Object
  extended by org.wso2.carbon.registry.core.jdbc.handlers.Handler
      extended by org.wso2.carbon.registry.core.jdbc.handlers.UIEnabledHandler
          extended by org.wso2.carbon.registry.core.jdbc.handlers.XSLTBasedUIEnabledHandler

Deprecated.

@Deprecated
public class XSLTBasedUIEnabledHandler
extends UIEnabledHandler


Field Summary
protected  List<String> browseViews
          Deprecated.  
protected  Map<String,String> browseXSLTs
          Deprecated.  
protected  List<String> editViews
          Deprecated.  
protected  Map<String,String> editXSLTs
          Deprecated.  
protected  Map<String,String> newHTMLs
          Deprecated.  
protected  List<String> newViews
          Deprecated.  
 
Constructor Summary
XSLTBasedUIEnabledHandler()
          Deprecated.  
 
Method Summary
 Resource getBrowseView(String viewKey, RequestContext requestContext)
          Deprecated. Implementations of this method should generate a HTML UI for rendering the resource content and set it as the content of the returned resource.
 String[] getBrowseViews()
          Deprecated. Implementations have to implement this, if they provide more than one browse view.
 Resource getEditView(String editViewKey, RequestContext requestContext)
          Deprecated. Implementations of this method should generate a HTML UI for editing the resource content and set it as the content of the returned resource.
 String[] getEditViews()
          Deprecated. Implementations have to implement this, if they provide more than edit browse view.
 Resource getNewView(String newViewKey, RequestContext requestContext)
          Deprecated. Implementations of this method should generate a HTML UI for creating a new resource content and set it as the content of the returned resource.
 String[] getNewViews()
          Deprecated. Implementations have to implement this, if they provide more than one new view.
 void setBrowseXSLT(org.apache.axiom.om.OMElement browseElement)
          Deprecated.  
 void setEditXSLT(org.apache.axiom.om.OMElement editElement)
          Deprecated.  
 void setNewHTML(org.apache.axiom.om.OMElement newElement)
          Deprecated.  
 
Methods inherited from class org.wso2.carbon.registry.core.jdbc.handlers.UIEnabledHandler
get, getDefaultBrowseView, getDefaultEditView, getDefaultNewView, getRawResource, setDefaultBrowseView, setDefaultEditView, setDefaultNewView
 
Methods inherited from class org.wso2.carbon.registry.core.jdbc.handlers.Handler
addAssociation, addComment, applyTag, copy, createLink, createVersion, delete, dump, editComment, equals, executeQuery, getAllAssociations, getAssociations, getAverageRating, getComments, getRating, getRegistryContext, getResourcePathsWithTag, getTags, getVersions, hashCode, importChild, importResource, invokeAspect, move, put, putChild, rateResource, removeAssociation, removeComment, removeLink, removeTag, rename, resourceExists, restore, restoreVersion, searchContent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

browseXSLTs

protected Map<String,String> browseXSLTs
Deprecated. 

editXSLTs

protected Map<String,String> editXSLTs
Deprecated. 

newHTMLs

protected Map<String,String> newHTMLs
Deprecated. 

browseViews

protected List<String> browseViews
Deprecated. 

editViews

protected List<String> editViews
Deprecated. 

newViews

protected List<String> newViews
Deprecated. 
Constructor Detail

XSLTBasedUIEnabledHandler

public XSLTBasedUIEnabledHandler()
Deprecated. 
Method Detail

setBrowseXSLT

public void setBrowseXSLT(org.apache.axiom.om.OMElement browseElement)
                   throws RegistryException
Deprecated. 
Throws:
RegistryException

setEditXSLT

public void setEditXSLT(org.apache.axiom.om.OMElement editElement)
                 throws RegistryException
Deprecated. 
Throws:
RegistryException

setNewHTML

public void setNewHTML(org.apache.axiom.om.OMElement newElement)
                throws RegistryException
Deprecated. 
Throws:
RegistryException

getBrowseViews

public String[] getBrowseViews()
Deprecated. 
Description copied from class: UIEnabledHandler
Implementations have to implement this, if they provide more than one browse view.

Implementations can provide the identification key and a descriptive name for all browse UIs they provide by implementing this method. These information has to be provided as a string array, where each string contains information about one UI. Information of a UI should be in the form of ":".

For example, an implementation of this method may look like:

public String[] getBrowseViews() { return new String[] { "text:Text view", "summary:Summary", "details:Detailed view"}; }

Above example indicates that the handler provides three browse views with keys text, summary and details.

Specified by:
getBrowseViews in class UIEnabledHandler
Returns:
String array containing the information about available UIs.

getEditViews

public String[] getEditViews()
Deprecated. 
Description copied from class: UIEnabledHandler
Implementations have to implement this, if they provide more than edit browse view. Provides information about edit view UIs. Details are similar to UIEnabledHandler.getBrowseViews() method.

Specified by:
getEditViews in class UIEnabledHandler
Returns:
String array containing the information about available UIs.

getNewViews

public String[] getNewViews()
Deprecated. 
Description copied from class: UIEnabledHandler
Implementations have to implement this, if they provide more than one new view. Provides information about new resource view UIs. Details are similar to UIEnabledHandler.getBrowseViews() method.

Overrides:
getNewViews in class UIEnabledHandler
Returns:
String array containing the information about available UIs.

getBrowseView

public Resource getBrowseView(String viewKey,
                              RequestContext requestContext)
                       throws RegistryException
Deprecated. 
Description copied from class: UIEnabledHandler
Implementations of this method should generate a HTML UI for rendering the resource content and set it as the content of the returned resource.

Overrides:
getBrowseView in class UIEnabledHandler
Parameters:
viewKey - UI key of the browse UI.
requestContext - Details of the request.
Returns:
Resource filled with HTML UI as the content.
Throws:
RegistryException - if an error occurs while getting the browse view.

getEditView

public Resource getEditView(String editViewKey,
                            RequestContext requestContext)
                     throws RegistryException
Deprecated. 
Description copied from class: UIEnabledHandler
Implementations of this method should generate a HTML UI for editing the resource content and set it as the content of the returned resource.

Generated UI should pass following parameters as HTTP request parameters to the custom edit/new processing servlet. A common method to pass these parameters is to write them as hidden input values in the generated HTML form.

editProcessor: Name of the EditProcessor to process the request viewType: This should be set to "edit". viewKey: Key of the view. EditProcessor implementation may have to act differently according to the view key. resourcePath: Path of the resource to be updated redirectURL: Request will be redirected to this URL after processing is complete. If this is not given request will be redirected to resourcePath.

Overrides:
getEditView in class UIEnabledHandler
Parameters:
editViewKey - UI key of the edit UI.
requestContext - Details of the request.
Returns:
Resource filled with HTML UI as the content.
Throws:
RegistryException - if an error occurs while getting the edit view.

getNewView

public Resource getNewView(String newViewKey,
                           RequestContext requestContext)
                    throws RegistryException
Deprecated. 
Description copied from class: UIEnabledHandler
Implementations of this method should generate a HTML UI for creating a new resource content and set it as the content of the returned resource.

Generated UI should pass following parameters as HTTP request parameters to the custom edit/new processing servlet. A common method to pass these parameters is to write them as hidden input values in the generated HTML form.

editProcessor: Name of the EditProcessor to process the request viewType: This should be set to "new". viewKey: Key of the view. EditProcessor implementation may have to act differently according to the view key. parentPath: Path of the parent collection of the new resource resourceName: Name of the new resource redirectURL: Request will be redirected to this URL after processing is complete. If this is not given request will be redirected to parentPath

Overrides:
getNewView in class UIEnabledHandler
Parameters:
newViewKey - UI key of the new resource UI.
requestContext - Details of the request.
Returns:
Resource filled with HTML UI as the content.
Throws:
RegistryException - if an error occurs while getting the new view.


Copyright © 2011 WSO2 Inc. All Rights Reserved.