|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.xsp.complex.ValueBindingObjectImpl com.ibm.xsp.model.AbstractDataSource com.ibm.xsp.model.AbstractViewDataSource com.ibm.xsp.model.domino.DominoViewData
public class DominoViewData
DominoViewData represents a Domino View Data Source
Nested Class Summary | |
---|---|
protected static class |
DominoViewData.ViewProperties
Runtime Preperties for the View Data Soruce |
Nested classes/interfaces inherited from class com.ibm.xsp.model.AbstractDataSource |
---|
AbstractDataSource.RuntimeProperties |
Field Summary | |
---|---|
static java.lang.String |
COLLAPSE_ALL
|
static java.lang.String |
EXPAND_ALL
|
Fields inherited from class com.ibm.xsp.model.AbstractDataSource |
---|
NO_VARS |
Constructor Summary | |
---|---|
DominoViewData()
Default Constructor |
Method Summary | |
---|---|
protected java.lang.String |
composeUniqueId()
Compute a unique ID for shared documents. |
protected AbstractDataSource.RuntimeProperties |
createRuntimeProperties()
Create a new AbstractDataSource.RuntimeProperties instance |
protected ViewDataContainer |
doOpenView(javax.faces.context.FacesContext context)
Open the view |
java.lang.String |
getCategoryFilter()
Get the Category Filter used to restrict the contents of the View to descendants of this category |
java.lang.String |
getDatabaseName()
Get the name of the database containing the view data source. |
java.lang.String |
getDataCache()
Return how data is cached between requests (full, id, nodata) |
javax.faces.model.DataModel |
getDataModel()
Return the data model associated with this data source. |
java.lang.Object |
getDataObject()
Return the default data object |
int |
getExpandLevel()
Return the level of expansion for entries in a hierarchical View |
java.lang.Object |
getKeys()
Return the key used to filter the content of aview based on column values |
java.lang.String |
getParentId()
Get the document id of the parent whose descendants will populate the view |
protected DominoViewData.ViewProperties |
getRuntimeProperties()
Return the current Runtime Properties |
java.lang.String |
getSearch()
Return the string that will filter the view results If it is not set in the Runtime Properties, try the value set with setSearch(), else try the value of the search property, else return null. |
int |
getSearchMaxDocs()
Return the maximum number of documents to include in a search result. |
java.lang.String |
getSortColumn()
Return a column that can be used to sort the View Data |
java.lang.String |
getSortOrder()
Return the order by which data in the sort colunm is collated (ascending, descending, toggle) |
java.lang.Object |
getStartKeys()
Return the key used to define the first row for a view |
lotus.domino.View |
getView()
Return the View the Domino View Data Source is based on |
java.lang.String |
getViewName()
Return the name of the Domino View that this Data Source opens |
protected void |
initializeRuntimeProperties(AbstractDataSource.RuntimeProperties rtProps)
Initialize Runtime Properties. |
boolean |
isKeysExactMatch()
Return whether exact matching is applied to the filter keys |
boolean |
isReadonly()
Returns true - Views are read only. |
boolean |
isReadOnly(java.lang.Object view)
Returns true - Views are read only. |
boolean |
isView(java.lang.Object view)
Return true if this is the view associated with this data source |
void |
readRequestParams(javax.faces.context.FacesContext context,
java.util.Map<java.lang.String,java.lang.Object> requestMap)
Read the request parameters for this data source |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
boolean |
save(javax.faces.context.FacesContext context,
DataContainer data)
Returns false - Views are read only. |
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setCategoryFilter(java.lang.String categoryFilter)
Set the Category Filter used to restrict the contents of the View to descendants of this category |
void |
setDatabaseName(java.lang.String databaseName)
Set the name of the database containing the view data source. |
void |
setDataCache(java.lang.String dataCache)
Set how data is cached between requests (full, id, nodata) |
void |
setExpandLevel(int expandLevel)
Set the level of expansion for entries in a hierarchical View |
void |
setKeys(java.lang.Object keys)
Set the key used to filter the content of aview based on column values |
void |
setKeysExactMatch(boolean keysExactMatch)
Set whether exact matching is applied to the filter keys |
void |
setParentId(java.lang.String parentId)
Set the document id of the parent whose descendants will populate the view |
void |
setSearch(java.lang.String search)
Set the search string to be performed on the view |
void |
setSearchMaxDocs(int searchMaxDocs)
Set the maximum number of documents to include in a search result. |
void |
setSortColumn(java.lang.String sortColumn)
Set a column that can be used to sort the View Data |
void |
setSortOrder(java.lang.String sortOrder)
Set the order by which data in the sort colunm is collated (ascending, descending, toggle) |
void |
setStartKeys(java.lang.Object startKeys)
Set the key used to define the first row for a view |
void |
setViewName(java.lang.String viewName)
Set the name of the Domino View that this Data Source opens |
Methods inherited from class com.ibm.xsp.model.AbstractViewDataSource |
---|
getPostOpenView, getQueryOpenView, invoke, load, openView, pushData, setPostOpenView, setQueryOpenView |
Methods inherited from class com.ibm.xsp.model.AbstractDataSource |
---|
beginRuntimeProperties, computeUniqueBeanId, endRuntimeProperties, getBeanId, getDataContainer, getDataContainer, getEffectiveScope, getRequestParamPrefix, getScope, getUniqueId, getVar, getVars, getViewRoot, hasRuntimeProperties, isDataShared, isIgnoreRequestParams, isNestedInUIIterator, popData, prefixRequestParam, pushData, putDataContainer, refresh, removeBean, removeBean, save, setIgnoreRequestParams, setRequestParamPrefix, setScope, setVar |
Methods inherited from class com.ibm.xsp.complex.ValueBindingObjectImpl |
---|
getComponent, getFacesContext, getValueBinding, isTransient, setComponent, setTransient, setValueBinding |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.xsp.model.DataSource |
---|
getBeanId, getDataContainer, getRequestParamPrefix, getScope, getUniqueId, getVar, getVars, isIgnoreRequestParams, refresh, save, setIgnoreRequestParams, setRequestParamPrefix, setScope, setVar |
Methods inherited from interface com.ibm.xsp.model.DataPublishingObject |
---|
popData, pushData |
Field Detail |
---|
public static final java.lang.String EXPAND_ALL
public static final java.lang.String COLLAPSE_ALL
Constructor Detail |
---|
public DominoViewData()
Method Detail |
---|
protected DominoViewData.ViewProperties getRuntimeProperties()
AbstractDataSource
getRuntimeProperties
in class AbstractDataSource
protected AbstractDataSource.RuntimeProperties createRuntimeProperties()
AbstractDataSource
AbstractDataSource.RuntimeProperties
instance
createRuntimeProperties
in class AbstractDataSource
protected void initializeRuntimeProperties(AbstractDataSource.RuntimeProperties rtProps)
AbstractDataSource
initializeRuntimeProperties
in class AbstractDataSource
rtProps
- Runtime Propertiespublic void readRequestParams(javax.faces.context.FacesContext context, java.util.Map<java.lang.String,java.lang.Object> requestMap)
AbstractDataSource
readRequestParams
in class AbstractDataSource
public boolean isReadOnly(java.lang.Object view)
isReadOnly
in class AbstractViewDataSource
AbstractViewDataSource.isReadOnly(java.lang.Object)
public boolean isReadonly()
isReadonly
in interface DataSource
isReadonly
in class AbstractViewDataSource
AbstractViewDataSource.isReadonly()
public boolean save(javax.faces.context.FacesContext context, DataContainer data) throws FacesExceptionEx
save
in class AbstractViewDataSource
FacesExceptionEx
AbstractViewDataSource.save(javax.faces.context.FacesContext, com.ibm.xsp.model.DataContainer)
public java.lang.Object getDataObject()
AbstractDataSource
getDataObject
in class AbstractDataSource
protected java.lang.String composeUniqueId()
AbstractDataSource
composeUniqueId
in class AbstractDataSource
public boolean isView(java.lang.Object view)
ViewDataSource
protected ViewDataContainer doOpenView(javax.faces.context.FacesContext context)
AbstractViewDataSource
doOpenView
in class AbstractViewDataSource
public javax.faces.model.DataModel getDataModel()
ModelDataSource
public lotus.domino.View getView()
public java.lang.String getSearch()
search
property, else return null.
public void setSearch(java.lang.String search)
_searchStr
- the search string to be performed on the viewpublic int getSearchMaxDocs()
Integer.MAX_VALUE
public void setSearchMaxDocs(int searchMaxDocs)
searchMaxDocs
- the maximum number of documents to include in a search resultpublic java.lang.String getDatabaseName()
public void setDatabaseName(java.lang.String databaseName)
databaseName
- the databaseName to setpublic java.lang.String getViewName()
public void setViewName(java.lang.String viewName)
viewName
- public void setCategoryFilter(java.lang.String categoryFilter)
categoryFilter
- Category Filter used to restrict the contents of the Viewpublic java.lang.String getCategoryFilter()
public void setParentId(java.lang.String parentId)
parentId
- the document id of the parent whose descendants will populate the viewpublic java.lang.String getParentId()
public void setSortColumn(java.lang.String sortColumn)
sortColumn
- a column that can be used to sort the View Datapublic java.lang.String getSortColumn()
public void setSortOrder(java.lang.String sortOrder)
sortOrder
- the order by which data in the sort colunm is collated (ascending, descending, toggle)public java.lang.String getSortOrder()
public void setKeys(java.lang.Object keys)
keys
- the key used to filter the content of aview based on column valuespublic java.lang.Object getKeys()
public void setKeysExactMatch(boolean keysExactMatch)
keysExactMatch
- true
if exact matching is applied to the filter keyspublic boolean isKeysExactMatch()
true
if exact matching is applied to the filter keyspublic void setStartKeys(java.lang.Object startKeys)
startKeys
- the key used to define the first row for a viewpublic java.lang.Object getStartKeys()
public void setDataCache(java.lang.String dataCache)
dataCache
- full, id, nodatapublic java.lang.String getDataCache()
public void setExpandLevel(int expandLevel)
expandLevel
- the level of expansion for entries in a hierarchical Viewpublic int getExpandLevel()
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
saveState
in class AbstractViewDataSource
public void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class AbstractViewDataSource
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |