Interface MTDocumentTypeQuery
- All Superinterfaces:
MTDateFilterQuery
,MTMissingTranslationsQuery
,MTPatternQuery
,MTQuery
,MTSortableQuery
public interface MTDocumentTypeQuery
extends MTQuery, MTDateFilterQuery, MTPatternQuery, MTSortableQuery, MTMissingTranslationsQuery
-
Nested Class Summary
Nested classes/interfaces inherited from interface se.conciliate.extensions.store.query.MTQuery
MTQuery.ResultContext, MTQuery.SortColumn, MTQuery.State
-
Method Summary
Modifier and TypeMethodDescriptionSelects document types by their ID.Selects all document types in the repository.selectByNamedQuery
(MTNamedQuery namedQuery) Selects from a named query.selectByUUID
(List<String> uuids) Selects document types by their UUID.Selects all document types that are not used for any documents.sort
(MTQuery.SortColumn sortColumn, boolean ascending, MTLanguage language, Locale locale) Sorts the selected document types.withChangesSince
(Date date) Excludes document types that have not been modified since a given date.withPattern
(String pattern, MTLanguage language, boolean exactMatch, boolean ignoreCase) Excludes results where the title does not containpattern
as a substring.Methods inherited from interface se.conciliate.extensions.store.query.MTMissingTranslationsQuery
withMissingTranslations
Methods inherited from interface se.conciliate.extensions.store.query.MTQuery
attributeTypes, clear, colorSchemes, documents, documentSources, documentTypes, entityProperties, execute, getResultTypes, getState, images, layerTypes, lists, models, pluginData, publishProfiles, serialize, subscribers, symbols, timestamps, users, variables, workspacePluginData
-
Method Details
-
selectAll
MTDocumentTypeQuery selectAll()Selects all document types in the repository. -
selectUnused
MTDocumentTypeQuery selectUnused()Selects all document types that are not used for any documents. -
select
Selects document types by their ID.- Parameters:
ids
- The ID:s of the document types to select.
-
selectByUUID
Selects document types by their UUID.- Parameters:
uuids
- The UUIDS:s of the document types to select.
-
selectByNamedQuery
Selects from a named query. This way you can base queries on other named queries and filter them further.- Parameters:
namedQuery
- The named query to base this query on.
-
withPattern
MTDocumentTypeQuery withPattern(String pattern, MTLanguage language, boolean exactMatch, boolean ignoreCase) Excludes results where the title does not containpattern
as a substring.- Specified by:
withPattern
in interfaceMTPatternQuery
- Parameters:
pattern
- The pattern to search for.language
- The language of the title to find the pattern in.exactMatch
- Require the pattern to match the title exactly rather than containing the pattern.ignoreCase
- Ignores case. This makes "exact match" check lowercase strings for equality and "contains match" check lowercase for contains.
-
withChangesSince
Excludes document types that have not been modified since a given date.- Specified by:
withChangesSince
in interfaceMTDateFilterQuery
- Parameters:
date
- The date to compare against.
-
sort
MTDocumentTypeQuery sort(MTQuery.SortColumn sortColumn, boolean ascending, MTLanguage language, Locale locale) Sorts the selected document types.- Specified by:
sort
in interfaceMTSortableQuery
- Parameters:
sortColumn
- The column to sort byascending
- true for ascending order, false for descendinglanguage
- The language to sort bylocale
- the locale to use when sorting
-