public class SiteFilterBuilder extends RecordFilterBuilderImpl
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALL_SITES_SCOPE
All Sites Search Scope
|
static java.lang.String |
ANY_SITE_SCOPE
Any Site Search Scope
|
protected static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
CURRENT_SITE_SCOPE
Current Site Search Scope
|
static java.lang.String |
NONE_SITE_SCOPE
None Site Search Scope
|
SERVICE_INFO_KEY
EMPTY_FILTER
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
SiteFilterBuilder() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
buildCurrentSiteFilter()
Returns record filter for the current site
|
protected java.lang.String |
buildExcludeSitesFilter(java.lang.String[] pSiteIds)
Allow only items not from the given sites
|
java.lang.String |
buildRecordFilter()
Generates the record filter to filter the query based on the sites.
|
java.lang.String[] |
determineSharableSiteIds(java.lang.String pScope) |
java.lang.String[] |
determineSiteIds() |
java.lang.String[] |
filterSiteList(java.lang.String[] pSites)
Filters the site array used in generateSiteFilter().
|
java.lang.String[] |
getAllSites()
Returns Ids of all sites from SiteManager
|
Site |
getCurrentSite() |
protected static java.lang.String[] |
getRepositoryIds(RepositoryItem[] pRepositoryItems)
Utility method to get repository item ids
|
SiteGroupManager |
getSiteGroupManager()
Gets the SiteGroupManager
|
java.lang.String[] |
getSiteIds()
Gets an array of site IDs to filter the search by.
|
SiteManager |
getSiteManager()
Gets the SiteManager
|
java.lang.String |
getSitePropertyName()
Returns the name of site ID property in Endeca records.
|
java.lang.String |
getSiteScope()
Gets the search's site scope.
|
boolean |
isIncludeDisabledSites()
Returns the mIncludeDisabledSites property.
|
boolean |
isIncludeInactiveSites()
Whether or not the site filter should include inactive sites.
|
void |
setIncludeDisabledSites(boolean pIncludeDisabledSites)
Sets the mIncludeDisabledSites property.
|
void |
setIncludeInactiveSites(boolean pIncludeInactiveSites)
Sets whether or not the site filter should include inactive sites.
|
void |
setSiteGroupManager(SiteGroupManager pSiteGroupManager)
Sets the SiteGroupManager
|
void |
setSiteIds(java.lang.String[] pSiteIds)
Sets the array of site IDs to filter the search by.
|
void |
setSiteManager(SiteManager pSiteManager) |
void |
setSitePropertyName(java.lang.String pSitePropertyName)
Sets then name of site ID property in Endeca records.
|
void |
setSiteScope(java.lang.String pSiteScope)
Sets the search's site scope.
|
isSecurityFilter, setSecurityFilter
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService, toString
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
protected static final java.lang.String CLASS_VERSION
public static final java.lang.String CURRENT_SITE_SCOPE
public static final java.lang.String ALL_SITES_SCOPE
public static final java.lang.String ANY_SITE_SCOPE
public static final java.lang.String NONE_SITE_SCOPE
public Site getCurrentSite()
public SiteManager getSiteManager()
public void setSiteManager(SiteManager pSiteManager)
pSiteManager
- the siteManager to setpublic SiteGroupManager getSiteGroupManager()
public void setSiteGroupManager(SiteGroupManager pSiteGroupManager)
pSiteGroupManager
- the siteGroupManager to setpublic java.lang.String[] getSiteIds()
public void setSiteIds(java.lang.String[] pSiteIds)
pSiteIds
- the site IDs to setpublic java.lang.String getSiteScope()
public void setSiteScope(java.lang.String pSiteScope)
pSiteScope
- the siteScope to setpublic java.lang.String getSitePropertyName()
public void setSitePropertyName(java.lang.String pSitePropertyName)
pSitePropertyName
- the sitePropertyName to setpublic boolean isIncludeInactiveSites()
public void setIncludeInactiveSites(boolean pIncludeInactiveSites)
pIncludeInactiveSites
- the includeInactiveSites to setpublic boolean isIncludeDisabledSites()
public void setIncludeDisabledSites(boolean pIncludeDisabledSites)
pIncludeDisabledSites
- whether or not to include disabled sites in
the matching processpublic java.lang.String[] determineSiteIds()
public java.lang.String[] determineSharableSiteIds(java.lang.String pScope)
public java.lang.String buildRecordFilter()
public java.lang.String[] filterSiteList(java.lang.String[] pSites)
pSites
- The array of site idspublic java.lang.String[] getAllSites()
protected java.lang.String buildCurrentSiteFilter()
protected java.lang.String buildExcludeSitesFilter(java.lang.String[] pSiteIds)
pSiteIds
- site ids arrayprotected static java.lang.String[] getRepositoryIds(RepositoryItem[] pRepositoryItems)
pRepositoryItems
- repository items to extract ids from