com.raritantechnologies.verity
Class DynamicVeritySearchSource

java.lang.Object
  extended bycom.raritantechnologies.searchApp.SearchSource
      extended bycom.raritantechnologies.verity.VeritySearchSource
          extended bycom.raritantechnologies.verity.DynamicVeritySearchSource

public class DynamicVeritySearchSource
extends VeritySearchSource

Enables fine grained control of Collection selection and field selection.

Expects a selection field with selection types designated by a prefix:

     Collection Selection
         Collection:[Collection Name]

     Field Selection:
         [FieldName]:[Field Value]
  

Overrides getCollectionNames( ) and getQueryProcessor( ) adds additional query cooking to provide field-level record selection.

XML Configuration Template:

 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Field Summary
 
Fields inherited from class com.raritantechnologies.searchApp.SearchSource
ID_FIELD, IS_FEDERATED, NUMBER_OF_FIELDS, SECURE, SOURCE_NAME, SOURCE_TYPE, TITLE_FIELD, URL_FIELD
 
Constructor Summary
DynamicVeritySearchSource()
           
 
Method Summary
 java.lang.String[] getCollectionNames(ILoginInfo userInfo, OrderedMap searchParams)
           
 IQueryProcessor getQueryProcessor()
          returns the type of QueryProcessor that can access this SearchSource.
 void setCanReturnZero(boolean canReturnZero)
           
 void setDefaultCollections(java.lang.String[] defaultCollections)
           
 void setSelectableCollections(java.lang.String[] selectableCollList)
           
 void setSelectQueryField(java.lang.String selectQueryField)
           
 
Methods inherited from class com.raritantechnologies.verity.VeritySearchSource
formatResult, formatResult, formatResults, formatResults, getBlankQueryReturnsAll, getCharMap, getCollectionNamesStr, getDefaultSortSpec, getDisplayFields, getK2ServerSpec, getMaxDocCount, getQueryCooker, getQueryParser, getSearchField, getSecurityModel, getServerHost, getServerPort, getZoneCollectionTypeField, getZoneIDField, getZoneNameField, getZonePollInterval, getZoneSearchField, getZoneSource, getZoneSourceQuery, getZoneTypeField, hasCollection, isCaseSensitive, isExternalZoneSource, setBlankQueryReturnsAll, setCaseSensitiveSearch, setCharMap, setCollectionNames, setCollectionSecurityModel, setDefaultSortSpec, setDisplayFields, setExternalZoneSource, setQueryCookerElement, setQueryParserElement, setServerHost, setServerPort, setZoneCollectionTypeField, setZoneIDField, setZoneNameField, setZonePollInterval, setZoneSearchField, setZoneSource, setZoneSourceQuery, setZoneTypeField, toString, zonePoll, zonePollCheck
 
Methods inherited from class com.raritantechnologies.searchApp.SearchSource
addFieldFormatter, addSearchField, addSourceAttributes, addStaticField, addStaticFields, addUserSearchField, canAccess, canConsolidateSources, consolidateSources, delSearchField, formatResultField, formatResultField, getAccessableFields, getAttributes, getBasePath, getConfigPath, getDisplayName, getFieldFormatters, getIDField, getName, getProperty, getSearchFieldID, getSearchFields, getSearchFields, getSecondarySortSpec, getSecurityManager, getSecurityManagerName, getSecurityModel, getSortSpec, getSourceCredentials, getSourcePropertyNames, getTitleField, getType, getURLField, getUserSearchFields, isMultiThreaded, setConfigPath, setDisplayName, setIDField, setMultiThreaded, setName, setSecurityManagerName, setSecurityModel, setSortMap, setSourcePropertyInfoSource, setTitleField, setType, setURLField, shouldFormatResults, supportsBackgroundSort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DynamicVeritySearchSource

public DynamicVeritySearchSource()
Method Detail

getCollectionNames

public java.lang.String[] getCollectionNames(ILoginInfo userInfo,
                                             OrderedMap searchParams)
Overrides:
getCollectionNames in class VeritySearchSource

setSelectableCollections

public void setSelectableCollections(java.lang.String[] selectableCollList)

setSelectQueryField

public void setSelectQueryField(java.lang.String selectQueryField)

setDefaultCollections

public void setDefaultCollections(java.lang.String[] defaultCollections)

setCanReturnZero

public void setCanReturnZero(boolean canReturnZero)

getQueryProcessor

public IQueryProcessor getQueryProcessor()
Description copied from class: SearchSource
returns the type of QueryProcessor that can access this SearchSource.

Overrides:
getQueryProcessor in class VeritySearchSource