public class ProjectSearchFormHandler extends SearchFormHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALL_PROJECTS |
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
COMPLETE_PROJECTS |
static java.lang.String |
CURRENT_PROJECTS |
GENERATE_VALUES_BY_TYPE_FAILED, INVALID_KEYWORD_SEARCH_STRING, INVALID_PROP_COMBINATION, INVALID_SEARCH_PROPERTY_NAMES, NO_PROPERTY_NAMES_FOR_ITEM, UNMATCHED_QUOTES
EMPTY_SEARCH_VALUES_DISALLOW, INVALID_ITEM_TYPE, MULTIPLE_ITEM_TYPES_DISALLOW, QUERY_FAILURE
mFormExceptions, PARAM_USE_FORWARDS, sTransactionManager
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
ProjectSearchFormHandler() |
Modifier and Type | Method and Description |
---|---|
void |
beforeGet(DynamoHttpServletRequest request,
DynamoHttpServletResponse response)
Called when a form is rendered that references this bean.
|
boolean |
beforeSet(javax.portlet.PortletRequest pRequest,
javax.portlet.PortletResponse pResponse)
Called before any setX methods on this form are set when a form
that modifies properties of this form handler is submitted.
|
protected Query |
generateSearchQuery(Repository pRepository,
java.lang.String pItemType,
QueryBuilder pQueryBuilder)
Return the query that should be executed on the Repository View.
|
boolean |
getMineOnly() |
boolean |
getPerformDefaultSearch() |
Profile |
getProfile() |
java.lang.String |
getSearchFor() |
java.util.Collection |
getSearchResults()
Returns property SearchResults
|
boolean |
getStartingWith() |
java.lang.String |
getStatus() |
java.lang.String |
getTextSearchPropertyName() |
java.lang.String |
getWorkflowType() |
void |
handleSearch(javax.portlet.PortletRequest pRequest,
javax.portlet.PortletResponse pResponse)
append wildcards based on our dumbed down settings
|
void |
setMineOnly(boolean pMineOnly) |
void |
setPerformDefaultSearch(boolean pPerformDefaultSearch) |
void |
setProfile(Profile pProfile) |
void |
setSearchFor(java.lang.String pSearchFor) |
void |
setStartingWith(boolean pStartingWith) |
void |
setStatus(java.lang.String pStatus) |
void |
setTextSearchPropertyName(java.lang.String pPropertyName) |
void |
setWorkflowType(java.lang.String pWorkflowType) |
areSearchValuesEmpty, beforeSet, generateAdvancedSearchQuery, generateHierarchicalSearchQuery, generateKeywordSearchQuery, generateResultSet, generateSearchValues, generateSingleKeywordQuery, generateSingleKeywordQuery, generateTextSearchQuery, getAdvancedSearchPropertyNames, getAdvancedSearchPropertyRanges, getAdvancedSearchPropertyValues, getAllowWildcards, getAncestorId, getAncestorPropertyName, getDisplayName, getEncodedPathAndItemType, getFolderPath, getIgnoreCase, getKeywordInput, getKeywords, getKeywordSearchPropertyNames, getMinScore, getPropertyValuesByType, getSearchStringFormat, getSingleKeywordSearchOperator, getTextInput, getTextSearchPropertyNames, getVFSFromComponentPath, getVirtualFileSystems, isAdvancedSearchPropertyRangesEmpty, isAdvancedSearchPropertyValuesEmpty, isDoAdvancedSearch, isDoHierarchicalSearch, isDoKeywordSearch, isDoTextSearch, isIncludeSubFolders, isToLowerCaseKeywords, isToUpperCaseKeywords, isUseIncludesForKeywordQueryOnMultiProperties, isVirtualFileSystemSearch, prepare, searchFolder, setAdvancedSearchPropertyNames, setAdvancedSearchPropertyRanges, setAdvancedSearchPropertyValues, setAllowWildcards, setAncestorId, setAncestorPropertyName, setDisplayName, setDoAdvancedSearch, setDoHierarchicalSearch, setDoKeywordSearch, setDoTextSearch, setEncodedPathAndItemType, setFolderPath, setIgnoreCase, setIncludeSubFolders, setKeywordInput, setKeywords, setKeywordSearchPropertyNames, setMinScore, setPropertyValuesByType, setSearchStringFormat, setTextInput, setTextSearchPropertyNames, setToLowerCaseKeywords, setToUpperCaseKeywords, setUseIncludesForKeywordQueryOnMultiProperties, setVirtualFileSystems, setVirtualFileSystemSearch, splitPropertyNames, transformKeywords
afterSet, clearPreviousQueries, clearSearchResults, conditionallyClearProject, conditionallySetProjectContext, doGetSortProperty, generateSearchResults, getAllowEmptySearch, getAllowRefine, getClearQueries, getClearQueryURL, getCurrentResultPageNum, getEnableFullResultSetSize, getEndCount, getEndIndex, getErrorURL, getExcludedStringPropertyNames, getFullResultSetSize, getItemTypes, getLastSortDirection, getLastSortProperty, getLocale, getMaxResultsPerPage, getMaxRowCount, getMoreResults, getRepositories, getRepositoryFromComponentPath, getResultPageCount, getResultSetSize, getSearchFilters, getSearchResultsByItemType, getSortDirection, getSortedSearch, getSortProperty, getStartCount, getStartIndex, getSuccessURL, getUnsetProjectContext, getVersioningLayerTools, handleClearQuery, handleClearQuery, handleSearch, handleSortedSearch, handleSortedSearch, isEnableCountQuery, isPrepared, isPreviouslySubmitted, isSortByDisplayName, isStringPropertyExcluded, isUseRequestLocale, prepareSearch, processException, resetMaxRowCount, setAllowEmptySearch, setAllowRefine, setClearQueries, setClearQueryURL, setCurrentResultPageNum, setEnableCountQuery, setEnableFullResultSetSize, setEndIndex, setErrorURL, setExcludedStringPropertyNames, setFullResultSetSize, setItemTypes, setLastSortDirection, setLastSortProperty, setLocale, setMaxResultsPerPage, setMaxRowCount, setMoreResults, setPrepared, setRepositories, setResultSetSize, setSearchFilters, setSortByDisplayName, setSortDirection, setSortedSearch, setSortProperty, setStartIndex, setSuccessURL, setUnsetProjectContext, setUseRequestLocale, unsetProjectContext
addFormException, afterGet, afterGet, afterGet, afterSet, afterSet, beforeGet, beforeGet, beforeSet, checkFormRedirect, getCheckForValidSession, getCurrentDynamoRequest, getCurrentDynamoResponse, getFormError, getFormExceptions, getPropertyExceptions, getTransactionDemarcation, handleFormException, handleUncheckedFormException, hasFormExceptions, isEnsureTransaction, isRestorableForm, isRollbackTransaction, isUseForwards, isValidSession, redirectOrForward, resetFormExceptions, setCheckForValidSession, setEnsureTransaction, setRestorableForm, setRollbackTransaction, setTransactionDemarcation, setUseForwards
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
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static java.lang.String CLASS_VERSION
public static final java.lang.String CURRENT_PROJECTS
public static final java.lang.String COMPLETE_PROJECTS
public static final java.lang.String ALL_PROJECTS
public void setStartingWith(boolean pStartingWith)
public boolean getStartingWith()
public void setSearchFor(java.lang.String pSearchFor)
public java.lang.String getSearchFor()
public void setStatus(java.lang.String pStatus)
public java.lang.String getStatus()
public void setWorkflowType(java.lang.String pWorkflowType)
public java.lang.String getWorkflowType()
public void setMineOnly(boolean pMineOnly)
public boolean getMineOnly()
public void setPerformDefaultSearch(boolean pPerformDefaultSearch)
public boolean getPerformDefaultSearch()
public void setProfile(Profile pProfile)
public Profile getProfile()
public void setTextSearchPropertyName(java.lang.String pPropertyName)
public java.lang.String getTextSearchPropertyName()
public java.util.Collection getSearchResults()
getSearchResults
in class atg.epub.servlet.BaseSearchFormHandler
public boolean beforeSet(javax.portlet.PortletRequest pRequest, javax.portlet.PortletResponse pResponse) throws DropletFormException
beforeSet
in class PortletFormHandler
DropletFormException
public void beforeGet(DynamoHttpServletRequest request, DynamoHttpServletResponse response)
beforeGet
in class atg.epub.servlet.BaseSearchFormHandler
protected Query generateSearchQuery(Repository pRepository, java.lang.String pItemType, QueryBuilder pQueryBuilder) throws RepositoryException, DropletFormException
SearchFormHandler
generateSearchQuery
in class SearchFormHandler
pRepository
- the repository to search inpItemType
- the type of item to search for.pQueryBuilder
- the builder that should be used to construct the queryRepositoryException
- if an error occured while forming the queryDropletFormException
public void handleSearch(javax.portlet.PortletRequest pRequest, javax.portlet.PortletResponse pResponse) throws javax.servlet.ServletException
handleSearch
in class atg.epub.servlet.BaseSearchFormHandler
javax.servlet.ServletException