com.waveset.ui
Class HierarchicalCapabilityTable

java.lang.Object
  extended bycom.waveset.ui.Table
      extended bycom.waveset.ui.HierarchicalCapabilityTable

public abstract class HierarchicalCapabilityTable
extends Table

An extension of the table class that has helpers for displaying resources by type


Nested Class Summary
 class HierarchicalCapabilityTable.HierContents
          Get the capabilities to display (end up with folder and capability Lists.
 
Nested classes inherited from class com.waveset.ui.Table
Table.ActionButton, Table.AppletCell, Table.Button, Table.Cell, Table.ColorTextCell, Table.Column, Table.CompoundCell, Table.DateCell, Table.GridCell, Table.GridSpanCell, Table.IconCell, Table.JavascriptButton, Table.JavascriptSelectButton, Table.LinkCell, Table.Row, Table.SelectButton, Table.SubmitCommandButton, Table.SubmitSelectButton, Table.TextCell
 
Field Summary
static java.lang.String code_id
           
 
Fields inherited from class com.waveset.ui.Table
_columns, _descendingSort, _headerLinks, _mc, _rows, _sortColumn, trace
 
Constructor Summary
HierarchicalCapabilityTable()
           
 
Method Summary
 HierarchicalCapabilityTable.HierContents getContents(javax.servlet.ServletRequest req, Session s, boolean getCapabilities, javax.servlet.http.HttpSession httpsession)
           
 HierarchicalCapabilityTable.HierContents getContents(javax.servlet.ServletRequest req, Session s, boolean getCapabilities, javax.servlet.http.HttpSession httpsession, java.lang.String currentContainer)
           
 java.lang.String getCurrentContainer(javax.servlet.ServletRequest req, Session s, javax.servlet.http.HttpSession httpsession)
          Get the current organization, either from a request parameter, or from the session.
 void HierarchicalCapabilityTable()
          All the interesting constrution happens after setting property values and calling the generate() method.
 
Methods inherited from class com.waveset.ui.Table
addMessageParams, addParameter, encodeURLParameter, generate, getAppletHTML, getButtonCount, getButtonHtml, getButtonHtml, getButtonName, getButtonValue, getCellHtml, getColumnCount, getColumnIndex, getColumnIsWrap, getColumnLabel, getColumnName, getColumnNameNoColon, getError, getHiddenFormData, getLinkColumn, getLinkURL, getMessage, getObjectName, getObjectNames, getPageInformation, getParameter, getPostURL, getRowCount, getRowHasCheckbox, getRowNeedsLink, getRowTypeName, getSelectValue, getSortColumn, getSortEnable, getSortOrder, getSortURL, getSortURLParams, getSubTitle, getTableName, getTableNameHTML, getTitle, getTopButtonCount, getTopButtonName, getTopButtonValue, getType, implementsToHTML, isGenerateLinks, isMultiSelect, setApplet, setButtons, setColumns, setError, setGenerateLinks, setHiddenFormData, setLinkColumn, setLinkURL, setMessage, setMultiSelect, setPageInformation, setPostURL, setRouteURLParams, setRowHasCheckbox, setRows, setRowTypeName, setSortColumn, setSortEnable, setSortOrder, setSortURL, setSortURLParams, setSubTitle, setTableName, setTitle, setTopButtons, setType, sort, Table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values
Constructor Detail

HierarchicalCapabilityTable

public HierarchicalCapabilityTable()
Method Detail

HierarchicalCapabilityTable

public void HierarchicalCapabilityTable()
All the interesting constrution happens after setting property values and calling the generate() method.


getCurrentContainer

public java.lang.String getCurrentContainer(javax.servlet.ServletRequest req,
                                            Session s,
                                            javax.servlet.http.HttpSession httpsession)
                                     throws WavesetException
Get the current organization, either from a request parameter, or from the session. Set the current organization on the session so that we can come back to this page after edits. Special case a parameter name of __root__, clearing the session parameter if any. This will force the code to ask the session for "top" which may be a fake group.

Throws:
WavesetException

getContents

public HierarchicalCapabilityTable.HierContents getContents(javax.servlet.ServletRequest req,
                                                            Session s,
                                                            boolean getCapabilities,
                                                            javax.servlet.http.HttpSession httpsession,
                                                            java.lang.String currentContainer)
                                                     throws WavesetException
Throws:
WavesetException

getContents

public HierarchicalCapabilityTable.HierContents getContents(javax.servlet.ServletRequest req,
                                                            Session s,
                                                            boolean getCapabilities,
                                                            javax.servlet.http.HttpSession httpsession)
                                                     throws WavesetException
Throws:
WavesetException