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.ResultTypeNested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Collection<String>protected Stringprotected Stringprotected booleanprotected booleanprotected booleanprotected booleanprotected Stringprotected Stringprotected Stringprotected Collection<? extends Collection<String>>protected Stringprotected Stringprotected Stringprotected Stringprotected Integerprotected Stringprotected Stringprotected StringFields 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, withoutTenantIdFields inherited from class org.flowable.variable.service.impl.AbstractVariableQueryImpl
queryVariableValues, variableValueProviderFields inherited from class org.flowable.common.engine.impl.query.AbstractQuery
commandContext, commandExecutorFields 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
ConstructorsConstructorDescriptionCoreContentItemQueryImpl(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 givenuserIdorgroupKeys.definitionId(String definitionId) Only select content items with the given definition id.protected longexecuteFindContentItemCount(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.booleanbooleanbooleanbooleanisLatest()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.voidsetSafeAccessibleByGroups(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, withoutTenantIdMethods 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, variableValueNotEqualsIgnoreCaseMethods inherited from class org.flowable.common.engine.impl.query.AbstractQuery
asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, list, listPage, orderBy, orderBy, setCommandExecutor, singleResultMethods 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, setParameterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.flowable.common.engine.api.query.CacheAwareQuery
enhanceCachedValueMethods 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, withoutTenantIdMethods 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:CoreContentItemQueryOnly select content items with the given name ignoring case.- Specified by:
nameIgnoreCasein interfaceCoreContentItemQuery
-
nameLikeIgnoreCase
Description copied from interface:CoreContentItemQueryOnly select content items with a name like the given value ignoring case.- Specified by:
nameLikeIgnoreCasein interfaceCoreContentItemQuery
-
version
Description copied from interface:CoreContentItemQueryOnly select content items with the given version.- Specified by:
versionin interfaceCoreContentItemQuery
-
versionInfo
Description copied from interface:CoreContentItemQueryOnly select content items with the given version info.- Specified by:
versionInfoin interfaceCoreContentItemQuery
-
versionInfoLike
Description copied from interface:CoreContentItemQueryOnly select content items with a version info like the given string.- Specified by:
versionInfoLikein interfaceCoreContentItemQuery
-
versionParentId
Description copied from interface:CoreContentItemQueryOnly select content items with the given version parent id.- Specified by:
versionParentIdin interfaceCoreContentItemQuery
-
definitionId
Description copied from interface:CoreContentItemQueryOnly select content items with the given definition id.- Specified by:
definitionIdin interfaceCoreContentItemQuery
-
type
Description copied from interface:CoreContentItemQueryOnly select content items with the given type.- Specified by:
typein interfaceCoreContentItemQuery
-
subType
Description copied from interface:CoreContentItemQueryOnly select content items with the given sub type.- Specified by:
subTypein interfaceCoreContentItemQuery
-
state
Description copied from interface:CoreContentItemQueryOnly select content items with the given state.- Specified by:
statein interfaceCoreContentItemQuery
-
subState
Description copied from interface:CoreContentItemQueryOnly select content items with the given sub state.- Specified by:
subStatein interfaceCoreContentItemQuery
-
mimeTypeNotEquals
Description copied from interface:CoreContentItemQueryOnly select content items with a mime type that is not equal to the given mime type.- Specified by:
mimeTypeNotEqualsin interfaceCoreContentItemQuery
-
latest
Description copied from interface:CoreContentItemQueryOnly select content items with the latest version.- Specified by:
latestin interfaceCoreContentItemQuery
-
includeCachedItems
Description copied from interface:CoreContentItemQueryInclude 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:
includeCachedItemsin interfaceCoreContentItemQuery
-
accessibleByUserOrGroups
Description copied from interface:CoreContentItemQueryOnly select content items that are accessible by the givenuserIdorgroupKeys. 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:
accessibleByUserOrGroupsin interfaceCoreContentItemQuery
-
metadataValueEquals
- Specified by:
metadataValueEqualsin interfaceCoreContentItemQuery
-
metadataValueEquals
- Specified by:
metadataValueEqualsin interfaceCoreContentItemQuery
-
metadataValueEqualsIgnoreCase
- Specified by:
metadataValueEqualsIgnoreCasein interfaceCoreContentItemQuery
-
metadataValueNotEqualsIgnoreCase
- Specified by:
metadataValueNotEqualsIgnoreCasein interfaceCoreContentItemQuery
-
metadataValueNotEquals
- Specified by:
metadataValueNotEqualsin interfaceCoreContentItemQuery
-
metadataValueGreaterThan
- Specified by:
metadataValueGreaterThanin interfaceCoreContentItemQuery
-
metadataValueGreaterThanOrEqual
- Specified by:
metadataValueGreaterThanOrEqualin interfaceCoreContentItemQuery
-
metadataValueLessThan
- Specified by:
metadataValueLessThanin interfaceCoreContentItemQuery
-
metadataValueLessThanOrEqual
- Specified by:
metadataValueLessThanOrEqualin interfaceCoreContentItemQuery
-
metadataValueLike
- Specified by:
metadataValueLikein interfaceCoreContentItemQuery
-
metadataValueLikeIgnoreCase
- Specified by:
metadataValueLikeIgnoreCasein interfaceCoreContentItemQuery
-
metadataExists
- Specified by:
metadataExistsin interfaceCoreContentItemQuery
-
metadataNotExists
- Specified by:
metadataNotExistsin interfaceCoreContentItemQuery
-
includeMetadataValues
- Specified by:
includeMetadataValuesin interfaceCoreContentItemQuery
-
includeRenditions
- Specified by:
includeRenditionsin interfaceCoreContentItemQuery
-
executeFindContentItemCount
- Specified by:
executeFindContentItemCountin classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
executeFindContentItemList
- Specified by:
executeFindContentItemListin classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
orderByName
- Specified by:
orderByNamein interfaceCoreContentItemQuery
-
orderByLastModified
- Specified by:
orderByLastModifiedin interfaceCoreContentItemQuery
-
orderBySize
- Specified by:
orderBySizein interfaceCoreContentItemQuery
-
getNameIgnoreCase
-
getNameLikeIgnoreCase
-
getVersion
- Overrides:
getVersionin classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
getVersionInfo
- Overrides:
getVersionInfoin classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
getVersionInfoLike
- Overrides:
getVersionInfoLikein classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
getVersionParentId
- Overrides:
getVersionParentIdin classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
getDefinitionId
- Overrides:
getDefinitionIdin classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
getType
- Overrides:
getTypein classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
getSubType
- Overrides:
getSubTypein classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
getState
- Overrides:
getStatein classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
getSubState
- Overrides:
getSubStatein classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
getMimeTypeNotEquals
- Overrides:
getMimeTypeNotEqualsin classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
isLatest
public boolean isLatest()- Overrides:
isLatestin classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
isIncludeCachedItems
public boolean isIncludeCachedItems()- Overrides:
isIncludeCachedItemsin classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
getAccessibleByUser
- Overrides:
getAccessibleByUserin classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
getAccessibleByGroups
- Overrides:
getAccessibleByGroupsin classContentItemBaseQueryImpl<CoreContentItemQuery,CoreContentItem>
-
getSafeAccessibleByGroups
-
setSafeAccessibleByGroups
public void setSafeAccessibleByGroups(Collection<? extends Collection<String>> safeAccessibleByGroups) -
getQueryMetadataValues
-
isIncludeMetadataValues
public boolean isIncludeMetadataValues() -
isIncludeRenditions
public boolean isIncludeRenditions()
-