|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IIdentifiableEntityService<T extends IdentifiableEntity>
| Method Summary | |
|---|---|
Integer |
countByTitle(Class<? extends T> clazz,
String queryString,
MatchMode matchmode,
List<org.hibernate.criterion.Criterion> criteria)
Return an Integer of how many objects matching the given query string, optionally filtered by class, optionally with a particular MatchMode |
Integer |
countByTitle(IIdentifiableEntityServiceConfigurator<T> configurator)
Return an Integer of how many objects matching the given query string, optionally filtered by class, optionally with a particular MatchMode |
int |
deduplicate(Class<? extends T> clazz,
IMatchStrategy matchStrategy,
IMergeStrategy mergeStrategy)
This method tries to deduplicate all objects of a certain class by first trying to find matchabel objects and merging them in a second step. |
T |
find(LSID lsid)
Finds an object with a given LSID. |
Pager<T> |
findByTitle(Class<? extends T> clazz,
String queryString,
MatchMode matchmode,
List<org.hibernate.criterion.Criterion> criteria,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
Return a Pager of objects matching the given query string, optionally filtered by class, optionally with a particular MatchMode |
Pager<T> |
findByTitle(IIdentifiableEntityServiceConfigurator<T> configurator)
Return a Pager of objects matching the given query string, optionally filtered by class, optionally with a particular MatchMode |
Pager<T> |
findTitleCache(Class<? extends T> clazz,
String queryString,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
MatchMode matchMode)
Return a Pager of objects with distinct titleCache strings filtered by the given query string, optionally filtered by class, optionally with a particular MatchMode |
Pager<Rights> |
getRights(T t,
Integer pageSize,
Integer pageNumber,
List<String> propertyPaths)
Return a Pager of rights belonging to this object |
ISourceable |
getSourcedObjectByIdInSource(Class clazz,
String idInSource,
String idNamespace)
|
Pager<IdentifiableSource> |
getSources(T t,
Integer pageSize,
Integer pageNumber,
List<String> propertyPaths)
Return a Pager of sources belonging to this object |
List<UuidAndTitleCache<T>> |
getUuidAndTitleCache()
Return a list of all uuids mapped to titleCache in the convenient UuidAndTitleCache object. |
List<T> |
listByReferenceTitle(Class<? extends T> clazz,
String queryString,
MatchMode matchmode,
List<org.hibernate.criterion.Criterion> criteria,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
Return a List of objects matching the given query string, optionally filtered by class, optionally with a particular MatchMode |
List<T> |
listByTitle(Class<? extends T> clazz,
String queryString,
MatchMode matchmode,
List<org.hibernate.criterion.Criterion> criteria,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
Return a List of objects matching the given query string, optionally filtered by class, optionally with a particular MatchMode |
T |
replace(T x,
T y)
Replaces all *ToMany and *ToOne references to an object (x) with another object of the same type (y) Ignores ManyToAny and OneToAny relationships as these are typically involved with bidirectional parent-child relations |
Pager<T> |
search(Class<? extends T> clazz,
String queryString,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
Returns a Paged List of IdentifiableEntity instances where the default field matches the String queryString (as interpreted by the Lucene QueryParser) |
void |
updateTitleCache()
(Re-)generate the title caches for all objects of this concrete IdentifiableEntity class. |
void |
updateTitleCache(Class<? extends T> clazz,
Integer stepSize,
IIdentifiableEntityCacheStrategy<T> cacheStrategy,
IProgressMonitor monitor)
(Re-)generate the title caches for all objects of this concrete IdentifiableEntity class |
| Methods inherited from interface eu.etaxonomy.cdm.api.service.IAnnotatableService |
|---|
countMarkers, getAnnotations, getMarkers, groupMarkers |
| Methods inherited from interface eu.etaxonomy.cdm.api.service.IVersionableService |
|---|
getNextAuditEvent, getPreviousAuditEvent, pageAuditEvents, pageAuditEvents |
| Methods inherited from interface eu.etaxonomy.cdm.api.service.IService |
|---|
clear, count, delete, exists, find, find, find, findById, getSession, group, list, list, load, load, lock, merge, page, refresh, refresh, rows, save, save, saveOrUpdate, saveOrUpdate, update |
| Method Detail |
|---|
void updateTitleCache()
updateTitleCache(Class, Integer, IIdentifiableEntityCacheStrategy, IProgressMonitor)
void updateTitleCache(Class<? extends T> clazz,
Integer stepSize,
IIdentifiableEntityCacheStrategy<T> cacheStrategy,
IProgressMonitor monitor)
clazz - class of objects to be updatedstepSize - number of objects loaded per step. If null use default.cacheStrategy - cachestrategy used for title cache. If null use default.monitor - progress monitor. If null use default.T find(LSID lsid)
lsid -
T replace(T x,
T y)
x - y -
Pager<IdentifiableSource> getSources(T t,
Integer pageSize,
Integer pageNumber,
List<String> propertyPaths)
t - The identifiable entitypageSize - The maximum number of sources returned (can be null for all sources)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<Rights> getRights(T t,
Integer pageSize,
Integer pageNumber,
List<String> propertyPaths)
t - The identifiable entitypageSize - 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)
ISourceable getSourcedObjectByIdInSource(Class clazz,
String idInSource,
String idNamespace)
List<UuidAndTitleCache<T>> getUuidAndTitleCache()
UuidAndTitleCache object.
Retrieving this list is considered to be significantly faster than initializing the fully fledged buiseness
objects. To be used in cases where you want to present large amount of data and provide details after
a selection has been made.
UuidAndTitleCache instances
Pager<T> findByTitle(Class<? extends T> clazz,
String queryString,
MatchMode matchmode,
List<org.hibernate.criterion.Criterion> criteria,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
clazz - filter by class - can be null to include all instances of type TqueryString - the query string to filter bymatchmode - use a particular type of matching (can be null - defaults to exact matching)criteria - additional criteria to filter bypageSize - The maximum number of objects returned (can be null for all objects)pageNumber - The offset (in pageSize chunks) from the start of the result set (0 - based)propertyPaths - properties to initialize - see IBeanInitializer.initialize(Object, List)orderHints - Supports path like orderHints.propertyNames which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCache
Pager<T> findByTitle(IIdentifiableEntityServiceConfigurator<T> configurator)
Integer countByTitle(Class<? extends T> clazz,
String queryString,
MatchMode matchmode,
List<org.hibernate.criterion.Criterion> criteria)
clazz - filter by class - can be null to include all instances of type TqueryString - the query string to filter bymatchmode - use a particular type of matching (can be null - defaults to exact matching)criteria - additional criteria to filter by
Integer countByTitle(IIdentifiableEntityServiceConfigurator<T> configurator)
configurator - an IIdentifiableEntityServiceConfigurator object
List<T> listByTitle(Class<? extends T> clazz,
String queryString,
MatchMode matchmode,
List<org.hibernate.criterion.Criterion> criteria,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
clazz - filter by class - can be null to include all instances of type TqueryString - the query string to filter bymatchmode - use a particular type of matching (can be null - defaults to exact matching)criteria - additional criteria to filter bypageSize - The maximum number of objects returned (can be null for all objects)pageNumber - The offset (in pageSize chunks) from the start of the result set (0 - based)propertyPaths - properties to initialize - see IBeanInitializer.initialize(Object, List)orderHints - Supports path like orderHints.propertyNames which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCache
List<T> listByReferenceTitle(Class<? extends T> clazz,
String queryString,
MatchMode matchmode,
List<org.hibernate.criterion.Criterion> criteria,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
clazz - filter by class - can be null to include all instances of type TqueryString - the query string to filter bymatchmode - use a particular type of matching (can be null - defaults to exact matching)criteria - additional criteria to filter bypageSize - The maximum number of objects returned (can be null for all objects)pageNumber - The offset (in pageSize chunks) from the start of the result set (0 - based)propertyPaths - properties to initialize - see IBeanInitializer.initialize(Object, List)orderHints - Supports path like orderHints.propertyNames which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCache
Pager<T> search(Class<? extends T> clazz,
String queryString,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
clazz - filter the results by class (or pass null to return all IdentifiableEntity instances)queryString - pageSize - The maximum number of identifiable entities returned (can be null for all matching identifiable entities)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 initialized
int deduplicate(Class<? extends T> clazz,
IMatchStrategy matchStrategy,
IMergeStrategy mergeStrategy)
IMatchable and IMergable otherwise no deduplication is performed.
clazz - matchStrategy - mergeStrategy -
Pager<T> findTitleCache(Class<? extends T> clazz,
String queryString,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
MatchMode matchMode)
clazz - queryString - pageSize - pageNumber - orderHints - matchMode -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||