Package com.liferay.portal.kernel.search
Class SearchContext
Object
com.liferay.portal.kernel.search.SearchContext
- All Implemented Interfaces:
Serializable
- Author:
- Brian Wing Shun Chan, Julio Camarero
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addFullQueryEntryClassName
(String entryClassName) void
void
long[]
String[]
long[]
getAttribute
(String name) long[]
long[]
long
int
getEnd()
String[]
long[]
String[]
long[]
long[]
long
String[]
float
Sort[]
getSorts()
int
getStart()
getStats()
long
boolean
boolean
static boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isLike()
boolean
static com.liferay.petra.lang.SafeCloseable
static com.liferay.petra.lang.SafeCloseable
openBatchMode
(boolean commit) void
overrideKeywords
(String keywords) static void
registerBatchModeSyncCallable
(Callable<Void> callable) static void
registerBatchModeSyncFuture
(Future<?> future) void
setAndSearch
(boolean andSearch) void
setAssetCategoryIds
(long[] assetCategoryIds) void
setAssetTagNames
(String[] assetTagNames) void
setAssetVocabularyIds
(long[] assetVocabularyIds) void
setAttribute
(String name, Serializable value) void
setAttributes
(Map<String, Serializable> attributes) void
setBooleanClauses
(BooleanClause<Query>[] booleanClauses) void
setCategoryIds
(long[] categoryIds) void
setClassTypeIds
(long[] classTypeIds) void
setCommitImmediately
(boolean commitImmediately) void
setCompanyId
(long companyId) void
setEnd
(int end) void
setEntryClassNames
(String[] entryClassNames) void
void
setFolderIds
(long[] folderIds) void
setFolderIds
(List<Long> folderIds) void
setGroupBy
(GroupBy groupBy) void
setGroupIds
(long[] groupIds) void
setIncludeAttachments
(boolean includeAttachments) void
setIncludeDiscussions
(boolean includeDiscussions) void
setIncludeFolders
(boolean includeFolders) void
setIncludeInternalAssetCategories
(boolean includeInternalAssetCategories) void
setIncludeLiveGroups
(boolean includeLiveGroups) void
setIncludeStagingGroups
(boolean includeStagingGroups) void
setKeywords
(String keywords) void
void
setLike
(boolean like) void
void
setNodeIds
(long[] nodeIds) void
setOwnerUserId
(long ownerUserId) void
setPortletIds
(String[] portletIds) void
setScopeStrict
(boolean scopeStrict) void
setScoresThreshold
(float scoresThreshold) void
void
setStart
(int start) void
setTimeZone
(TimeZone timeZone) void
setUserId
(long userId) static void
unregisterBatchModeSyncFuture
(Future<?> future)
-
Constructor Details
-
SearchContext
public SearchContext()
-
-
Method Details
-
isBatchMode
public static boolean isBatchMode() -
openBatchMode
public static com.liferay.petra.lang.SafeCloseable openBatchMode() -
openBatchMode
public static com.liferay.petra.lang.SafeCloseable openBatchMode(boolean commit) -
registerBatchModeSyncCallable
-
registerBatchModeSyncFuture
-
unregisterBatchModeSyncFuture
-
addFacet
-
addFullQueryEntryClassName
-
addStats
-
clearFullQueryEntryClassNames
public void clearFullQueryEntryClassNames() -
getAssetCategoryIds
public long[] getAssetCategoryIds() -
getAssetTagNames
-
getAssetVocabularyIds
public long[] getAssetVocabularyIds() -
getAttribute
-
getAttributes
-
getBooleanClauses
-
getCategoryIds
public long[] getCategoryIds() -
getClassTypeIds
public long[] getClassTypeIds() -
getCompanyId
public long getCompanyId() -
getEnd
public int getEnd() -
getEntryClassNames
-
getFacet
-
getFacets
-
getFolderIds
public long[] getFolderIds() -
getFullQueryEntryClassNames
-
getGroupBy
-
getGroupIds
public long[] getGroupIds() -
getKeywords
-
getLanguageId
-
getLayout
-
getLocale
-
getNodeIds
public long[] getNodeIds() -
getOwnerUserId
public long getOwnerUserId() -
getPortletIds
-
getQueryConfig
-
getScoresThreshold
public float getScoresThreshold() -
getSorts
-
getStart
public int getStart() -
getStats
-
getStats
-
getTimeZone
-
getUserId
public long getUserId() -
hasOverridenKeywords
public boolean hasOverridenKeywords() -
isAndSearch
public boolean isAndSearch() -
isCommitImmediately
public boolean isCommitImmediately() -
isIncludeAttachments
public boolean isIncludeAttachments() -
isIncludeDiscussions
public boolean isIncludeDiscussions() -
isIncludeFolders
public boolean isIncludeFolders() -
isIncludeInternalAssetCategories
public boolean isIncludeInternalAssetCategories() -
isIncludeLiveGroups
public boolean isIncludeLiveGroups() -
isIncludeStagingGroups
public boolean isIncludeStagingGroups() -
isLike
public boolean isLike() -
isScopeStrict
public boolean isScopeStrict() -
overrideKeywords
-
setAndSearch
public void setAndSearch(boolean andSearch) -
setAssetCategoryIds
public void setAssetCategoryIds(long[] assetCategoryIds) -
setAssetTagNames
-
setAssetVocabularyIds
public void setAssetVocabularyIds(long[] assetVocabularyIds) -
setAttribute
-
setAttributes
-
setBooleanClauses
-
setCategoryIds
public void setCategoryIds(long[] categoryIds) -
setClassTypeIds
public void setClassTypeIds(long[] classTypeIds) -
setCommitImmediately
public void setCommitImmediately(boolean commitImmediately) -
setCompanyId
public void setCompanyId(long companyId) -
setEnd
public void setEnd(int end) -
setEntryClassNames
-
setFacets
-
setFolderIds
-
setFolderIds
public void setFolderIds(long[] folderIds) -
setGroupBy
-
setGroupIds
public void setGroupIds(long[] groupIds) -
setIncludeAttachments
public void setIncludeAttachments(boolean includeAttachments) -
setIncludeDiscussions
public void setIncludeDiscussions(boolean includeDiscussions) -
setIncludeFolders
public void setIncludeFolders(boolean includeFolders) -
setIncludeInternalAssetCategories
public void setIncludeInternalAssetCategories(boolean includeInternalAssetCategories) -
setIncludeLiveGroups
public void setIncludeLiveGroups(boolean includeLiveGroups) -
setIncludeStagingGroups
public void setIncludeStagingGroups(boolean includeStagingGroups) -
setKeywords
-
setLayout
-
setLike
public void setLike(boolean like) -
setLocale
-
setNodeIds
public void setNodeIds(long[] nodeIds) -
setOwnerUserId
public void setOwnerUserId(long ownerUserId) -
setPortletIds
-
setScopeStrict
public void setScopeStrict(boolean scopeStrict) -
setScoresThreshold
public void setScoresThreshold(float scoresThreshold) -
setSorts
-
setStart
public void setStart(int start) -
setTimeZone
-
setUserId
public void setUserId(long userId)
-