|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.portlet.GenericPortlet
org.apache.portals.bridges.common.GenericServletPortlet
org.apache.portals.bridges.velocity.GenericVelocityPortlet
org.apache.portals.gems.browser.BrowserPortlet
AbstractBrowserPortlet
Field Summary | |
protected static String |
BROWSER_ACTION_KEY
|
protected static String |
BROWSER_ITERATOR
|
protected static String |
BROWSER_TABLE_SIZE
|
protected static String |
BROWSER_TITLE_ITERATOR
|
protected javax.portlet.PortletContext |
context
|
protected static String |
CUSTOMIZE_TEMPLATE
|
protected static String |
FILTER
|
protected static String |
FILTERED
|
protected static String |
FIND
|
protected static String |
FIRST
|
protected static String |
LAST
|
protected static String |
LINKS_READ
|
protected org.apache.commons.logging.Log |
log
Static initialization of the logger for this class |
protected static String |
NEXT
|
protected static String |
PEID
|
protected static String |
POOLNAME
|
protected static String |
PREVIOUS
|
protected static String |
ROW_LINK
|
protected static String |
ROW_LINK_IDS
|
protected static String |
ROW_LINK_TARGETS
|
protected static String |
ROW_LINK_TYPES
|
protected static String |
SEARCH_COLUMN
|
protected static String |
SEARCH_STRING
|
protected static String |
SORT_COLUMN_NAME
|
protected static String |
SQL
|
protected static String |
SQL_PARAM_PREFIX
|
protected List |
sqlParameters
|
protected org.apache.jetspeed.sso.SSOProvider |
sso
|
protected static String |
START
|
protected static String |
TABLE_LINK
|
protected static String |
TABLE_LINK_IDS
|
protected static String |
TABLE_LINK_TARGETS
|
protected static String |
TABLE_LINK_TYPES
|
protected static String |
USER_OBJECT_NAMES
|
protected static String |
USER_OBJECT_TYPES
|
protected static String |
USER_OBJECTS
|
protected static String |
VELOCITY_NULL_ENTRY
|
protected static String |
WINDOW_SIZE
|
Fields inherited from class org.apache.portals.bridges.velocity.GenericVelocityPortlet |
PORTLET_BRIDGE_CONTEXT |
Fields inherited from class org.apache.portals.bridges.common.GenericServletPortlet |
PARAM_ACTION_PAGE, PARAM_ALLOW_PREFERENCES, PARAM_CUSTOM_PAGE, PARAM_EDIT_PAGE, PARAM_HELP_PAGE, PARAM_MAX_PAGE, PARAM_VIEW_PAGE |
Fields inherited from class javax.portlet.GenericPortlet |
|
Constructor Summary | |
BrowserPortlet()
|
Method Summary | |
protected void |
clearBrowserIterator(javax.portlet.PortletRequest request)
Centralizes the calls to session - to clear the BrowserIterator from the temp storage. |
void |
doEdit(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
|
void |
doView(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
|
boolean |
filter(List row,
javax.portlet.RenderRequest request)
|
int |
find(BrowserIterator iterator,
String searchString,
String searchColumn)
|
protected BrowserIterator |
getBrowserIterator(javax.portlet.PortletRequest request)
Centralizes the calls to session - to retrieve the BrowserIterator. |
protected String |
getPreference(javax.portlet.RenderRequest request,
String attrName,
String attrDefValue)
|
String |
getQueryString(javax.portlet.RenderRequest request)
|
protected String |
getQueryString(javax.portlet.RenderRequest request,
org.apache.velocity.context.Context context)
This method returns the sql from the getQuery method which can be overwritten according to the needs of the application. |
void |
getRows(javax.portlet.RenderRequest request,
String sql,
int windowSize)
|
void |
getRows(javax.portlet.RenderRequest request,
String sql,
int windowSize,
String filter)
|
protected int |
getStartIndex()
to be used if sorting behavior to be overwritten |
protected int |
getStartVariable(javax.portlet.RenderRequest request,
String attrName,
String sortColName,
BrowserIterator iterator)
|
void |
init(javax.portlet.PortletConfig config)
|
void |
populate(int rowIndex,
int columnIndex,
List row)
This method should be overwritten every time the user object needs to be populated with some user specific constraints. |
void |
processAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
|
void |
publishStatusMessage(javax.portlet.PortletRequest request,
String portlet,
String topic,
Throwable e,
String message)
|
protected void |
readLinkParameters(javax.portlet.RenderRequest request,
org.apache.velocity.context.Context context)
|
protected void |
readSqlParameters(javax.portlet.RenderRequest request)
|
protected void |
readUserParameters(javax.portlet.RenderRequest request,
org.apache.velocity.context.Context context)
|
protected void |
setBrowserIterator(javax.portlet.RenderRequest request,
BrowserIterator iterator)
Centralizes the calls to session - to set the BrowserIterator. |
void |
setSQLParameters(List parameters)
|
Methods inherited from class org.apache.portals.bridges.velocity.GenericVelocityPortlet |
doCustom, doHelp, doPreferencesEdit, getContext, render, setupPreferencesEdit |
Methods inherited from class org.apache.portals.bridges.common.GenericServletPortlet |
getDefaultActionPage, getDefaultCustomPage, getDefaultEditPage, getDefaultHelpPage, getDefaultViewPage, processPreferencesAction, setDefaultActionPage, setDefaultCustomPage, setDefaultEditPage, setDefaultHelpPage, setDefaultViewPage |
Methods inherited from class javax.portlet.GenericPortlet |
destroy, doDispatch, getInitParameter, getInitParameterNames, getPortletConfig, getPortletContext, getPortletName, getResourceBundle, getTitle, init |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final String SQL
protected static final String POOLNAME
protected static final String START
protected static final String FIND
protected static final String SEARCH_STRING
protected static final String SEARCH_COLUMN
protected static final String FILTERED
protected static final String FILTER
protected static final String CUSTOMIZE_TEMPLATE
protected static final String WINDOW_SIZE
protected static final String USER_OBJECT_NAMES
protected static final String USER_OBJECT_TYPES
protected static final String USER_OBJECTS
protected static final String SQL_PARAM_PREFIX
protected static final String LINKS_READ
protected static final String ROW_LINK
protected static final String TABLE_LINK
protected static final String ROW_LINK_IDS
protected static final String ROW_LINK_TYPES
protected static final String ROW_LINK_TARGETS
protected static final String TABLE_LINK_IDS
protected static final String TABLE_LINK_TYPES
protected static final String TABLE_LINK_TARGETS
protected static final String BROWSER_TABLE_SIZE
protected static final String BROWSER_ACTION_KEY
protected static final String BROWSER_ITERATOR
protected static final String BROWSER_TITLE_ITERATOR
protected static final String NEXT
protected static final String PREVIOUS
protected static final String FIRST
protected static final String LAST
protected static final String VELOCITY_NULL_ENTRY
protected static final String PEID
protected static final String SORT_COLUMN_NAME
protected List sqlParameters
protected javax.portlet.PortletContext context
protected org.apache.jetspeed.sso.SSOProvider sso
protected org.apache.commons.logging.Log log
Constructor Detail |
public BrowserPortlet()
Method Detail |
public void init(javax.portlet.PortletConfig config) throws javax.portlet.PortletException
init
in interface javax.portlet.Portlet
javax.portlet.PortletException
public void getRows(javax.portlet.RenderRequest request, String sql, int windowSize) throws Exception
getRows
in interface Browser
Exception
public void getRows(javax.portlet.RenderRequest request, String sql, int windowSize, String filter) throws Exception
Exception
public void doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, IOException
javax.portlet.PortletException
IOException
public void doEdit(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, IOException
javax.portlet.PortletException
IOException
public void processAction(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response) throws javax.portlet.PortletException, IOException
processAction
in interface javax.portlet.Portlet
javax.portlet.PortletException
IOException
protected BrowserIterator getBrowserIterator(javax.portlet.PortletRequest request)
protected void setBrowserIterator(javax.portlet.RenderRequest request, BrowserIterator iterator)
protected void clearBrowserIterator(javax.portlet.PortletRequest request)
protected int getStartVariable(javax.portlet.RenderRequest request, String attrName, String sortColName, BrowserIterator iterator)
protected int getStartIndex()
protected String getQueryString(javax.portlet.RenderRequest request, org.apache.velocity.context.Context context)
public String getQueryString(javax.portlet.RenderRequest request)
protected String getPreference(javax.portlet.RenderRequest request, String attrName, String attrDefValue)
protected void readUserParameters(javax.portlet.RenderRequest request, org.apache.velocity.context.Context context)
protected void readSqlParameters(javax.portlet.RenderRequest request)
public void setSQLParameters(List parameters)
protected void readLinkParameters(javax.portlet.RenderRequest request, org.apache.velocity.context.Context context)
public void populate(int rowIndex, int columnIndex, List row)
populate
in interface Browser
public boolean filter(List row, javax.portlet.RenderRequest request)
filter
in interface Browser
public void publishStatusMessage(javax.portlet.PortletRequest request, String portlet, String topic, Throwable e, String message)
public int find(BrowserIterator iterator, String searchString, String searchColumn)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |