public abstract class TimelineQueryParameters extends UserQueryParameters
CoreItemQueryDefinition
It defines filter attributes for getting
resources.
In case of adding filter parameters also check
#clone(TimelineQueryParameters)
QueryParameters.OrderDirection
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_ATTACHMENT_REPO_CONNECTOR_ID
the parameter of the repo connector id
|
static String |
PARAM_BLOG_ID
the parameter name for the blog id
|
static String |
PARAM_DISCUSSION_ID
the parameter of an discussion
|
static String |
PARAM_FILTER
the parameter of a filter for at least the newsfeed
|
static String |
PARAM_LOWER_TAG_DATE
the parameter of the lower tag date
|
static String |
PARAM_MAX_RANK
the parameter of the maximum rank the note should have for the user
|
static String |
PARAM_MIN_RANK
the parameter of the minimum rank the note should have for the user
|
static String |
PARAM_NOTE_ID
the parameter of the resource id
|
static String |
PARAM_RESOURCE_ID
the parameter of the resource id
|
static String |
PARAM_TAG_PREFIX
the parameter name for the tag prefix
|
static String |
PARAM_UPPER_TAG_DATE
the parameter of the upper tag date
|
static String |
PARAM_USER_ID
the parameter name for the user ids
|
static String |
PARAM_USER_TO_BE_NOTIFIED
hql parameter for the user to be notified.
|
PARAM_LAST_MODIFICATION_DATE, PARAM_USER_ROLE_FILTER, PLACEHOLDER_USER_ALIAS
SORT_ASCENDING, SORT_DESCENDING
Constructor and Description |
---|
TimelineQueryParameters()
Construct me with the right query definition
|
TimelineQueryParameters(TaggingCoreItemUTPExtension extension)
Construct me with the right query definition
|
Modifier and Type | Method and Description |
---|---|
void |
addTagId(Long tagId) |
void |
addTagStoreTagId(String tagStoreAlias,
Collection<String> tagStoreTagIds) |
void |
addTagStoreTagId(String tagStoreAlias,
String tagStoreTagId) |
protected String |
createParameterName(AtomicTagFormula atom)
Creates a named parameter from a atomic tag formula.
|
String[] |
getAttachmentContentIds() |
String |
getAttachmentRepositoryConnectorId() |
String[] |
getAttachmentRepositoryConnectorIds() |
DiscussionFilterMode |
getDiscussionFilterMode()
The discussion filter mode that should be used for getting results.
|
DiscussionFilterMode |
getDiscussionFilterModeForFiltering()
The discussion filter mode that should be used for filtering.
|
Long |
getDiscussionId() |
NoteStatus[] |
getExcludeNoteStatus() |
String[] |
getFullTextSearchFilters() |
String[] |
getFullTextSearchParameterNames() |
LogicalTagFormula |
getLogicalTags()
Returns the logical tag definitions.
|
Date |
getLowerTagDate()
the date after a resource must be tagged
|
Double |
getMaximumRank() |
Double |
getMinimumRank() |
Long |
getNoteId() |
int |
getNumberOfTagsToFilter() |
Map<String,Object> |
getParameters()
Get the parameters of this instances, the names are the keys
|
Long |
getResourceId()
Get the resource of this instance
|
Set<Long> |
getTagIds() |
String |
getTagPrefix()
Get the tag prefix
|
Set<String> |
getTagStoreAliases() |
Map<String,Set<String>> |
getTagStoreTagIds() |
String[] |
getTopicSearchParameterNames() |
TaggingCoreItemUTPExtension |
getTypeSpecificExtension() |
Date |
getUpperTagDate() |
Set<String> |
getUserAliases() |
Long[] |
getUserIds()
the user ids
|
Long[] |
getUserIdsToIgnore() |
Long[] |
getUserToBeNotified()
Gets the user to be notified.
|
boolean |
isAllowDuplicateResults() |
boolean |
isDirectMessage() |
boolean |
isFavorites() |
boolean |
isIncludeStartDate() |
boolean |
isMentionDiscussionAuthors() |
boolean |
isMentionTopicAuthors() |
boolean |
isMentionTopicManagers() |
boolean |
isMentionTopicReaders() |
boolean |
isMultilingualTagPrefixSearch() |
boolean |
isQueryForAdditionalDMs()
See setQueryForAdditionalDMs for a description.
|
boolean |
isRankFilterActive() |
boolean |
isRetrieveOnlyFollowedItems() |
boolean |
isSearchOnlyExtensionSpecificFields() |
boolean |
isSortByDayDateAndRank() |
boolean |
isTimeLimitsQueryRequired()
Determines whether an additional query for time limits is required.
|
boolean |
needTransformListItem() |
void |
setAllowDuplicateResults(boolean allowDuplicateResults) |
void |
setAttachmentContentIds(String[] attachmentContentIds) |
void |
setAttachmentRepositoryConnectorId(String attachmentRepositoryConnectorId) |
void |
setAttachmentRepositoryConnectorIds(String[] attachmentRepositoryConnectorIds) |
void |
setDirectMessage(boolean directMessage) |
void |
setDiscussionFilterMode(DiscussionFilterMode discussionFilterMode) |
void |
setDiscussionId(Long discussionId)
Sets the discussion id and resets the note id! There cannot be searched for a note and a
discussion id on the same time.
|
void |
setExcludeNoteStatus(NoteStatus[] statuss)
Sets the
NoteStatus which should be excluded from the query. |
void |
setFavorites(Boolean favorites) |
void |
setFullTextSearchFilters(String[] fullTextSearchFilters) |
void |
setIncludeStartDate(boolean includeStartDate) |
void |
setLogicalTags(LogicalTagFormula formula) |
void |
setLowerTagDate(Date lowerTagDate) |
void |
setMaximumRank(Double maximumRank) |
void |
setMentionDiscussionAuthors(boolean mentionDiscussionAuthors) |
void |
setMentionTopicAuthors(boolean mentionTopicAuthors) |
void |
setMentionTopicManagers(boolean mentionTopicManagers) |
void |
setMentionTopicReaders(boolean mentionTopicReaders) |
void |
setMinimumRank(Double minimumRank) |
void |
setNoteId(Long noteId)
Set the note id.
|
void |
setQueryForAdditionalDMs(boolean queryForAdditionalDMs)
This method is just a hook for KENMEI-5766 and mainly KENMEI-5661 (the stupid desktop
client), to make it possible to AND combine following and direct messages.
|
void |
setResourceId(Long resourceId) |
void |
setRetrieveOnlyFollowedItems(boolean onlyFollowedItems)
Whether to retrieve only followed items or items that are related to these items.
|
void |
setSortByDayDateAndRank(boolean sortByDayDateAndRank) |
void |
setTagIds(Collection<Long> tagIds) |
void |
setTagPrefix(String tagPrefix)
set the tag prefix.
|
void |
setTagStoreAliases(Set<String> tagStoreAliases)
Set aliases of tag stores to only consider tags from these stores
|
void |
setTimeLimitsQueryRequired(boolean timeLimitsQueryRequired)
Set whether a query for time limits is required.
|
void |
setTopicSearchFilters(String[] topicSearchFilters)
Set the strings to match against the topic titles
|
void |
setTypeSpecificExtension(TaggingCoreItemUTPExtension extension)
Focuses this query for Notes to one of the sub-types UserTaggedResource or Note.
|
void |
setUpperTagDate(Date upperTagDate) |
void |
setUserAliases(Set<String> userAliases) |
void |
setUserIds(Long[] userIds)
set the user ids parameter
|
void |
setUserIdsToIgnore(Long... userIdsToIgnore)
Method to ignore users.
|
void |
setUserToBeNotified(Long[] userToBeNotified)
Sets the user to be notified.
|
addRoleToExclude, addRoleToInclude, addUserTagIds, addUserTagStoreTagId, addUserTagStoreTagId, getExcludeStatusFilter, getIncludeStatusFilter, getLastModifiedAfter, getMatchMode, getRolesToExclude, getRolesToInclude, getUserSearchFilters, getUserSearchParameterNames, getUserTagIds, getUserTagStoreTagIds, isHideSelectedTags, isIgnoreEmailField, isRetrieveOnlyFollowedUsers, setExcludeStatusFilter, setHideSelectedTags, setIncludeStatusFilter, setLastModifiedAfter, setMatchMode, setRetrieveOnlyFollowedUsers, setUserSearchFilters, setUserSearchFilters, sortByEmailAsc, sortByFirstNameAsc, sortByLastNameAsc, transformResultItem
addPropertyFilter, getPropertyFilters
addParameter, addParameter, addSortField, addSortField, createParameterNamesForSearch, getDatabaseConfiguration, getLanguageCode, getPageInformation, getPageInformation, getResultSpecification, getSortString, isLimitResultSet, isLimitResultSetAvodingDuplicates, putParameter, putParametersForSearch, putParametersForSearch, setLanguageCode, setLimitResultSet, setLimitResultSetAvodingDuplicates, setResultSpecification, validateLong
public static final String PARAM_TAG_PREFIX
public static final String PARAM_USER_TO_BE_NOTIFIED
public static final String PARAM_USER_ID
public static final String PARAM_BLOG_ID
public static final String PARAM_LOWER_TAG_DATE
public static final String PARAM_UPPER_TAG_DATE
public static final String PARAM_RESOURCE_ID
public static final String PARAM_DISCUSSION_ID
public static final String PARAM_FILTER
public static final String PARAM_MIN_RANK
public static final String PARAM_MAX_RANK
public static final String PARAM_NOTE_ID
public static final String PARAM_ATTACHMENT_REPO_CONNECTOR_ID
public TimelineQueryParameters()
public TimelineQueryParameters(TaggingCoreItemUTPExtension extension)
extension
- extension to use cannot be nullpublic void addTagId(Long tagId)
tagId
- TagId to filter for.public void addTagStoreTagId(String tagStoreAlias, Collection<String> tagStoreTagIds)
tagStoreAlias
- The alias of the TagStore.tagStoreTagIds
- Collection of tag ids to add for the given TagStore.public void addTagStoreTagId(String tagStoreAlias, String tagStoreTagId)
tagStoreAlias
- The alias of the TagStore.tagStoreTagId
- The id of the tag within the TagStore.protected String createParameterName(AtomicTagFormula atom)
getParameters()
. The tag is converted to
lower case.atom
- the atomic tag formula for which the parameter is neededpublic String[] getAttachmentContentIds()
public String getAttachmentRepositoryConnectorId()
public String[] getAttachmentRepositoryConnectorIds()
public DiscussionFilterMode getDiscussionFilterMode()
public DiscussionFilterMode getDiscussionFilterModeForFiltering()
public Long getDiscussionId()
public NoteStatus[] getExcludeNoteStatus()
public String[] getFullTextSearchFilters()
public String[] getFullTextSearchParameterNames()
public LogicalTagFormula getLogicalTags()
public Date getLowerTagDate()
public Double getMaximumRank()
public Double getMinimumRank()
public Long getNoteId()
public int getNumberOfTagsToFilter()
getTagIds()
and
getTagStoreTagIds()
public Map<String,Object> getParameters()
getParameters
in class UserQueryParameters
public Long getResourceId()
public String getTagPrefix()
getTagPrefix
in class UserQueryParameters
public Set<String> getTagStoreAliases()
getTagStoreAliases
in class UserQueryParameters
public String[] getTopicSearchParameterNames()
public TaggingCoreItemUTPExtension getTypeSpecificExtension()
public Date getUpperTagDate()
public Set<String> getUserAliases()
public Long[] getUserIds()
public Long[] getUserIdsToIgnore()
public Long[] getUserToBeNotified()
public boolean isAllowDuplicateResults()
public boolean isDirectMessage()
true
or false
public boolean isFavorites()
public boolean isIncludeStartDate()
public boolean isMentionDiscussionAuthors()
public boolean isMentionTopicAuthors()
public boolean isMentionTopicManagers()
public boolean isMentionTopicReaders()
public boolean isMultilingualTagPrefixSearch()
isMultilingualTagPrefixSearch
in class UserQueryParameters
public boolean isQueryForAdditionalDMs()
public boolean isRankFilterActive()
public boolean isRetrieveOnlyFollowedItems()
public boolean isSearchOnlyExtensionSpecificFields()
public boolean isSortByDayDateAndRank()
public boolean isTimeLimitsQueryRequired()
setTimeLimitsQueryRequired(boolean)
.public boolean needTransformListItem()
UserQueryParameters
needTransformListItem
in class UserQueryParameters
public void setAllowDuplicateResults(boolean allowDuplicateResults)
allowDuplicateResults
- true if the result may contain distinct result (it will be faster tho). In detail
no distinct will be used in the query.public void setAttachmentContentIds(String[] attachmentContentIds)
public void setAttachmentRepositoryConnectorId(String attachmentRepositoryConnectorId)
public void setAttachmentRepositoryConnectorIds(String[] attachmentRepositoryConnectorIds)
public void setDirectMessage(boolean directMessage)
directMessage
- Set to true, if only direct messages should be loaded.public void setDiscussionFilterMode(DiscussionFilterMode discussionFilterMode)
discussionFilterMode
- the discussionFilterMode to setpublic void setDiscussionId(Long discussionId)
discussionId
- the discussionId to setpublic void setExcludeNoteStatus(NoteStatus[] statuss)
NoteStatus
which should be excluded from the query.statuss
- Array of NoteStatus
.public void setFavorites(Boolean favorites)
favorites
- the favorites to setpublic void setFullTextSearchFilters(String[] fullTextSearchFilters)
fullTextSearchFilters
- the full text search filterspublic void setIncludeStartDate(boolean includeStartDate)
includeStartDate
- If true, also notes written exactly at the start date will be filtered, else only
notes written after the set start date.public void setLogicalTags(LogicalTagFormula formula)
formula
- the formula to match the tagspublic void setLowerTagDate(Date lowerTagDate)
lowerTagDate
- the lower tag datepublic void setMaximumRank(Double maximumRank)
maximumRank
- the maximum rank the note should have for the user, null to ignorepublic void setMentionDiscussionAuthors(boolean mentionDiscussionAuthors)
mentionDiscussionAuthors
- the mentionDiscussionAuthors to setpublic void setMentionTopicAuthors(boolean mentionTopicAuthors)
mentionTopicAuthors
- the mentionTopicAuthors to setpublic void setMentionTopicManagers(boolean mentionTopicManagers)
mentionTopicManagers
- the mentionTopicManagers to setpublic void setMentionTopicReaders(boolean mentionTopicReaders)
mentionTopicReaders
- the mentionTopicReaders to setpublic void setMinimumRank(Double minimumRank)
minimumRank
- the minimum rank the note should have for the user, null to ignorepublic void setNoteId(Long noteId)
noteId
- the noteId to setpublic void setQueryForAdditionalDMs(boolean queryForAdditionalDMs)
queryForAdditionalDMs
- Set to true, if this query is used to retrieve additional DM'spublic void setResourceId(Long resourceId)
resourceId
- the resource id to filter forpublic void setRetrieveOnlyFollowedItems(boolean onlyFollowedItems)
onlyFollowedItems
- true for retrieving only followed itemspublic void setSortByDayDateAndRank(boolean sortByDayDateAndRank)
sortByDayDateAndRank
- true if to sort only by the date and then by the rank (per date). a minimum or
maximum rank must be set for this to work.public void setTagIds(Collection<Long> tagIds)
tagIds
- the tagIds to setpublic void setTagPrefix(String tagPrefix)
setTagPrefix
in class UserQueryParameters
tagPrefix
- the tag prefixpublic void setTagStoreAliases(Set<String> tagStoreAliases)
setTagStoreAliases
in class UserQueryParameters
tagStoreAliases
- set of aliases identifying tag storespublic void setTimeLimitsQueryRequired(boolean timeLimitsQueryRequired)
PageableList
, namely
AugmentedPageableList
which holds all
list items and the time limits.timeLimitsQueryRequired
- true to get the time limitspublic void setTopicSearchFilters(String[] topicSearchFilters)
topicSearchFilters
- the strings to match against the titlespublic void setTypeSpecificExtension(TaggingCoreItemUTPExtension extension)
extension
- the sub-type of Note on which the query should focus with its specific datapublic void setUpperTagDate(Date upperTagDate)
upperTagDate
- set the upper tag datepublic void setUserAliases(Set<String> userAliases)
userAliases
- the userAliases to setpublic void setUserIds(Long[] userIds)
userIds
- the user ids parameterpublic void setUserIdsToIgnore(Long... userIdsToIgnore)
userIdsToIgnore
- An array of user ids, which should be ignored, when retrieving content.public void setUserToBeNotified(Long[] userToBeNotified)
userToBeNotified
- the new user to be notifiedCopyright © 2019 Communote team. All rights reserved.