public interface IMediaService extends IIdentifiableEntityService<Media>
Modifier and Type | Method and Description |
---|---|
DeleteResult |
delete(java.util.UUID mediaUuid,
MediaDeletionConfigurator config) |
Pager<MediaKey> |
getMediaKeys(java.util.Set<Taxon> taxonomicScope,
java.util.Set<NamedArea> geoScopes,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<java.lang.String> propertyPaths)
Return a List of MediaKeys, optionally filtered by the parameters passed.
|
Pager<Rights> |
getRights(Media t,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<java.lang.String> propertyPaths)
Return a Pager of rights belonging to this object
|
Pager<Media> |
search(java.lang.Class<? extends Media> clazz,
java.lang.String queryString,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Returns a Paged List of Media instances where the default field matches the String queryString (as interpreted by the Lucene QueryParser)
|
countByTitle, countByTitle, countByTitleWithRestrictions, deduplicate, find, findByIdentifier, findByMarker, findByTitle, findByTitle, findByTitleWithRestrictions, findTitleCache, findUuidAndTitleCacheByMarker, getSourcedObjectByIdInSource, getSources, getTitleCache, getUuidAndTitleCache, getUuidAndTitleCache, listByIdentifier, listByReferenceTitle, listByReferenceTitleWithRestrictions, listByTitle, listByTitleWithRestrictions, replace, updateCaches, updateCaches
countMarkers, getAnnotations, getMarkers, groupMarkers
getNextAuditEvent, getPreviousAuditEvent, isDeletable, pageAuditEvents, pageAuditEvents
clear, count, delete, delete, delete, exists, find, find, find, find, findById, findWithoutFlush, getSession, group, list, list, load, load, load, load, loadByIds, loadByIds, loadWithUpdate, lock, merge, merge, merge, merge, page, page, page, pageByParamWithRestrictions, refresh, refresh, save, save, saveOrUpdate, saveOrUpdate, update
Pager<MediaKey> getMediaKeys(java.util.Set<Taxon> taxonomicScope, java.util.Set<NamedArea> geoScopes, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
taxonomicScope
- a Set of Taxon instances that define the taxonomic scope of the key (can be null)geoScopes
- a Set of NamedArea instances that define the geospatial scope of the key (can be null)pageSize
- The maximum number of keys returned (can be null for all keys)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)propertyPaths
- Properties to initialize in the returned entities, following the syntax described in IBeanInitializer.initialize(Object, List)
Pager<Rights> getRights(Media t, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
getRights
in interface IIdentifiableEntityService<Media>
t
- The media objectpageSize
- The maximum number of rights returned (can be null for all rights)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)propertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
Pager<Media> search(java.lang.Class<? extends Media> clazz, java.lang.String queryString, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
search
in interface IIdentifiableEntityService<Media>
clazz
- filter the results by class (or pass null to return all Media instances)queryString
- pageSize
- The maximum number of media returned (can be null for all matching media)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)orderHints
- Supports path like orderHints.propertyNames
which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCachepropertyPaths
- properties to be initializedDeleteResult delete(java.util.UUID mediaUuid, MediaDeletionConfigurator config)
Copyright © 2007-2020 EDIT. All Rights Reserved.