Package com.flowable.content.engine.impl
Class CoreContentItemQueryImpl
- java.lang.Object
-
- org.flowable.common.engine.impl.db.ListQueryParameterObject
-
- org.flowable.common.engine.impl.query.AbstractQuery<T,C>
-
- com.flowable.content.engine.impl.ContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
- com.flowable.content.engine.impl.CoreContentItemQueryImpl
-
- All Implemented Interfaces:
CoreContentItemQuery
,Serializable
,Query<CoreContentItemQuery,CoreContentItem>
,Command<Object>
,ContentItemBaseQuery<CoreContentItemQuery,CoreContentItem>
public class CoreContentItemQueryImpl extends ContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem> implements CoreContentItemQuery
- Author:
- Tijs Rademakers, Joram Barrez
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
ListQueryParameterObject.OrderBy, ListQueryParameterObject.ResultType
-
Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder
-
-
Field Summary
Fields Modifier and Type Field Description protected Collection<String>
accessibleByGroups
protected String
accessibleByUser
protected String
definitionId
protected boolean
includeCachedItems
protected boolean
latest
protected String
mimeTypeNotEquals
protected String
nameIgnoreCase
protected String
nameLikeIgnoreCase
protected Collection<? extends Collection<String>>
safeAccessibleByGroups
protected String
state
protected String
subState
protected String
subType
protected String
type
protected Integer
version
protected String
versionInfo
protected String
versionInfoLike
protected String
versionParentId
-
Fields inherited from class com.flowable.content.engine.impl.ContentItemBaseQueryImpl
baseFolderId, contentAvailable, contentSize, contentStoreId, contentStoreIdLike, contentStoreName, contentStoreNameLike, createdBy, createdByLike, createdDate, createdDateAfter, createdDateBefore, id, ids, isRootFolder, lastModifiedBy, lastModifiedByLike, lastModifiedDate, lastModifiedDateAfter, lastModifiedDateBefore, maxContentSize, mimeType, mimeTypeLike, minContentSize, name, nameLike, parentFolderId, parentFolderIds, processInstanceId, processInstanceIdLike, scopeId, scopeIdLike, scopeType, scopeTypeLike, taskId, taskIdLike, tenantId, tenantIdLike, withoutTenantId
-
Fields inherited from class org.flowable.common.engine.impl.query.AbstractQuery
commandContext, commandExecutor
-
Fields inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
databaseType, DEFAULT_ORDER_BY, defaultOrderBy, firstResult, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByCollection, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC
-
-
Constructor Summary
Constructors Constructor Description CoreContentItemQueryImpl(CommandContext commandContext)
CoreContentItemQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoreContentItemQuery
accessibleByUserOrGroups(String userId, Collection<String> groupKeys)
Only select content items that are accessible by the givenuserId
orgroupKeys
.CoreContentItemQuery
definitionId(String definitionId)
Only select content items with the given definition id.protected long
executeFindContentItemCount(CommandContext commandContext)
protected List<CoreContentItem>
executeFindContentItemList(CommandContext commandContext)
Collection<String>
getAccessibleByGroups()
String
getAccessibleByUser()
String
getDefinitionId()
String
getMimeTypeNotEquals()
String
getNameIgnoreCase()
String
getNameLikeIgnoreCase()
Collection<? extends Collection<String>>
getSafeAccessibleByGroups()
String
getState()
String
getSubState()
String
getSubType()
String
getType()
Integer
getVersion()
String
getVersionInfo()
String
getVersionInfoLike()
String
getVersionParentId()
CoreContentItemQuery
includeCachedItems()
Include cached content items, only implemented for queries with mimetype = folder, a filled parent folder id and a process instance id, task id, or scope id.boolean
isIncludeCachedItems()
boolean
isLatest()
CoreContentItemQuery
latest()
Only select content items with the latest version.CoreContentItemQuery
mimeTypeNotEquals(String mimeTypeNotEquals)
Only select content items with a mime type that is not equal to the given mime type.CoreContentItemQuery
nameIgnoreCase(String nameIgnoreCase)
Only select content items with the given name ignoring case.CoreContentItemQuery
nameLikeIgnoreCase(String nameLikeIgnoreCase)
Only select content items with a name like the given value ignoring case.void
setSafeAccessibleByGroups(Collection<? extends Collection<String>> safeAccessibleByGroups)
CoreContentItemQuery
state(String state)
Only select content items with the given state.CoreContentItemQuery
subState(String subState)
Only select content items with the given sub state.CoreContentItemQuery
subType(String subType)
Only select content items with the given sub type.CoreContentItemQuery
type(String type)
Only select content items with the given type.CoreContentItemQuery
version(Integer version)
Only select content items with the given version.CoreContentItemQuery
versionInfo(String versionInfo)
Only select content items with the given version info.CoreContentItemQuery
versionInfoLike(String versionInfoLike)
Only select content items with a version info like the given string.CoreContentItemQuery
versionParentId(String versionParentId)
Only select content items with the given version parent id.-
Methods inherited from class com.flowable.content.engine.impl.ContentItemBaseQueryImpl
baseFolderId, contentAvailable, contentSize, contentStoreId, contentStoreIdLike, contentStoreName, contentStoreNameLike, createdBy, createdByLike, createdDate, createdDateAfter, createdDateBefore, executeCount, executeList, field, fieldLike, getBaseFolderId, getContentAvailable, getContentSize, getContentStoreId, getContentStoreIdLike, getContentStoreName, getContentStoreNameLike, getCreatedBy, getCreatedByLike, getCreatedDate, getCreatedDateAfter, getCreatedDateBefore, getId, getIds, getLastModifiedBy, getLastModifiedByLike, getLastModifiedDate, getLastModifiedDateAfter, getLastModifiedDateBefore, getMaxContentSize, getMimeType, getMimeTypeLike, getMinContentSize, getParentFolderId, getParentFolderIds, getProcessInstanceId, getProcessInstanceIdLike, getScopeId, getScopeIdLike, getScopeType, getScopeTypeLike, getTaskId, getTaskIdLike, getTenantId, getTenantIdLike, id, ids, isRootFolder, isWithoutTenantId, lastModifiedBy, lastModifiedByLike, lastModifiedDate, lastModifiedDateAfter, lastModifiedDateBefore, maxContentSize, mimeType, mimeTypeLike, minContentSize, name, nameLike, orderByCreatedDate, orderByTenantId, parentFolderId, parentFolderIds, processInstanceId, processInstanceIdLike, scopeId, scopeIdLike, scopeType, scopeTypeLike, taskId, taskIdLike, tenantId, tenantIdLike, withoutTenantId
-
Methods inherited from class org.flowable.common.engine.impl.query.AbstractQuery
asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, list, listPage, orderBy, orderBy, setCommandExecutor, singleResult
-
Methods inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
addOrder, buildOrderBy, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByCollectionSafe, getOrderByForWindow, getOuterJoinOrderBy, getParameter, hasOrderBy, hasOrderByForColumn, isNeedsPaging, mapOrderByToSql, setDatabaseType, setFirstResult, setMaxResults, setNullHandlingColumn, setParameter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.flowable.content.api.ContentItemBaseQuery
contentAvailable, contentSize, contentStoreId, contentStoreIdLike, contentStoreName, contentStoreNameLike, createdBy, createdByLike, createdDate, createdDateAfter, createdDateBefore, field, fieldLike, id, ids, lastModifiedBy, lastModifiedByLike, lastModifiedDate, lastModifiedDateAfter, lastModifiedDateBefore, maxContentSize, mimeType, mimeTypeLike, minContentSize, name, nameLike, orderByCreatedDate, orderByTenantId, processInstanceId, processInstanceIdLike, scopeId, scopeIdLike, scopeType, scopeTypeLike, taskId, taskIdLike, tenantId, tenantIdLike, withoutTenantId
-
Methods inherited from interface com.flowable.core.content.api.CoreContentItemQuery
baseFolderId, isRootFolder, parentFolderId
-
-
-
-
Field Detail
-
nameIgnoreCase
protected String nameIgnoreCase
-
nameLikeIgnoreCase
protected String nameLikeIgnoreCase
-
version
protected Integer version
-
versionInfo
protected String versionInfo
-
versionInfoLike
protected String versionInfoLike
-
versionParentId
protected String versionParentId
-
definitionId
protected String definitionId
-
type
protected String type
-
subType
protected String subType
-
state
protected String state
-
subState
protected String subState
-
mimeTypeNotEquals
protected String mimeTypeNotEquals
-
latest
protected boolean latest
-
includeCachedItems
protected boolean includeCachedItems
-
accessibleByUser
protected String accessibleByUser
-
accessibleByGroups
protected Collection<String> accessibleByGroups
-
safeAccessibleByGroups
protected Collection<? extends Collection<String>> safeAccessibleByGroups
-
-
Constructor Detail
-
CoreContentItemQueryImpl
public CoreContentItemQueryImpl(CommandContext commandContext)
-
CoreContentItemQueryImpl
public CoreContentItemQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
nameIgnoreCase
public CoreContentItemQuery nameIgnoreCase(String nameIgnoreCase)
Description copied from interface:CoreContentItemQuery
Only select content items with the given name ignoring case.- Specified by:
nameIgnoreCase
in interfaceCoreContentItemQuery
-
nameLikeIgnoreCase
public CoreContentItemQuery nameLikeIgnoreCase(String nameLikeIgnoreCase)
Description copied from interface:CoreContentItemQuery
Only select content items with a name like the given value ignoring case.- Specified by:
nameLikeIgnoreCase
in interfaceCoreContentItemQuery
-
version
public CoreContentItemQuery version(Integer version)
Description copied from interface:CoreContentItemQuery
Only select content items with the given version.- Specified by:
version
in interfaceCoreContentItemQuery
-
versionInfo
public CoreContentItemQuery versionInfo(String versionInfo)
Description copied from interface:CoreContentItemQuery
Only select content items with the given version info.- Specified by:
versionInfo
in interfaceCoreContentItemQuery
-
versionInfoLike
public CoreContentItemQuery versionInfoLike(String versionInfoLike)
Description copied from interface:CoreContentItemQuery
Only select content items with a version info like the given string.- Specified by:
versionInfoLike
in interfaceCoreContentItemQuery
-
versionParentId
public CoreContentItemQuery versionParentId(String versionParentId)
Description copied from interface:CoreContentItemQuery
Only select content items with the given version parent id.- Specified by:
versionParentId
in interfaceCoreContentItemQuery
-
definitionId
public CoreContentItemQuery definitionId(String definitionId)
Description copied from interface:CoreContentItemQuery
Only select content items with the given definition id.- Specified by:
definitionId
in interfaceCoreContentItemQuery
-
type
public CoreContentItemQuery type(String type)
Description copied from interface:CoreContentItemQuery
Only select content items with the given type.- Specified by:
type
in interfaceCoreContentItemQuery
-
subType
public CoreContentItemQuery subType(String subType)
Description copied from interface:CoreContentItemQuery
Only select content items with the given sub type.- Specified by:
subType
in interfaceCoreContentItemQuery
-
state
public CoreContentItemQuery state(String state)
Description copied from interface:CoreContentItemQuery
Only select content items with the given state.- Specified by:
state
in interfaceCoreContentItemQuery
-
subState
public CoreContentItemQuery subState(String subState)
Description copied from interface:CoreContentItemQuery
Only select content items with the given sub state.- Specified by:
subState
in interfaceCoreContentItemQuery
-
mimeTypeNotEquals
public CoreContentItemQuery mimeTypeNotEquals(String mimeTypeNotEquals)
Description copied from interface:CoreContentItemQuery
Only select content items with a mime type that is not equal to the given mime type.- Specified by:
mimeTypeNotEquals
in interfaceCoreContentItemQuery
-
latest
public CoreContentItemQuery latest()
Description copied from interface:CoreContentItemQuery
Only select content items with the latest version.- Specified by:
latest
in interfaceCoreContentItemQuery
-
includeCachedItems
public CoreContentItemQuery includeCachedItems()
Description copied from interface:CoreContentItemQuery
Include cached content items, only implemented for queries with mimetype = folder, a filled parent folder id and a process instance id, task id, or scope id. This is to prevent folders from getting created multiple times- Specified by:
includeCachedItems
in interfaceCoreContentItemQuery
-
accessibleByUserOrGroups
public CoreContentItemQuery accessibleByUserOrGroups(String userId, Collection<String> groupKeys)
Description copied from interface:CoreContentItemQuery
Only select content items that are accessible by the givenuserId
orgroupKeys
. This will check accessibility to the references of a content item. e.g. if a ContentItem is linked to a process instance it will check the process instance identity links.- Specified by:
accessibleByUserOrGroups
in interfaceCoreContentItemQuery
-
executeFindContentItemCount
protected long executeFindContentItemCount(CommandContext commandContext)
- Specified by:
executeFindContentItemCount
in classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
executeFindContentItemList
protected List<CoreContentItem> executeFindContentItemList(CommandContext commandContext)
- Specified by:
executeFindContentItemList
in classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
getNameIgnoreCase
public String getNameIgnoreCase()
-
getNameLikeIgnoreCase
public String getNameLikeIgnoreCase()
-
getVersion
public Integer getVersion()
- Overrides:
getVersion
in classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
getVersionInfo
public String getVersionInfo()
- Overrides:
getVersionInfo
in classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
getVersionInfoLike
public String getVersionInfoLike()
- Overrides:
getVersionInfoLike
in classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
getVersionParentId
public String getVersionParentId()
- Overrides:
getVersionParentId
in classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
getDefinitionId
public String getDefinitionId()
- Overrides:
getDefinitionId
in classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
getType
public String getType()
- Overrides:
getType
in classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
getSubType
public String getSubType()
- Overrides:
getSubType
in classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
getState
public String getState()
- Overrides:
getState
in classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
getSubState
public String getSubState()
- Overrides:
getSubState
in classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
getMimeTypeNotEquals
public String getMimeTypeNotEquals()
- Overrides:
getMimeTypeNotEquals
in classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
isLatest
public boolean isLatest()
- Overrides:
isLatest
in classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
isIncludeCachedItems
public boolean isIncludeCachedItems()
- Overrides:
isIncludeCachedItems
in classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
getAccessibleByUser
public String getAccessibleByUser()
- Overrides:
getAccessibleByUser
in classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
getAccessibleByGroups
public Collection<String> getAccessibleByGroups()
- Overrides:
getAccessibleByGroups
in classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
getSafeAccessibleByGroups
public Collection<? extends Collection<String>> getSafeAccessibleByGroups()
-
setSafeAccessibleByGroups
public void setSafeAccessibleByGroups(Collection<? extends Collection<String>> safeAccessibleByGroups)
-
-