org.jafer.portlets
Class XsltSearchPortlet

java.lang.Object
  extended by javax.portlet.GenericPortlet
      extended by org.jafer.portlets.AbstractXSLTPortlet
          extended by org.jafer.portlets.XsltSearchPortlet
All Implemented Interfaces:
javax.portlet.Portlet, javax.portlet.PortletConfig

public class XsltSearchPortlet
extends AbstractXSLTPortlet


Field Summary
private  java.util.TreeMap targets
           
 
Fields inherited from class org.jafer.portlets.AbstractXSLTPortlet
domBuilder
 
Constructor Summary
XsltSearchPortlet()
           
 
Method Summary
private  void addRegistryEntries()
           
private  void addStaticEntries()
           
private  void clearSession(javax.portlet.ActionRequest request)
          clearSession clear session (and close JAFER bean connections)
private  void clearSession(javax.portlet.RenderRequest request)
          clearSession clear session (and close JAFER bean connections)
private  Databean createBean(java.lang.String database)
          createBean Creates a JAFER Z3950/SRW Bean
private  Databean getSession(javax.portlet.ActionRequest request, java.lang.String databases)
          getSession get sessions details as JAFER bean
private  Databean getSession(javax.portlet.RenderRequest request)
          getSession get sessions details as JAFER bean
protected  java.lang.String[][] getVTableAction()
          Get the Action dispatch table for processing JSR-168 action requests
protected  java.lang.String[][] getVTableEdit()
          Get the Edit dispatch table for processing JSR-168 Edit requests
protected  java.lang.String[][] getVTableHelp()
          Get the Help dispatch table for processing JSR-168 Help requests
protected  java.lang.String[][] getVTableView()
          Get the View dispatch table for processing JSR-168 View requests
 void init()
           
 org.w3c.dom.Document initSession(javax.portlet.RenderRequest request)
          initSession view method for action=start
 void search(javax.portlet.ActionRequest request)
           
 org.w3c.dom.Document setItem(javax.portlet.RenderRequest request)
          setItem view method for action=item
 org.w3c.dom.Document setItemCloud(javax.portlet.RenderRequest request)
          setItemCloud view method for action=list
private  void storeSession(javax.portlet.ActionRequest request, Databean bean)
          storeSession Stores session details as JAFER bean
private  void storeSession(javax.portlet.RenderRequest request, Databean bean)
          storeSession Stores session details as JAFER bean
 
Methods inherited from class org.jafer.portlets.AbstractXSLTPortlet
doEdit, doHelp, doView, processAction
 
Methods inherited from class javax.portlet.GenericPortlet
destroy, doDispatch, getInitParameter, getInitParameterNames, getPortletConfig, getPortletContext, getPortletName, getResourceBundle, getTitle, init, render
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

targets

private java.util.TreeMap targets
Constructor Detail

XsltSearchPortlet

public XsltSearchPortlet()
Method Detail

addRegistryEntries

private void addRegistryEntries()

addStaticEntries

private void addStaticEntries()

init

public void init()
          throws javax.portlet.PortletException
Overrides:
init in class javax.portlet.GenericPortlet
Throws:
javax.portlet.PortletException

createBean

private Databean createBean(java.lang.String database)
createBean Creates a JAFER Z3950/SRW Bean

Returns:
Databean

storeSession

private void storeSession(javax.portlet.ActionRequest request,
                          Databean bean)
storeSession Stores session details as JAFER bean

Parameters:
request - ActionRequest
bean - Databean

storeSession

private void storeSession(javax.portlet.RenderRequest request,
                          Databean bean)
storeSession Stores session details as JAFER bean

Parameters:
request - RenderRequest
bean - Databean

getSession

private Databean getSession(javax.portlet.ActionRequest request,
                            java.lang.String databases)
getSession get sessions details as JAFER bean

Parameters:
request - ActionRequest
Returns:
Databean

getSession

private Databean getSession(javax.portlet.RenderRequest request)
getSession get sessions details as JAFER bean

Parameters:
request - RenderRequest
Returns:
Databean

clearSession

private void clearSession(javax.portlet.ActionRequest request)
clearSession clear session (and close JAFER bean connections)

Parameters:
request - ActionRequest

clearSession

private void clearSession(javax.portlet.RenderRequest request)
clearSession clear session (and close JAFER bean connections)

Parameters:
request - RenderRequest

getVTableAction

protected java.lang.String[][] getVTableAction()
Description copied from class: AbstractXSLTPortlet
Get the Action dispatch table for processing JSR-168 action requests

Each row should be of the form:

action parameter value, java method, next action parameter

where action parameter value is the Action parameter passed by the portlet (first row used if no Action parameter present)
java method is a java method in the class of the form public void ...(ActionRequest request) to handle the action
next action parameter is the Action parameter to set for the subsequent renderRequest

Specified by:
getVTableAction in class AbstractXSLTPortlet
Returns:
String[][]

getVTableView

protected java.lang.String[][] getVTableView()
Description copied from class: AbstractXSLTPortlet
Get the View dispatch table for processing JSR-168 View requests

Each row should be of the form:

action parameter value, java method, xslt path

where action parameter value is the Action parameter passed by the portlet (first row used if no Action parameter present)
java method is a java method in the class of the form public Document ...(RenderRequest request) throws PortletException which should return the required XML
xslt path is the relative path to an XSLT tranform to take the XML into a HTML fragment

Specified by:
getVTableView in class AbstractXSLTPortlet
Returns:
String[][]

getVTableHelp

protected java.lang.String[][] getVTableHelp()
Description copied from class: AbstractXSLTPortlet
Get the Help dispatch table for processing JSR-168 Help requests

Each row should be of the form:

action parameter value, java method, xslt path

where action parameter value is the Action parameter passed by the portlet (first row used if no Action parameter present)
java method is a java method in the class of the form public Document ...(RenderRequest request) throws PortletException which should return the required XML
xslt path is the relative path to an XSLT tranform to take the XML into a HTML fragment

Specified by:
getVTableHelp in class AbstractXSLTPortlet
Returns:
String[][]

getVTableEdit

protected java.lang.String[][] getVTableEdit()
Description copied from class: AbstractXSLTPortlet
Get the Edit dispatch table for processing JSR-168 Edit requests

Each row should be of the form:

action parameter value, java method, xslt path

where action parameter value is the Action parameter passed by the portlet (first row used if no Action parameter present)
java method is a java method in the class of the form public Document ...(RenderRequest request) throws PortletException which should return the required XML
xslt path is the relative path to an XSLT tranform to take the XML into a HTML fragment

Specified by:
getVTableEdit in class AbstractXSLTPortlet
Returns:
String[][]

search

public void search(javax.portlet.ActionRequest request)

initSession

public org.w3c.dom.Document initSession(javax.portlet.RenderRequest request)
                                 throws javax.portlet.PortletException
initSession view method for action=start

Parameters:
request - RenderRequest
Throws:
javax.portlet.PortletException

setItem

public org.w3c.dom.Document setItem(javax.portlet.RenderRequest request)
                             throws javax.portlet.PortletException
setItem view method for action=item

Parameters:
request - RenderRequest
Throws:
javax.portlet.PortletException

setItemCloud

public org.w3c.dom.Document setItemCloud(javax.portlet.RenderRequest request)
                                  throws javax.portlet.PortletException
setItemCloud view method for action=list

Parameters:
request - RenderRequest
Throws:
javax.portlet.PortletException