Package org.mycore.datamodel.objectinfo
Class MCRObjectQuery
java.lang.Object
org.mycore.datamodel.objectinfo.MCRObjectQuery
Used to Query a collection of mycore objects.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionafterId()
afterId
(MCRObjectID lastId) modifies this query to only return object ids after lastId should not be used together with thesort(SortBy, SortOrder)
methodcreatedAfter
(Instant createdAfter) modifies this query to limit the lower bound of the created datecreatedBefore
(Instant createdBefore) modifies this query to limit the upper bound of the created datemodifies this query to restrict the user which created the objectsdeletedAfter
(Instant deletedAfter) modifies this query to limit the lower bound of the deleted datedeletedBefore
(Instant deletedBefore) modifies this query to limit the upper bound of the deleted datemodifies this query to restrict the user which deleted the objectsint
limit()
limit
(int limit) modifies this query to limit the amount of resultsmodifiedAfter
(Instant modifiedAfter) modifies this query to limit the lower bound of the modified datemodifiedBefore
(Instant modifiedBefore) modifies this query to limit the upper bound of the modified datemodifiedBy
(String modifiedBy) modifies this query to restrict the user which last modified the objectsint
numberGreater
(int numberGreater) modifies this query to limit the lower bound of the object id numberint
numberLess
(int numberLess) modifies this query to limit the upper bound of the object id numberint
offset()
offset
(int offset) modifies this query to skip the amount offset objects at the start of the resultsproject()
modifies this query to restrict the project of the objectssort
(MCRObjectQuery.SortBy sortBy, MCRObjectQuery.SortOrder sortOrder) modifies this query to change the order of the resulting listsortAsc()
sortBy()
status()
modifies this query to restrict the status of the objects. e.G. state:submittedtoString()
type()
modifies this query to restrict the type of the objects
-
Constructor Details
-
MCRObjectQuery
public MCRObjectQuery()
-
-
Method Details
-
afterId
- Returns:
- the id after which the listing starts
-
afterId
modifies this query to only return object ids after lastId should not be used together with thesort(SortBy, SortOrder)
method- Parameters:
lastId
-- Returns:
- this
-
offset
public int offset()- Returns:
- the amount of objects to skip from the start of the results
-
offset
modifies this query to skip the amount offset objects at the start of the results- Parameters:
offset
- amount- Returns:
- this
-
limit
public int limit()- Returns:
- the maximum amount of results
-
limit
modifies this query to limit the amount of results- Parameters:
limit
- amount- Returns:
- this
-
type
- Returns:
- the type restriction
-
type
modifies this query to restrict the type of the objects- Parameters:
type
- restriction- Returns:
- this
-
project
- Returns:
- the project restriction
-
project
modifies this query to restrict the project of the objects- Parameters:
project
- restriction- Returns:
- this
-
status
- Returns:
- the status restriction
-
status
modifies this query to restrict the status of the objects. e.G. state:submitted- Parameters:
status
- restriction- Returns:
- this
-
sort
modifies this query to change the order of the resulting list- Parameters:
sortBy
- the sort fieldsortOrder
- the sort direction- Returns:
- this
-
sortBy
- Returns:
- the order field of the resulting list
-
sortAsc
- Returns:
- the sort direction of the result list
-
modifiedBefore
- Returns:
- the upper bound limit of the modified date
-
modifiedBefore
modifies this query to limit the upper bound of the modified date- Parameters:
modifiedBefore
- the upper bound limit- Returns:
- the same query
-
modifiedAfter
- Returns:
- the lower bound limit of the modifed date
-
modifiedAfter
modifies this query to limit the lower bound of the modified date- Parameters:
modifiedAfter
- the lower bound limit- Returns:
- this
-
createdBefore
- Returns:
- the upper bound limit of the created date
-
createdBefore
modifies this query to limit the upper bound of the created date- Parameters:
createdBefore
- the upper bound limit- Returns:
- this
-
createdAfter
- Returns:
- the lower bound limit of the created date
-
createdAfter
modifies this query to limit the lower bound of the created date- Parameters:
createdAfter
- the lower bound limit- Returns:
- this
-
deletedBefore
- Returns:
- the upper bound limit of the deleted date
-
deletedBefore
modifies this query to limit the upper bound of the deleted date- Parameters:
deletedBefore
- the upper bound limit- Returns:
- this
-
deletedAfter
- Returns:
- the lower bound limit of the deleted date
-
deletedAfter
modifies this query to limit the lower bound of the deleted date- Parameters:
deletedAfter
- the lower bound limit- Returns:
- this
-
createdBy
- Returns:
- the created by user restriction
-
createdBy
modifies this query to restrict the user which created the objects- Parameters:
createdBy
- the user restriction- Returns:
- this
-
modifiedBy
- Returns:
- the modified by user restriction
-
modifiedBy
modifies this query to restrict the user which last modified the objects- Parameters:
modifiedBy
- the user restriction- Returns:
- this
-
deletedBy
- Returns:
- the deleted by user restriction
-
deletedBy
modifies this query to restrict the user which deleted the objects- Parameters:
deletedBy
- the user restriction- Returns:
- this
-
numberGreater
public int numberGreater()- Returns:
- the lower bound limit to the object id number
-
numberGreater
modifies this query to limit the lower bound of the object id number- Parameters:
numberGreater
- the lower bound limit- Returns:
- this
-
numberLess
public int numberLess()- Returns:
- the upper bound limit of the object id number
-
numberLess
modifies this query to limit the upper bound of the object id number- Parameters:
numberLess
- the upper bound limit- Returns:
- this
-
getIncludeCategories
- Returns:
- a modifiable list of classification category ids. A result object need to be linked to all the categories.
-
toString
-