|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.torque.om.BaseObject
org.tigris.scarab.om.BaseIssue
org.tigris.scarab.om.Issue
org.tigris.scarab.util.word.IssueSearch
A utility class to build up and carry out a search for similar issues. It subclasses Issue for functionality, it is not a more specific type of Issue.
| Nested Class Summary |
| Nested classes inherited from class org.tigris.scarab.om.Issue |
Issue.FederatedId |
| Field Summary | |
static java.lang.String |
ANY_KEY
|
static java.lang.String |
ASC
|
static java.lang.String |
CREATED_BY_KEY
|
static java.lang.String |
DESC
|
| Fields inherited from class org.tigris.scarab.om.BaseIssue |
collActivitys, collAttachments, collAttributeValues, collDependsRelatedByObservedId, collDependsRelatedByObserverId, collIssueTemplateInfos, collIssueVotes |
| Fields inherited from class org.apache.torque.om.BaseObject |
NEW_ID |
| Constructor Summary | |
(package private) |
IssueSearch(Issue issue,
ScarabUser searcher)
|
(package private) |
IssueSearch(MITList mitList,
ScarabUser searcher)
|
(package private) |
IssueSearch(Module module,
IssueType issueType,
ScarabUser searcher)
|
| Method Summary | |
void |
addUserCriteria(java.lang.String userId,
java.lang.String searchCriteria)
Describe addUserSearch method here. |
void |
close()
Releases any managed resources associated with this search (e.g. database connections, etc.). |
protected void |
finalize()
Called by the garbage collector to release any database resources associated with this query. |
java.lang.Integer |
getALL_TEXT()
|
org.apache.commons.collections.map.LinkedMap |
getAllAvailableAttributeValuesMap()
returns the list of attribute values for all attributes in the current module. |
java.util.List |
getAllOptionTree(Attribute attribute)
|
java.lang.String |
getCommentQuery()
Get the value of commentQuery. |
org.apache.commons.collections.map.LinkedMap |
getCommonAttributeValuesMap()
returns the list of attribute values for all attributes in the current module and defined for all currently searched issueTypes. |
java.util.List |
getCommonOptionTree(Attribute attribute)
|
int |
getIssueCount()
|
int |
getIssueCount(boolean mergePartialQueries)
|
java.util.List |
getIssueListAttributeColumns()
|
java.util.List |
getLeafRModuleOptions(Attribute attribute)
|
java.util.Locale |
getLocale()
|
java.lang.String |
getMaxDate()
Get the value of maxDate. |
java.lang.String |
getMaxId()
Get the value of maxId. |
java.lang.String |
getMinDate()
Get the value of minDate. |
java.lang.String |
getMinId()
Get the value of minId. |
int |
getMinVotes()
Get the value of minVotes. |
(package private) Module |
getModule(java.lang.Integer id)
Used by QueryResult to avoid multiple db hits in the event caching is not being used application-wide. |
java.util.List |
getOptionAttributeValues()
Returns OptionAttributes which have been marked for Quick search. |
IteratorWithSize |
getQueryResults()
Get a List of Issues that match the criteria given by this SearchIssue's searchWords and the quick search attribute values. |
IteratorWithSize |
getQueryResults(boolean mergePartialQueries)
Get a List of Issues that match the criteria given by this SearchIssue's searchWords and the quick search attribute values. |
java.util.List |
getQuickSearchOptionAttributeValues()
Returns OptionAttributes which have been marked for Quick search. |
java.util.List |
getQuickSearchTextAttributeValues()
|
(package private) RModuleIssueType |
getRModuleIssueType(java.lang.Integer moduleId,
java.lang.Integer issueTypeId)
Used by QueryResult to avoid multiple db hits in the event caching is not being used application-wide. |
java.lang.String |
getSearchWords()
Get the words for which to search. |
java.lang.Integer |
getSortAttributeId()
Get the value of sortAttributeId. |
java.lang.String |
getSortInternalAttribute()
|
java.lang.String |
getSortPolarity()
Whether to do SQL sorting in DESC or
ASC order (the default being the latter). |
java.lang.Integer |
getStateChangeAttributeId()
Get the value of stateChangeAttributeId. |
java.lang.String |
getStateChangeFromDate()
Get the value of stateChangeFromDate. |
java.lang.Integer |
getStateChangeFromOptionId()
Get the value of stateChangeFromOptionId. |
java.lang.String |
getStateChangeToDate()
Get the value of stateChangeToDate. |
java.lang.Integer |
getStateChangeToOptionId()
Get the value of stateChangeToOptionId. |
java.util.List |
getTextAttributeValues()
|
java.lang.Integer[] |
getTextScope()
Get the value of textScope. |
java.util.List |
getUserAttributes()
|
java.util.List |
getUserIdList()
|
boolean |
isOperable()
|
boolean |
isXMITSearch()
|
java.util.Date |
parseDate(java.lang.String dateString,
boolean addTwentyFourHours)
Attempts to parse a atring as a date, first using the locale-sepcific short date format, and then the ISO standard "yyyy-mm-dd". |
void |
setCommentQuery(java.lang.String v)
Set the value of commentQuery. |
void |
setIsOperable(boolean state)
The issue can be flagged as inoperable. |
void |
setIssueListAttributeColumns(java.util.List rmuas)
List of attributes to show with each issue. |
void |
setLocale(java.util.Locale newLocale)
|
void |
setLocalizationTool(ScarabLocalizationTool l10nTool)
Allows setting the L10N tool for using when is needed to know the user's locale (example, when parsing date parameters) |
void |
setMaxDate(java.lang.String newMaxDate)
Set the value of maxDate. |
void |
setMaxId(java.lang.String v)
Set the value of maxId. |
void |
setMinDate(java.lang.String newMinDate)
Set the value of minDate. |
void |
setMinId(java.lang.String v)
Set the value of minId. |
void |
setMinVotes(int v)
Set the value of minVotes. |
void |
setQuery(java.lang.String query)
The query currently being launched, so we can access any value from it. |
void |
setSearchWords(java.lang.String v)
Set the words for which to search. |
void |
setSortAttributeId(java.lang.Integer v)
Set the value of sortAttributeId. |
void |
setSortInternalAttribute(java.lang.String internal)
|
void |
setSortPolarity(java.lang.String v)
Set the value of sortPolarity. |
void |
setStateChangeAttributeId(java.lang.Integer v)
Set the value of stateChangeAttributeId. |
void |
setStateChangeFromDate(java.lang.String fromDate)
Set the value of stateChangeFromDate. |
void |
setStateChangeFromOptionId(java.lang.Integer v)
Set the value of stateChangeFromOptionId. |
void |
setStateChangeToDate(java.lang.String toDate)
Set the value of stateChangeToDate. |
void |
setStateChangeToOptionId(java.lang.Integer v)
Set the value of stateChangeToOptionId. |
void |
setTextScope(java.lang.Integer[] v)
Set the value of textScope. |
| Methods inherited from class org.apache.torque.om.BaseObject |
equals, equals, getLog, hashCode, isModified, isNew, resetModified, setModified, setNew, setPrimaryKey |
| Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.torque.om.Persistent |
getPrimaryKey, isModified, isNew, save, save, setModified, setNew, setPrimaryKey, setPrimaryKey |
| Field Detail |
public static final java.lang.String ASC
public static final java.lang.String DESC
public static final java.lang.String CREATED_BY_KEY
public static final java.lang.String ANY_KEY
| Constructor Detail |
IssueSearch(Issue issue,
ScarabUser searcher)
throws java.lang.Exception
IssueSearch(Module module,
IssueType issueType,
ScarabUser searcher)
throws java.lang.Exception
IssueSearch(MITList mitList,
ScarabUser searcher)
throws java.lang.Exception
| Method Detail |
public boolean isOperable()
public void setIsOperable(boolean state)
state - public java.util.Locale getLocale()
public void setLocale(java.util.Locale newLocale)
public boolean isXMITSearch()
public void setIssueListAttributeColumns(java.util.List rmuas)
rmuas - a List of RModuleUserAttribute objectspublic java.util.List getIssueListAttributeColumns()
public java.util.List getUserIdList()
public org.apache.commons.collections.map.LinkedMap getCommonAttributeValuesMap()
throws java.lang.Exception
java.lang.Exception
public org.apache.commons.collections.map.LinkedMap getAllAvailableAttributeValuesMap()
throws java.lang.Exception
java.lang.Exception
public java.util.List getUserAttributes()
throws java.lang.Exception
java.lang.Exception
public java.util.List getLeafRModuleOptions(Attribute attribute)
throws java.lang.Exception
java.lang.Exception
public java.util.List getCommonOptionTree(Attribute attribute)
throws java.lang.Exception
java.lang.Exception
public java.util.List getAllOptionTree(Attribute attribute)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getSearchWords()
#searchWords.public void setSearchWords(java.lang.String v)
v - Value to assign to #searchWords.public java.lang.String getCommentQuery()
public void setCommentQuery(java.lang.String v)
v - Value to assign to commentQuery.
public java.lang.Integer[] getTextScope()
throws java.lang.Exception
java.lang.Exception
public void setTextScope(java.lang.Integer[] v)
throws java.lang.Exception
v - Value to assign to textScope.
java.lang.Exceptionpublic java.lang.String getMinId()
public void setMinId(java.lang.String v)
v - Value to assign to minId.public java.lang.String getMaxId()
public void setMaxId(java.lang.String v)
v - Value to assign to maxId.public java.lang.String getMinDate()
public void setMinDate(java.lang.String newMinDate)
newMinDate - Value to assign to minDate.public java.lang.String getMaxDate()
public void setMaxDate(java.lang.String newMaxDate)
newMaxDate - Value to assign to maxDate.public int getMinVotes()
public void setMinVotes(int v)
v - Value to assign to minVotes.public java.lang.Integer getStateChangeAttributeId()
public void setStateChangeAttributeId(java.lang.Integer v)
v - Value to assign to stateChangeAttributeId.public java.lang.Integer getStateChangeFromOptionId()
public void setStateChangeFromOptionId(java.lang.Integer v)
v - Value to assign to stateChangeFromOptionId.public java.lang.Integer getStateChangeToOptionId()
public void setStateChangeToOptionId(java.lang.Integer v)
v - Value to assign to stateChangeToOptionId.public java.lang.String getStateChangeFromDate()
public void setStateChangeFromDate(java.lang.String fromDate)
fromDate - Value to assign to stateChangeFromDate.public java.lang.String getStateChangeToDate()
public void setStateChangeToDate(java.lang.String toDate)
toDate - Value to assign to stateChangeToDate.public java.lang.Integer getSortAttributeId()
public void setSortAttributeId(java.lang.Integer v)
v - Value to assign to sortAttributeId.public void setSortInternalAttribute(java.lang.String internal)
public java.lang.String getSortInternalAttribute()
public java.lang.String getSortPolarity()
DESC or
ASC order (the default being the latter).
public void setSortPolarity(java.lang.String v)
v - Value to assign to sortPolarity.
public void addUserCriteria(java.lang.String userId,
java.lang.String searchCriteria)
addUserSearch method here.
userId - a String represention of the PrimaryKeysearchCriteria - a String either a String
representation of an Attribute PrimaryKey, or the Strings "created_by"
"any"public java.lang.Integer getALL_TEXT()
public java.util.List getQuickSearchTextAttributeValues()
throws java.lang.Exception
java.lang.Exception
public java.util.List getTextAttributeValues()
throws java.lang.Exception
java.lang.Exception
public java.util.List getQuickSearchOptionAttributeValues()
throws java.lang.Exception
List value
java.lang.Exception - if an error occurs
public java.util.List getOptionAttributeValues()
throws java.lang.Exception
List value
java.lang.Exception - if an error occurs
public java.util.Date parseDate(java.lang.String dateString,
boolean addTwentyFourHours)
throws java.text.ParseException
dateString - a String valueaddTwentyFourHours - if no time is given in the date string and
this flag is true, then 24 hours - 1 msec will be added to the date.
Date value
java.text.ParseException
public IteratorWithSize getQueryResults()
throws ComplexQueryException,
java.lang.Exception
List value
java.lang.Exception - if an error occurs
ComplexQueryException
public IteratorWithSize getQueryResults(boolean mergePartialQueries)
throws ComplexQueryException,
java.lang.Exception
List value
java.lang.Exception - if an error occurs
ComplexQueryException
public int getIssueCount()
throws ComplexQueryException,
java.lang.Exception
ComplexQueryException
java.lang.Exception
public int getIssueCount(boolean mergePartialQueries)
throws ComplexQueryException,
java.lang.Exception
ComplexQueryException
java.lang.Exception
Module getModule(java.lang.Integer id)
throws org.apache.torque.TorqueException
id - an Integer value
Module value
org.apache.torque.TorqueException - if an error occurs
RModuleIssueType getRModuleIssueType(java.lang.Integer moduleId,
java.lang.Integer issueTypeId)
throws org.apache.torque.TorqueException
moduleId - an Integer valueissueTypeId - an Integer value
RModuleIssueType value
org.apache.torque.TorqueException - if an error occurs
protected void finalize()
throws java.lang.Throwable
java.lang.Throwableclose()public void close()
public void setQuery(java.lang.String query)
throws java.lang.Exception
query -
java.lang.Exceptionpublic void setLocalizationTool(ScarabLocalizationTool l10nTool)
l10nTool -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||