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,U>
org.flowable.variable.service.impl.AbstractVariableQueryImpl<T,C>
com.flowable.content.engine.impl.ContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
com.flowable.content.engine.impl.CoreContentItemQueryImpl
- All Implemented Interfaces:
CoreContentItemQuery
,Serializable
,CacheAwareQuery<CoreContentItem>
,Query<CoreContentItemQuery,
,CoreContentItem> Command<Object>
,ContentItemBaseQuery<CoreContentItemQuery,
CoreContentItem>
public class CoreContentItemQueryImpl
extends ContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
implements CoreContentItemQuery
- Author:
- Tijs Rademakers, Joram Barrez
- See Also:
-
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
Modifier and TypeFieldDescriptionprotected Collection<String>
protected String
protected String
protected boolean
protected boolean
protected boolean
protected boolean
protected String
protected String
protected String
protected Collection<? extends Collection<String>>
protected String
protected String
protected String
protected String
protected Integer
protected String
protected String
protected String
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.variable.service.impl.AbstractVariableQueryImpl
queryVariableValues, variableValueProvider
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
ConstructorDescriptionCoreContentItemQueryImpl
(CommandContext commandContext) CoreContentItemQueryImpl
(CommandExecutor commandExecutor, ContentEngineConfiguration contentEngineConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionaccessibleByUserOrGroups
(String userId, Collection<String> groupKeys) Only select content items that are accessible by the givenuserId
orgroupKeys
.definitionId
(String definitionId) Only select content items with the given definition id.protected long
executeFindContentItemCount
(CommandContext commandContext) protected List<CoreContentItem>
executeFindContentItemList
(CommandContext commandContext) Collection<? extends Collection<String>>
getState()
getType()
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
boolean
boolean
boolean
isLatest()
latest()
Only select content items with the latest version.metadataExists
(String name) metadataNotExists
(String name) metadataValueEquals
(Object value) metadataValueEquals
(String key, Object value) metadataValueEqualsIgnoreCase
(String name, String value) metadataValueGreaterThan
(String name, Object value) metadataValueGreaterThanOrEqual
(String name, Object value) metadataValueLessThan
(String name, Object value) metadataValueLessThanOrEqual
(String name, Object value) metadataValueLike
(String name, String value) metadataValueLikeIgnoreCase
(String name, String value) metadataValueNotEquals
(String name, Object value) metadataValueNotEqualsIgnoreCase
(String name, String value) mimeTypeNotEquals
(String mimeTypeNotEquals) Only select content items with a mime type that is not equal to the given mime type.nameIgnoreCase
(String nameIgnoreCase) Only select content items with the given name ignoring case.nameLikeIgnoreCase
(String nameLikeIgnoreCase) Only select content items with a name like the given value ignoring case.void
setSafeAccessibleByGroups
(Collection<? extends Collection<String>> safeAccessibleByGroups) Only select content items with the given state.Only select content items with the given sub state.Only select content items with the given sub type.Only select content items with the given type.Only select content items with the given version.versionInfo
(String versionInfo) Only select content items with the given version info.versionInfoLike
(String versionInfoLike) Only select content items with a version info like the given string.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.variable.service.impl.AbstractVariableQueryImpl
addVariable, addVariable, ensureVariablesInitialized, getQueryVariableValues, hasLocalQueryVariableValue, hasNonLocalQueryVariableValue, hasValueComparisonQueryVariables, isBoolean, scopedVariableExists, scopedVariableNotExists, scopedVariableValueEquals, scopedVariableValueEquals, scopedVariableValueEqualsIgnoreCase, scopedVariableValueGreaterThan, scopedVariableValueGreaterThanOrEqual, scopedVariableValueLessThan, scopedVariableValueLessThanOrEqual, scopedVariableValueLike, scopedVariableValueLikeIgnoreCase, scopedVariableValueNotEquals, scopedVariableValueNotEqualsIgnoreCase, variableExists, variableExists, variableNotExists, variableNotExists, variableValueEquals, variableValueEquals, variableValueEquals, variableValueEquals, variableValueEqualsIgnoreCase, variableValueEqualsIgnoreCase, variableValueGreaterThan, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThan, variableValueLessThanOrEqual, variableValueLessThanOrEqual, variableValueLike, variableValueLike, variableValueLikeIgnoreCase, variableValueLikeIgnoreCase, variableValueNotEquals, variableValueNotEquals, variableValueNotEqualsIgnoreCase, variableValueNotEqualsIgnoreCase
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.common.engine.api.query.CacheAwareQuery
enhanceCachedValue
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 Details
-
nameIgnoreCase
-
nameLikeIgnoreCase
-
version
-
versionInfo
-
versionInfoLike
-
versionParentId
-
definitionId
-
type
-
subType
-
state
-
subState
-
mimeTypeNotEquals
-
latest
protected boolean latest -
includeCachedItems
protected boolean includeCachedItems -
accessibleByUser
-
accessibleByGroups
-
safeAccessibleByGroups
-
includeMetadataValues
protected boolean includeMetadataValues -
includeRenditions
protected boolean includeRenditions
-
-
Constructor Details
-
CoreContentItemQueryImpl
-
CoreContentItemQueryImpl
public CoreContentItemQueryImpl(CommandExecutor commandExecutor, ContentEngineConfiguration contentEngineConfiguration)
-
-
Method Details
-
nameIgnoreCase
Description copied from interface:CoreContentItemQuery
Only select content items with the given name ignoring case.- Specified by:
nameIgnoreCase
in interfaceCoreContentItemQuery
-
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
Description copied from interface:CoreContentItemQuery
Only select content items with the given version.- Specified by:
version
in interfaceCoreContentItemQuery
-
versionInfo
Description copied from interface:CoreContentItemQuery
Only select content items with the given version info.- Specified by:
versionInfo
in interfaceCoreContentItemQuery
-
versionInfoLike
Description copied from interface:CoreContentItemQuery
Only select content items with a version info like the given string.- Specified by:
versionInfoLike
in interfaceCoreContentItemQuery
-
versionParentId
Description copied from interface:CoreContentItemQuery
Only select content items with the given version parent id.- Specified by:
versionParentId
in interfaceCoreContentItemQuery
-
definitionId
Description copied from interface:CoreContentItemQuery
Only select content items with the given definition id.- Specified by:
definitionId
in interfaceCoreContentItemQuery
-
type
Description copied from interface:CoreContentItemQuery
Only select content items with the given type.- Specified by:
type
in interfaceCoreContentItemQuery
-
subType
Description copied from interface:CoreContentItemQuery
Only select content items with the given sub type.- Specified by:
subType
in interfaceCoreContentItemQuery
-
state
Description copied from interface:CoreContentItemQuery
Only select content items with the given state.- Specified by:
state
in interfaceCoreContentItemQuery
-
subState
Description copied from interface:CoreContentItemQuery
Only select content items with the given sub state.- Specified by:
subState
in interfaceCoreContentItemQuery
-
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
Description copied from interface:CoreContentItemQuery
Only select content items with the latest version.- Specified by:
latest
in interfaceCoreContentItemQuery
-
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
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
-
metadataValueEquals
- Specified by:
metadataValueEquals
in interfaceCoreContentItemQuery
-
metadataValueEquals
- Specified by:
metadataValueEquals
in interfaceCoreContentItemQuery
-
metadataValueEqualsIgnoreCase
- Specified by:
metadataValueEqualsIgnoreCase
in interfaceCoreContentItemQuery
-
metadataValueNotEqualsIgnoreCase
- Specified by:
metadataValueNotEqualsIgnoreCase
in interfaceCoreContentItemQuery
-
metadataValueNotEquals
- Specified by:
metadataValueNotEquals
in interfaceCoreContentItemQuery
-
metadataValueGreaterThan
- Specified by:
metadataValueGreaterThan
in interfaceCoreContentItemQuery
-
metadataValueGreaterThanOrEqual
- Specified by:
metadataValueGreaterThanOrEqual
in interfaceCoreContentItemQuery
-
metadataValueLessThan
- Specified by:
metadataValueLessThan
in interfaceCoreContentItemQuery
-
metadataValueLessThanOrEqual
- Specified by:
metadataValueLessThanOrEqual
in interfaceCoreContentItemQuery
-
metadataValueLike
- Specified by:
metadataValueLike
in interfaceCoreContentItemQuery
-
metadataValueLikeIgnoreCase
- Specified by:
metadataValueLikeIgnoreCase
in interfaceCoreContentItemQuery
-
metadataExists
- Specified by:
metadataExists
in interfaceCoreContentItemQuery
-
metadataNotExists
- Specified by:
metadataNotExists
in interfaceCoreContentItemQuery
-
includeMetadataValues
- Specified by:
includeMetadataValues
in interfaceCoreContentItemQuery
-
includeRenditions
- Specified by:
includeRenditions
in interfaceCoreContentItemQuery
-
executeFindContentItemCount
- Specified by:
executeFindContentItemCount
in classContentItemBaseQueryImpl<CoreContentItemQuery,
CoreContentItem>
-
executeFindContentItemList
- Specified by:
executeFindContentItemList
in classContentItemBaseQueryImpl<CoreContentItemQuery,
CoreContentItem>
-
orderByName
- Specified by:
orderByName
in interfaceCoreContentItemQuery
-
orderByLastModified
- Specified by:
orderByLastModified
in interfaceCoreContentItemQuery
-
orderBySize
- Specified by:
orderBySize
in interfaceCoreContentItemQuery
-
getNameIgnoreCase
-
getNameLikeIgnoreCase
-
getVersion
- Overrides:
getVersion
in classContentItemBaseQueryImpl<CoreContentItemQuery,
CoreContentItem>
-
getVersionInfo
- Overrides:
getVersionInfo
in classContentItemBaseQueryImpl<CoreContentItemQuery,
CoreContentItem>
-
getVersionInfoLike
- Overrides:
getVersionInfoLike
in classContentItemBaseQueryImpl<CoreContentItemQuery,
CoreContentItem>
-
getVersionParentId
- Overrides:
getVersionParentId
in classContentItemBaseQueryImpl<CoreContentItemQuery,
CoreContentItem>
-
getDefinitionId
- Overrides:
getDefinitionId
in classContentItemBaseQueryImpl<CoreContentItemQuery,
CoreContentItem>
-
getType
- Overrides:
getType
in classContentItemBaseQueryImpl<CoreContentItemQuery,
CoreContentItem>
-
getSubType
- Overrides:
getSubType
in classContentItemBaseQueryImpl<CoreContentItemQuery,
CoreContentItem>
-
getState
- Overrides:
getState
in classContentItemBaseQueryImpl<CoreContentItemQuery,
CoreContentItem>
-
getSubState
- Overrides:
getSubState
in classContentItemBaseQueryImpl<CoreContentItemQuery,
CoreContentItem>
-
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
- Overrides:
getAccessibleByUser
in classContentItemBaseQueryImpl<CoreContentItemQuery,
CoreContentItem>
-
getAccessibleByGroups
- Overrides:
getAccessibleByGroups
in classContentItemBaseQueryImpl<CoreContentItemQuery,
CoreContentItem>
-
getSafeAccessibleByGroups
-
setSafeAccessibleByGroups
public void setSafeAccessibleByGroups(Collection<? extends Collection<String>> safeAccessibleByGroups) -
getQueryMetadataValues
-
isIncludeMetadataValues
public boolean isIncludeMetadataValues() -
isIncludeRenditions
public boolean isIncludeRenditions()
-