public class PublicationCriteria extends java.lang.Object implements JaliosConstants, DBConstants
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR
ALL_CATEGORIES_SET_FIELD, AUTH_GRP_SET_FIELD, AUTH_MBR_SET_FIELD, AUTHOR_ID_FIELD, CATEGORIES_SET_FIELD, CDATE_FIELD, CHANNEL_JCMSDB_PROP, DBDATA_URID, HAS_NO_READ_RIGHTS, HIBERNATE_MAPPING_ADATE, HIBERNATE_MAPPING_AUTHOR, HIBERNATE_MAPPING_CDATE, HIBERNATE_MAPPING_EDATE, HIBERNATE_MAPPING_HASNOREADRIGHTS, HIBERNATE_MAPPING_MAJORVERSION, HIBERNATE_MAPPING_MDATE, HIBERNATE_MAPPING_MINORVERSION, HIBERNATE_MAPPING_PDATE, HIBERNATE_MAPPING_PSTATUS, HIBERNATE_MAPPING_READERCOUNT, HIBERNATE_MAPPING_ROLEMAPSTR, HIBERNATE_MAPPING_TITLE, HIBERNATE_MAPPING_TRACKED, HIBERNATE_MAPPING_UDATE, HIBERNATE_MAPPING_VOTECOUNT, HIBERNATE_MAPPING_VOTESCORE, HIBERNATE_MAPPING_WORKFLOW_ID, HIBERNATE_MAPPING_WORKSPACE_ID, MAX_HIBERNATE_MAPPING_PUBLICATION, MDATE_FIELD, PSTATUS_FIELD, ROW_ID_FIELD, SCROLL_FETCH_SIZE, WORKFLOW_ID_FIELD, WORKSPACE_ID_FIELD
Constructor and Description |
---|
PublicationCriteria(java.lang.Class<? extends Publication> clazz) |
PublicationCriteria(java.lang.Class<? extends Publication> clazz,
QueryHandler qh) |
Modifier and Type | Method and Description |
---|---|
org.hibernate.Criteria |
buildCriteria(boolean count) |
boolean |
checkReadRights() |
java.lang.String |
getAuthorId() |
java.util.Date |
getBeginDate() |
java.lang.String |
getDateType() |
java.util.Date |
getEndDate() |
int |
getFirstResult() |
int |
getMaxResults() |
Member |
getMember() |
java.util.Comparator |
getMergeComparator()
Returns the merge comparator used to sort hybrid search.
|
java.lang.String |
getOrder() |
int[] |
getPstatusArray() |
java.lang.Class<? extends Publication> |
getPubClass() |
QueryHandler |
getQueryHandler() |
java.lang.String |
getText() |
java.lang.String |
getWorkspaceId()
Use instead
getWorkspaceIdSet() . |
java.util.Set<java.lang.String> |
getWorkspaceIdSet() |
boolean |
hasAdvancedLuceneQuery()
Returns true if there is an advanced lucene query to be performed.
|
boolean |
isAscendingOrder() |
boolean |
isHybridSearch() |
boolean |
isIncludePstatus() |
boolean |
isPolymorphicQuery() |
boolean |
isTextSearch()
Returns true if the text parameter has been setup.
|
PublicationCriteria |
setAscendingOrder(boolean ascendingOrder) |
PublicationCriteria |
setAuthor(Member author) |
PublicationCriteria |
setAuthorId(java.lang.String authorId) |
PublicationCriteria |
setBeginDate(java.util.Date beginDate) |
PublicationCriteria |
setCustomCriterion(org.hibernate.criterion.Criterion customCriterion) |
PublicationCriteria |
setDateType(java.lang.String dateType) |
PublicationCriteria |
setEndDate(java.util.Date endDate) |
void |
setFilterOnMemberWorkspaces(boolean filterOnMemberWorkspaces) |
PublicationCriteria |
setFirstResult(int firstResult) |
void |
setHybridSearch(boolean isHybridSearch) |
PublicationCriteria |
setIncludePstatus(boolean includePstatus) |
PublicationCriteria |
setMaxResults(int maxResults) |
void |
setMember(Member member) |
PublicationCriteria |
setMergeComparator(java.util.Comparator mergeComparator)
Set the merge comparator to be used to sort hybrid search (and set the isHybridSearch flag)
|
PublicationCriteria |
setOrder(java.lang.String order) |
PublicationCriteria |
setPstatusArray(int[] pstatusArray) |
PublicationCriteria |
setPubClass(java.lang.Class<? extends Publication> clazz) |
PublicationCriteria |
setQueryHandler(QueryHandler qh) |
PublicationCriteria |
setRowIdSet(java.util.Set<java.lang.Long> rowIdSet) |
PublicationCriteria |
setText(java.lang.String text) |
PublicationCriteria |
setWorkspace(Workspace workspace)
Use instead
setWorkspaceIdSet(Collection) . |
PublicationCriteria |
setWorkspaceId(java.lang.String workspaceId)
Use instead
setWorkspaceIdSet(Collection) . |
void |
setWorkspaceIdSet(java.util.Collection<java.lang.String> wsIds) |
java.lang.String |
toString() |
public static final java.lang.String REVISION
public PublicationCriteria(java.lang.Class<? extends Publication> clazz)
public PublicationCriteria(java.lang.Class<? extends Publication> clazz, QueryHandler qh)
public java.lang.String toString()
toString
in class java.lang.Object
public org.hibernate.Criteria buildCriteria(boolean count)
public boolean isTextSearch()
public boolean hasAdvancedLuceneQuery()
public java.lang.Class<? extends Publication> getPubClass()
public PublicationCriteria setPubClass(java.lang.Class<? extends Publication> clazz)
public QueryHandler getQueryHandler()
public PublicationCriteria setQueryHandler(QueryHandler qh)
public java.lang.String getWorkspaceId()
getWorkspaceIdSet()
.public PublicationCriteria setWorkspaceId(java.lang.String workspaceId)
setWorkspaceIdSet(Collection)
.workspaceId
- the workspace id to refine on.public PublicationCriteria setWorkspace(Workspace workspace)
setWorkspaceIdSet(Collection)
.workspace
- the workspace to refine on.public void setWorkspaceIdSet(java.util.Collection<java.lang.String> wsIds)
wsIds
- the set of workspace's ids to refine on.public java.util.Set<java.lang.String> getWorkspaceIdSet()
public java.lang.String getAuthorId()
public PublicationCriteria setAuthorId(java.lang.String authorId)
public PublicationCriteria setAuthor(Member author)
public void setFilterOnMemberWorkspaces(boolean filterOnMemberWorkspaces)
public int[] getPstatusArray()
public PublicationCriteria setPstatusArray(int[] pstatusArray)
public boolean isIncludePstatus()
public PublicationCriteria setIncludePstatus(boolean includePstatus)
public java.lang.String getText()
public PublicationCriteria setText(java.lang.String text)
public java.util.Date getBeginDate()
public PublicationCriteria setBeginDate(java.util.Date beginDate)
public java.util.Date getEndDate()
public PublicationCriteria setEndDate(java.util.Date endDate)
public java.lang.String getDateType()
public PublicationCriteria setDateType(java.lang.String dateType)
public PublicationCriteria setRowIdSet(java.util.Set<java.lang.Long> rowIdSet)
public void setMember(Member member)
public Member getMember()
public boolean checkReadRights()
public int getFirstResult()
public PublicationCriteria setFirstResult(int firstResult)
public int getMaxResults()
public PublicationCriteria setMaxResults(int maxResults)
public java.lang.String getOrder()
public PublicationCriteria setOrder(java.lang.String order)
public boolean isAscendingOrder()
public PublicationCriteria setAscendingOrder(boolean ascendingOrder)
public PublicationCriteria setCustomCriterion(org.hibernate.criterion.Criterion customCriterion)
public java.util.Comparator getMergeComparator()
getOrder()
and isAscendingOrder()
.public PublicationCriteria setMergeComparator(java.util.Comparator mergeComparator)
mergeComparator
- the merge comparatorpublic boolean isHybridSearch()
public void setHybridSearch(boolean isHybridSearch)
public boolean isPolymorphicQuery()
Copyright © 2001-2010 Jalios SA. All Rights Reserved.