|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.remotefileselector2.html.InformationServicesSearch
public class InformationServicesSearch
The InformationServicesSearch is a TransformationBean that generates the appropriate HTML 4.0
to represent the default search component for the InformationServicesSelector
.
InformationServicesSearch provides the ability to search
a repository using the Information Services interfaces.
This class extends the function of the RemoteFileSearch
by providing a
default InformationServicesSearchModel
and a default view for results.
The RemoteFileSearch
class may be a better class to use if you are
creating your own model. A model is created when
the repository is set on the component. Therefore,
if you do set your own model on this class it should
be done before the repository is set or the repository should
already be set on the model.
The results are displayed in a
TableView
.
By default the column model for the TableView
includes
the following columns:
By default all file types are displayed in
the InformationServicesSearch
.
These file types
can be filtered to only display reports,
stored processes or information maps. See the
setFilterValues
method
for more details on filtering the file types.
The InformationServicesSearch Transformation Bean component elements are the same as those
specified for the RemoteFileSearch
component.
It is an HTML table that contains other HTML tables, Transformation Beans and Actions.
The expanded search facility appears as follows:
Note that the toString() method on this class calls the write
method, which may have undesirable side effects. See BaseTransformation.toString() for more information. Debuggers often use toString() to show the value of a variable, and this may cause unexpected behavior while debugging
Field Summary | |
---|---|
static java.lang.String |
RB_KEY
|
Fields inherited from class com.sas.servlet.tbeans.remotefileselector2.html.RemoteFileSearch |
---|
DEFAULT_TEMPLATE_FILE_NAME |
Fields inherited from class com.sas.servlet.tbeans.remotefileselector2.BaseRemoteFileSearch |
---|
model |
Fields inherited from class com.sas.servlet.tbeans.BaseActionCompositeTransformation |
---|
viewerSupport |
Constructor Summary | |
---|---|
InformationServicesSearch()
Constructs a new InformationServicesSearch component. |
|
InformationServicesSearch(com.sas.services.information.RepositoryInterface repository,
java.util.Locale locale)
Constructs a new InformationServicesSearch component. |
|
InformationServicesSearch(com.sas.services.user.UserContextInterface user,
java.util.Locale locale)
Constructs a new InformationServicesSearch component. |
Method Summary | |
---|---|
com.sas.services.information.RepositoryInterface |
getRepository()
Returns the repository instance. |
com.sas.services.user.UserContextInterface |
getUserContext()
Returns the UserContextInterface
instance. |
protected void |
setLocaleDependentProperties(java.util.Locale locale)
Sets properties that should be updated if the locale changes. |
void |
setRepository(com.sas.services.information.RepositoryInterface repository)
Sets the repository navigated by the component. |
void |
setUserContext(com.sas.services.user.UserContextInterface user)
Sets the UserContextInterface instance. |
protected void |
updateColumnHeaderValues(TableColumnModel searchColumnModel,
java.util.Locale locale)
Updates the column headers for the search results TableView based on the locale. |
Methods inherited from class com.sas.servlet.tbeans.remotefileselector2.BaseRemoteFileSearch |
---|
getExpandCollapseComponent, getModel, getRemoteFileSelector, getSearchFieldsAttributes, getStartingLocation, isExpandCollapseVisible, setExpandCollapseComponent, setExpandCollapseVisible, setModel, setRemoteFileSelector, setSearchFieldsAttributes, setStartingLocation |
Methods inherited from class com.sas.servlet.tbeans.BaseActionCompositeTransformation |
---|
applyTemplate, applyTemplate, dispose, getActionFilter, getActionSupportType, getComponentAction, getComponentActionType, getUniqueId, getViewerSupport, isActionVisible, listActionTypes, listAreaTypes, moveActionAttributesToComponent, setActionProvider, setActionSupportType, setActionVisible, setComponent, setComponentActionType, setUniqueId, writeTemplate |
Methods inherited from class com.sas.servlet.tbeans.BaseCompositeTransformation |
---|
getActionProvider, getComponent, getComponents, getDefaultTemplate, getStyleInfo, getStyleMap, getTemplate, getTemplateDictionary, getTemplateFileName, getTemplateLocation, getVisibleComponents, isFlushEnabled, propertyChange, removeComponent, setCleanUpResourcesOn, setComponent, setFlushEnabled, setId, setLocale, setRequest, setResponse, setStyleInfo, setTemplate, setTemplate, setTemplateDictionary, setTemplateFileName, setTemplateLocation |
Methods inherited from interface com.sas.servlet.tbeans.TransformationInterface |
---|
getCustomAttributes, getDescription, getId, getLocale, getName, getRequest, getResponse, getTagEpilog, getTagProlog, isVisible, setCustomAttributes, setDescription, setId, setLocale, setName, setRequest, setResponse, setTagEpilog, setTagProlog, setVisible, write, write, write |
Methods inherited from interface com.sas.actionprovider.HttpActionProviderViewInterface |
---|
getRequest, setRequest |
Methods inherited from interface com.sas.actionprovider.HttpActionProviderInterface |
---|
getActionProvider |
Field Detail |
---|
public static final java.lang.String RB_KEY
Constructor Detail |
---|
public InformationServicesSearch()
InformationServicesSearch
component.
A default name is generated for the selector.
public InformationServicesSearch(com.sas.services.information.RepositoryInterface repository, java.util.Locale locale)
InformationServicesSearch
component.
The repository instance is used to create a default instance of the
InformationServicesSearchModel
.
repository
- searched by the componentpublic InformationServicesSearch(com.sas.services.user.UserContextInterface user, java.util.Locale locale)
InformationServicesSearch
component.
The UserContextInterface
instance is used to create
a default instance of the
InformationServicesSearchModel
.
user
- contextMethod Detail |
---|
protected void updateColumnHeaderValues(TableColumnModel searchColumnModel, java.util.Locale locale)
setLocaleDependentProperties
method to update the viewers column headers.
This method is also called when the component is initialized.
The component is not initialized until the
RepositoryInterface
instance
or the UserContextInterface
instance is set.
searchColumnModel
- column model defined by the TableView
,
the columns in the column model are the displayed columns in the search
results viewerlocale
- locale set on componentsetLocaleDependentProperties(Locale)
public void setRepository(com.sas.services.information.RepositoryInterface repository)
InformationServicesSearchModel
instance is created and the repository is set on that model. The component is
also initialized. The default viewer is setup during
initializatioin.
The search component must have a RepositoryInterface
instance or a UserContextInterface
instance
to render successfully.
repository
- searched by componentgetRepository()
public com.sas.services.information.RepositoryInterface getRepository()
setRepository(com.sas.services.information.RepositoryInterface)
public void setUserContext(com.sas.services.user.UserContextInterface user)
UserContextInterface
instance.
The userContext is useful if dependent repositories exists.
user
- user context that defines the repositories to
use for searchingpublic com.sas.services.user.UserContextInterface getUserContext()
UserContextInterface
instance.
setUserContext(com.sas.services.user.UserContextInterface)
protected void setLocaleDependentProperties(java.util.Locale locale)
TableView
must be reset. The
labels are also updated.
The setLocale method calls this method so that the dependent properties can be updated.
setLocaleDependentProperties
in class RemoteFileSearch
locale
- new locale setting
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |