|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.ui.Table
com.waveset.ui.SearchTableBase
An implementation of the Table class that does a repository search and displays the results. The constraints for the search are posted to this page and the results of that search are displayed.
Nested Class Summary |
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 | |
int |
_resultLimit
These can be used to control the maximum number of rows returned. |
static java.lang.String |
code_id
|
static java.lang.String |
SIMPLE
|
Fields inherited from class com.waveset.ui.Table |
_columns, _descendingSort, _headerLinks, _mc, _rows, _sortColumn, trace |
Constructor Summary | |
SearchTableBase()
|
Method Summary | |
protected java.lang.String |
appendCondition(Session s,
java.lang.String fullDescription,
java.lang.String currentDescription)
|
java.lang.String |
buildAdminRoleSearchAttributes(Session s,
java.util.ArrayList conditions,
javax.servlet.ServletRequest req)
Build conditions matching the named edit field & criteria. |
java.lang.String |
buildApplicationSearchAttributes(Session s,
java.util.List conditions,
javax.servlet.ServletRequest req)
Build conditions matching the Application (aka Resource Group). |
java.lang.String |
buildApproverSearchAttributes(Session s,
java.util.List conditions,
javax.servlet.ServletRequest req)
Build conditions matching the named edit field & criteria. |
java.lang.String |
buildCapabilitySearchAttributes(Session s,
java.util.List conditions,
javax.servlet.ServletRequest req)
Build conditions matching the named edit field & criteria. |
static RepositoryResult |
buildConstrainedObjectList(Type type,
java.util.List orTogetherConditions,
java.util.List containedOrgs,
AttributeCondition[] inConds,
Session s,
int limit)
Return an RepositoryResult of all of the objects in an organization. |
java.lang.String |
buildControlledOrganizationSearchAttributes(Session s,
java.util.ArrayList conditions,
javax.servlet.ServletRequest req)
Build conditions matching the named edit field & criteria. |
java.lang.String |
buildNameSearchAttributes(java.util.List conditions,
javax.servlet.ServletRequest req,
Session s)
Build conditions matching the named edit field & criteria. |
void |
buildOrganizationOrgList(javax.servlet.ServletRequest req,
Session s,
java.util.List names)
Return a list of the object groups that are a part of this request. |
java.lang.String |
buildResourceSearchAttributes(Session s,
java.util.List conditions,
javax.servlet.ServletRequest req)
Build conditions matching the named edit field & criteria. |
void |
generate(javax.servlet.http.HttpSession hs,
javax.servlet.ServletRequest req,
Session s,
javax.servlet.http.HttpServletResponse response)
We can ignore the type, we have only one table to generate. |
int |
getResultLimit()
|
void |
getSearchParamsFromRequest(javax.servlet.ServletRequest req,
Session s,
java.lang.StringBuffer urlParams,
java.lang.StringBuffer searchDescription,
java.util.List conditions,
java.util.List orgsInOrg,
java.util.List controlledOrgConditions)
|
java.lang.String |
listAvailableOrganizationSearchAttributes(Session s,
java.util.List orgsInOrg,
javax.servlet.ServletRequest req)
Build a list of conditions matching the named edit field & criteria. |
java.lang.String |
listControlledOrganizationSearchAttributes(Session s,
java.util.List conditions,
javax.servlet.ServletRequest req)
Build a list of conditions matching the named edit field & criteria. |
void |
SearchTableBase()
All the interesting constrution happens after setting property values and calling the generate() method. |
void |
setResultLimit(int resultLimit)
|
void |
sort()
Called by generate() after building up a _rows matrix. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
public static final java.lang.String SIMPLE
public int _resultLimit
Constructor Detail |
public SearchTableBase()
Method Detail |
public void setResultLimit(int resultLimit)
public int getResultLimit()
public void SearchTableBase()
public java.lang.String buildNameSearchAttributes(java.util.List conditions, javax.servlet.ServletRequest req, Session s) throws WavesetException
WavesetException
public java.lang.String buildCapabilitySearchAttributes(Session s, java.util.List conditions, javax.servlet.ServletRequest req) throws WavesetException
WavesetException
public java.lang.String buildAdminRoleSearchAttributes(Session s, java.util.ArrayList conditions, javax.servlet.ServletRequest req) throws WavesetException
WavesetException
public java.lang.String buildApproverSearchAttributes(Session s, java.util.List conditions, javax.servlet.ServletRequest req) throws WavesetException
WavesetException
public java.lang.String buildResourceSearchAttributes(Session s, java.util.List conditions, javax.servlet.ServletRequest req) throws WavesetException
WavesetException
public java.lang.String buildApplicationSearchAttributes(Session s, java.util.List conditions, javax.servlet.ServletRequest req) throws WavesetException
WavesetException
public java.lang.String buildControlledOrganizationSearchAttributes(Session s, java.util.ArrayList conditions, javax.servlet.ServletRequest req) throws WavesetException
WavesetException
public java.lang.String listControlledOrganizationSearchAttributes(Session s, java.util.List conditions, javax.servlet.ServletRequest req) throws WavesetException
WavesetException
public java.lang.String listAvailableOrganizationSearchAttributes(Session s, java.util.List orgsInOrg, javax.servlet.ServletRequest req) throws WavesetException
WavesetException
public static RepositoryResult buildConstrainedObjectList(Type type, java.util.List orTogetherConditions, java.util.List containedOrgs, AttributeCondition[] inConds, Session s, int limit) throws WavesetException
type
- type to search fororTogetherConditions
- List AttributeConditions to "or" togethercontainedOrgs
- List of String Organization names to "or" togetherinConds
- array of AttributeCondition to "and" togetherlimit
- limit of objects to return
WavesetException
public void buildOrganizationOrgList(javax.servlet.ServletRequest req, Session s, java.util.List names) throws WavesetException
WavesetException
protected java.lang.String appendCondition(Session s, java.lang.String fullDescription, java.lang.String currentDescription)
public void getSearchParamsFromRequest(javax.servlet.ServletRequest req, Session s, java.lang.StringBuffer urlParams, java.lang.StringBuffer searchDescription, java.util.List conditions, java.util.List orgsInOrg, java.util.List controlledOrgConditions) throws WavesetException
WavesetException
public void generate(javax.servlet.http.HttpSession hs, javax.servlet.ServletRequest req, Session s, javax.servlet.http.HttpServletResponse response) throws WavesetException
generate
in class Table
WavesetException
public void sort()
sort
in class Table
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |